BigCommerce · Schema

Cart Coupon

E-CommerceRetailCatalogOrdersCheckoutPaymentsSaaS

Properties

Name Type Description
id integer The coupon ID.
code string the coupon code
displayName string The coupon title based on different types provided in control panel section.
couponType string Key name to identify the type of coupon.
discountedAmount number The discounted amount applied within a given context.
View JSON Schema on GitHub

JSON Schema

bigcommerce-cartcoupon-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CartCoupon",
  "title": "Cart Coupon",
  "required": [
    "code"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The coupon ID."
    },
    "code": {
      "type": "string",
      "description": "the coupon code"
    },
    "displayName": {
      "type": "string",
      "description": "The coupon title based on different types provided in control panel section."
    },
    "couponType": {
      "type": "string",
      "description": "Key name to identify the type of coupon.",
      "enum": [
        "per_item_discount",
        "percentage_discount",
        "per_total_discount",
        "shipping_discount",
        "free_shipping",
        "promotion"
      ]
    },
    "discountedAmount": {
      "type": "number",
      "description": "The discounted amount applied within a given context.",
      "format": "double"
    }
  },
  "x-internal": false
}