Applying Discounts / Creator Codes
Last updated
Was this helpful?
Last updated
Was this helpful?
If offered by your store, you can apply coupons, gift cards, and creator codes via Headless API once a basket has been created and the user's desired packages have been added.
Depending on the store's configuration, multiple gift cards or coupons may be applied. To remove a gift card or coupon, use the relevant /remove endpoint.
Applies a creator code to a basket.
/accounts/{token}/baskets/{basketIdent}/creator-codes
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Academy10
Applies a creator code to a basket.
/accounts/{token}/baskets/{basketIdent}/creator-codes/remove
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
No body
Applies a creator code to a basket.
/accounts/{token}/baskets/{basketIdent}/giftcards
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
0127 0244 7210 1111
Removes a gift card from the basket.
/accounts/{token}/baskets/{basketIdent}/giftcards/remove
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
0127 0244 7210 1111
No body
Applies a creator code to a basket.
/accounts/{token}/baskets/{basketIdent}/coupons
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
Academy10
Removes a coupon code from a basket
/accounts/{token}/baskets/{basketIdent}/coupons/remove
The webstore identifier.
t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c
No body