Vendor Redemption API enables a brand to interact with third-party vendor systems for redeeming rewards.
Example: The brand wants to issue a gift card through a third-party vendor, ABC. This API provides the necessary details to the ABC vendor to process the reward redemption.
Note
- For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .
Prerequisites
- Authentication: Basic or OAuth authentication
- Default access group
Resource information
URI | api_gateway/rewards/core/v1/vendor/redemption/create |
HTTP Method | POST |
Pagination | No |
Batch support | No |
Rate limit information | None |
API endpoint example
https://eucrm.cc.capillarytech.com/api_gateway/rewards/core/v1/vendor/redemption/create
Request body parameters
Parameter | Data Type | Description |
---|---|---|
| Integer | The unique ID of the brand. |
| String | The unique ID of the vendor. |
| String | The name defined by the brand for the vendor reward. |
| Enum | Specifies the method by which the customer can redeem rewards. Supported values:
It's not recommended to use the |
| Object | Specifies the Name, Endpoint URL, API Type, API Headers, and the API Body of the internal API that executes a specific action. |
| String | The name of the action to be executed. |
| Integer | The execution order of the action. |
| String | The URL to which the API request is made. For example, |
| String | The HTTP method to be used for the API request. |
| Object | An object containing the headers to be sent with the API request. |
| String | The accept header indicating the expected response format. |
| String | The content type header indicating the format of the request body. |
| String | The authorization header containing the authentication credentials. |
| String | The API body for the external API endpoint specified in Fulfillment Status: Update the fulfillment status by using the parameter Note:* |
| Object | The root object of the JSON body. |
| Array of Objects | An array of request objects. |
| Object | An object containing customer details. |
| String | The mobile number of the customer. |
| String | Comments or notes related to the API service request. |
| String | The reason for issuing goodwill points. |
| String | The type of the request. |
| String | The base type of the points. |
| String | The number of points to be awarded. |
| Object | An object containing context keys for extracting values from the response. |
| String | The context key for extracting the voucher ID from the response. |
| String | Last Updated date and time of the field in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ). |
{
"status": {
"success": true,
"code": 5012,
"message": "Vendor redemption created successfully"
},
"redemption": {
"id": 24332,
"name": "Tiles",
"redemptionType": "MILES",
"enabled": true,
"lastUpdatedOn": null,
"lastUpdatedOnDateTime": null,
"actionCount": 1
}
}
{
"vendorId" : 1,
"brandId" : 1,
"enabled" : true,
"redemptionType" : "VENDOR_ONLY_REWARD",
"name" : "Vendor Redemption",
"responseKeys" : [ "status", "voucher" ],
"actions" : [ {
"name" : "Action",
"enabled" : true,
"apiType" : "POST",
"apiUrl" : "https://partial.com/coupon/issue",
"apiBody" : "{\"transactionId_property\": \"${rewardTransactionId}\",\"customFields_property\": {\"customField_1_property\": \"${customfield_CF1}\"}, \"fulfillmentStatus_property\": \"${fulfillmentStatus}\"}",
"execOrder" : 1,
"retryAction" : false,
"contextKeys" : {
"voucher" : "response.coupon.code",
"status" : "response.status"
},
"apiHeaders" : {
"accept" : "application/json"
}
} ]
}
Response parameters
Parameter | Datatype | Description |
---|---|---|
success | Boolean | Indicates whether the API call was successful or not. |
code | Integer | The code associated with the response. |
message | String | A message providing details about the response. |
id | Integer | The unique identifier for the redemption object. |
name | String | The name associated with the redemption object. |
redemptionType | Enum | The type of redemption. |
enabled | Boolean | Indicates whether the redemption is currently enabled. |
lastUpdatedOn | Date | Indicates the timestamp when the vendor redemption was updated. The timestamp is in Epoch time format. |
actionCount | Integer | The count of the number of redemptions. |
lastUpdatedBy | Long | The unique identifier of the user who last updated the vendor redemption record. |
createdBy | String | The unique identifier of the user who created the vendor redemption. |
createdOn | String | Indicates the timestamp when the vendor redemption was created. The timestamp is in Epoch time format. |
{
"status": {
"success": true,
"code": 5012,
"message": "Vendor redemption created successfully"
},
"redemption": {
"id": 27802,
"name": "jotest",
"redemptionType": "VOUCHER",
"enabled": true,
"lastUpdatedOn": 1748344737000,
"lastUpdatedOnDateTime": "2025-05-27T11:18:57Z",
"actionCount": 1,
"createdBy": 75161973,
"lastUpdatedBy": 75161973,
"createdOn": 1748344737000,
"createdOnDateTime": "2025-05-27T11:18:57Z"
}
}
``<code>json
</code>``json
With custom field, fulfilment and transaction id
{
"vendorId" : 1,
"brandId" : 1,
"enabled" : true,
"redemptionType" : "VENDOR_ONLY_REWARD",
"name" : "Vendor Redemption",
"responseKeys" : [ "status", "voucher" ],
"actions" : [ {
"name" : "Action",
"enabled" : true,
"apiType" : "POST",
"apiUrl" : "https://partial.com/coupon/issue",
"apiBody" : "{\"transactionId_property\": \"\$\{rewardTransactionId\}\",\"customFields_property\": {\"customField_1_property\": \"\$\{customfield_CF1\}\"}, \"fulfillmentStatus_property\": \"\$\{fulfillmentStatus\}\"}",
"execOrder" : 1,
"retryAction" : false,
"contextKeys" : {
"voucher" : "response.coupon.code",
"status" : "response.status"
},
"apiHeaders" : {
"accept" : "application/json"
}
} ]
}