Coupon Tutorial
How to create a new coupon
Creating a free shipping coupon with minimum order value and 1 usage per customer
curl -i -X POST
'https://api.emporix.io/coupon/{tenant}/coupons'
-H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"code": "ENG2OC0",
"name": "Winter Sale 2022",
"description": "Free shipping coupon",
"discountType": "FREE_SHIPPING",
"discountAbsolute": {
"amount": 24.99,
"currency": "USD"
},
"allowAnonymous": false,
"maxRedemptions": -1,
"maxRedemptionsPerCustomer": 1,
"categoryRestricted": false,
"segmentRestricted": false,
"restrictions": {
"validFor": [],
"validFrom": "2022-02-16T09:04:35.446Z",
"validUntil": "2022-03-31T10:04:35.446Z",
"minOrderValue": {
"amount": 50,
"currency": "EUR"
}
},
"issuedTo": ""
}'Creating a coupon with a fixed discount amount for a specific customer
Creating a category coupon with percentage discount
How to update an existing coupon
How to apply coupons to a cart
Specify the number of coupons per cart
Apply a coupon to a cart
How to redeem a coupon
How to enable referral coupons
Configure your main site's referral coupon settings
Configure referral email templates
How to generate a referral coupon for a specific customer
How to retrieve a specific customer's referral coupon
Last updated
Was this helpful?

