Create redemption
Enables you to create a redemption record
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Body
fabric database objectId of the promotion to redeem, received from promotion structure
"614b58924e92f6861ac91234"
Order ID of this purchase
"1590-2016-12345"
promoCode of the coupon that is redeemed, could be null if no promoCode available
"BESTSUMMER"
ID of the user who redeem the promotion, could be null if no user ID available
"614b58924e92f61234567890"
Email address of the user who redeem the promotion
"john.doe@gmail.com"
Response
fabric internal ID
"614b58924e92f6861ac9d43b"
fabric database objectId of the promotion to redeem
"614b58924e92f6861ac91234"
promoCode of the coupon that is redeemed
"BESTSUMMER"
ID of the user who redeem the coupon
"614b58924e92f61234567890"
Email address of the user who redeem the coupon
"guest@gmail.com"
Order ID of this purchase
"1590-2016-12345"
Creation date of the record
"2020-12-14T12:15:43.646Z"
Last updated date of the record
"2021-12-14T12:15:43.646Z"
Was this page helpful?