Affirm · Schema

DiscountObject

Represents a discount applied to the checkout.

FintechBNPLLendingPaymentsConsumer

Properties

Name Type Description
discount_amount integer The discount amount in cents.
discount_display_name string Customer-facing name or description of the discount.
View JSON Schema on GitHub

JSON Schema

checkout-discount-object-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/affirm/refs/heads/main/json-schema/checkout-discount-object-schema.json",
  "title": "DiscountObject",
  "description": "Represents a discount applied to the checkout.",
  "type": "object",
  "properties": {
    "discount_amount": {
      "type": "integer",
      "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"
    }
  }
}