Bolt · Schema

cart-discount

CheckoutPaymentseCommerceOne-Click CheckoutShopper NetworkFraud Protection

Properties

Name Type Description
amount object
code string Discount code.
details_url string Used to provide a link to additional details, such as a landing page, associated with the discount offering.
View JSON Schema on GitHub

JSON Schema

cart-discount.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.bolt.com/schemas/cart-discount",
  "title": "cart-discount",
  "required": [
    "amount"
  ],
  "type": "object",
  "properties": {
    "amount": {
      "$ref": "#/components/schemas/amount"
    },
    "code": {
      "type": "string",
      "description": "Discount code.",
      "maxLength": 1024,
      "example": "SUMMER10DISCOUNT"
    },
    "details_url": {
      "type": "string",
      "description": "Used to provide a link to additional details, such as a landing page, associated with the discount offering.",
      "maxLength": 8192,
      "format": "url",
      "example": "https://www.example.com/SUMMER-SALE"
    }
  }
}