Affirm · JSON Structure

Checkout Discount Object Structure

Represents a discount applied to the checkout.

Type: object Properties: 2
FintechBNPLLendingPaymentsConsumer

DiscountObject is a JSON Structure definition published by Affirm, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

discount_amount discount_display_name

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

checkout-discount-object-structure.json Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/affirm/refs/heads/main/json-structure/checkout-discount-object-structure.json",
  "name": "DiscountObject",
  "description": "Represents a discount applied to the checkout.",
  "type": "object",
  "properties": {
    "discount_amount": {
      "type": "int32",
      "description": "The discount amount in cents.",
      "minimum": 0,
      "example": 1
    },
    "discount_display_name": {
      "type": "string",
      "description": "Customer-facing name or description of the discount.",
      "example": "Example Merchant"
    }
  }
}