Get redemption List
Enables you to get a paginated redemption list.
Request
- Base URLhttps://live.copilot.fabric.inc
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
The size of records per page.
The value for start cursor.
The filter value for promoId.
The filter value for promoCode.
The filter value for userId.
The filter value for email.
The filter value for orderId.
The filter value for storeId.
The filter value for status.
The filter value for redeemedFrom.
The filter value for redeemedTo.
The filter value for updatedFrom.
The filter value for updatedTo.
The filter value for title.
The filter value for isImplicit.
The filter value for singleMultiUse.
The filter value for additionalAttributes.
The filter value for promoAdditionalAttributes.
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.
Response
OK
Example response
{
"query": {
"limit": 10,
"count": 150
},
"data": [
{
"_id": "614b58924e92f6861ac9d43b",
"promoId": "614b58924e92f6861ac91234",
"promoCode": "BESTSUMMER",
"userId": "614b58924e92f61234567890",
"email": "guest@gmail.com",
"orderId": "1590-2016-12345",
"createdAt": "2020-12-14T12:15:43.646Z",
"updatedAt": "2021-12-14T12:15:43.646Z"
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.