Bulk update redemptions
Use this endpoint to update multiple redemptions by including the corresponding redemptionId values in the request body. You can update up to 25 redemptions at a time.
Request
- Base URLhttps://api.fabric.inc/v3
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
A unique identifier obtained from Copilot for the System app in the fabric ecosystem, essential for OpenID Connect authentication flows.
A unique request ID.
Request body
Example request
{
"data": [
{
"id": "614b58924e92f6861ac9d43b",
"promotionId": "63128d6ccd9ab60009ade8b7",
"couponCode": "BESTSUMMER",
"userId": "614b58924e92f61234567890",
"email": "guest@gmail.com",
"orderId": "1590-2016-12345-7897",
"storeId": "614b58924e92f61234567890",
"redeemedAt": "2020-12-14T12:15:43.646Z",
"status": "ACTIVE",
"additionalAttributes": [
{
"name": "brand",
"values": "Nike"
}
]
}
]
}Response
OK
Example response
{
"data": [
{
"id": "614b58924e92f6861ac9d43b",
"promotionId": "614b58924e92f6861ac91234",
"couponCode": "BESTSUMMER",
"orderId": "1590-2016-12345",
"userId": "614b58924e92f61234567890",
"email": "guest@example.com",
"storeId": "A-100001",
"redeemedAt": "2020-12-14T12:15:43.646Z",
"status": "ACTIVE",
"additionalAttributes": [
{
"name": "brand",
"values": "Nike"
}
],
"promotionAdditionalAttributes": [
{
"name": "eventName",
"values": "Store sale"
}
],
"promotionName": "Summer promotion",
"createdAt": "2020-12-14T12:15:43.646Z",
"updatedAt": "2021-12-14T12:15:43.646Z"
}
],
"errors": [
{
"id": "614b58924e92f6861ac9d43b",
"type": "REDEMPTION_NOT_FOUND",
"message": "The redemption record doesn't exist."
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.