- Redeem a coupon
Coupon restriction types
Retrieve coupon redemptions
Retrieve a coupon redemption
Cancel a coupon redemption
Retrieve coupons
Create a coupon
Retrieve a coupon
Upsert a coupon
Specify a coupon expiration time
Coupon application removed
Coupon applied
Coupon expiration modified
Coupon expired
Coupon issued
Coupon modified
Coupon redeemed
Coupon redemption canceled
Redeem a coupon
Redeems a coupon.
Security
SecretApiKey or JWT or ApplicationJWT
Coupon resource.
ID of the customer resource.
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/coupons-redemptions
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/coupons-redemptions
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/coupons-redemptions
- SecretApiKey
- JWT
- ApplicationJWT
- discounts-per-redemption
- maximum-order-amount
- minimum-order-amount
- paid-by-time
- restrict-to-invoices
- restrict-to-plans
- restrict-to-products
- restrict-to-subscriptions
curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/coupons-redemptions \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"couponId": "cpn_0YVCNKF81GD778N4YNVGDJK558",
"customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
"additionalRestrictions": [
{
"type": "discounts-per-redemption",
"quantity": 0
}
]
}'Coupon redeemed.
Headers
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Example:3600
ID of the customer resource.
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
Additional coupon redemption restrictions.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
Response
- discounts-per-redemption
- maximum-order-amount
- minimum-order-amount
- paid-by-time
- restrict-to-invoices
- restrict-to-plans
- restrict-to-products
- restrict-to-subscriptions
{ "id": "cpn_rdm_01HXC82EEPW6YD3MPWJY7151VR", "couponId": "cpn_0YVCNKF81GD778N4YNVGDJK558", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "additionalRestrictions": [ { … } ], "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "canceledTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }