Post Cart Promotions Code link API

This API is used to link the code of the cart promotion earned by the customer to the customer id.

Request body parameters

ParameterData typeDescription
customerIdintegerunique ID of the customer
codestringpromotion code to link
modestringpromotion mode (e.g. DISCOUNT)

Response parameters

ParameterData typeDescription
idstringunique identifier for the promotion
orgIdintegeridentifier for the organization associated with the promotion
promotionIdstringunique identifier for the specific promotion
promotionNamestringname of the promotion (e.g., "code promotion")
codestringthe promotion code that can be used for redemption
customerIdintegerunique ID of the customer linked to the promotion
activebooleanindicates whether the promotion is currently active
createdOnintegertimestamp indicating when the promotion was created (ms)
validTillintegertimestamp indicating when the promotion expires (ms)
modestringthe mode of the promotion (e.g., "DISCOUNT")
redeemableFromintegertimestamp indicating when the promotion can start being redeemed (ms)
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!