{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AvailableCoupon",
"title": "AvailableCoupon",
"type": "object",
"properties": {
"constraint": {
"description": "The limitations or restrictions of the coupon.",
"$ref": "#/components/schemas/CouponConstraint"
},
"discountAmount": {
"description": "The discount amount after the coupon is applied.",
"$ref": "#/components/schemas/Amount"
},
"discountType": {
"type": "string",
"description": "The type of discount that the coupon applies. For implementation help, refer to eBay API documentation"
},
"message": {
"type": "string",
"description": "A description of the coupon.
Note: The value returned in the termsWebUrl field should appear for all experiences when displaying coupons. The value in the availableCoupons.message field must also be included if returned in the API response."
},
"redemptionCode": {
"type": "string",
"description": "The coupon code."
},
"termsWebUrl": {
"type": "string",
"description": "The URL to the coupon terms of use.
Note: The value returned in the termsWebUrl field should appear for all experiences when displaying coupons. The value in the availableCoupons.message field must also be included if returned in the API response."
}
}
}