post https://{host}/v2/coupon/bulk/issue
This API allows you to issue a batch of coupon series to a customer, enabling the customer to redeem the coupons.
Prerequisites
- Authentication: Basic or OAuth authentication
- Default access group
Resource information
| URI | /v2/coupon/bulk/issue |
| HTTP method | POST |
| Pagination | NA |
| Batch support | Yes |
Rate limit
- Demo, Production and Testing Clusters: 1000 requests per minute per API key
To modify the limit, create a ticket with the Capillary Product support team.
API endpoint example
https://eu.api.capillarytech.com/v2/coupon/bulk/issue
Request body parameters
| Parameter | Datatype | Description |
|---|---|---|
| seriesIds* | Array of Integers | List of coupon series IDs |
| customer* | Object | The object containing the details of the customer |
| customer.id | String | Unique identifier of the customer |
{
"seriesIds" :[544770,553379],
"customer":
{
"id":"555567088"
}
}Response parameters
| Parameter | Datatype | Description |
|---|---|---|
response | Array of Objects | List of responses for entities. |
.entityId | Integer | Unique Identifier of the entity. |
.result | Object | The object containing the result of the entity. |
..code | String | Unique code of the coupon. |
..seriesId | Integer | Unique Identifier of the coupon. |
..description | String | The description of the coupon. |
..discountCode | String | This code is defined during the creation of a coupon series and is used as a POS identifier on member care. This will be used by the cashier at the Point of Sale machine. |
..validTill | String | Expiry date and time of the coupon. |
..validTillDateTime | String | Specifies the exact expiry date and time of a coupon in ISO 8601 format (e.g., "2026-06-11T23:59:59Z"), indicating the precise moment until which the coupon can be redeemed. |
..discountType | String | Specifies the type of discount provided by the coupon. Supported values: ABS (a fixed amount is discounted), PERC (a percentage of the total amount is discounted). |
..discountValue | Integer | The value of the discount. |
..discountUpto | Integer | The maximum value up to which the discount can be applied. |
..discountOn | String | The aspect on which the discount is applied. Supported values: BILL. |
..detailedInfo | String | Detailed information about the coupon. |
..redemptionCount | Integer | Number of times the coupon has been redeemed. |
..id | Integer | ID of the result. |
.errors | Array | The array of errors in the response. |
.warnings | Array | The array of warning messages in the response. |
totalCount | Integer | Total count of entities processed. |
failureCount | Integer | Count of entities that failed to process. |
Example response
{
"response": [
{
"entityId": 544770,
"result": {
"code": "TPLPYOEYOT",
"seriesId": 544770,
"description": "Festival coupon",
"discountCode": "erg123",
"validTill": "2026-05-09T00:00:00Z",
"discountType": "ABS",
"discountValue": 500,
"discountUpto": 0,
"discountOn": "BILL",
"detailedInfo": "Evil coupon",
"redemptionCount": 0,
"id": 0
},
"errors": [],
"warnings": []
},
{
"entityId": 553379,
"result": {
"code": "9WJIGHOBRL",
"seriesId": 553379,
"description": "DIWALI 100% OFF",
"discountCode": "XYZ123",
"validTill": "2029-05-09T00:00:00Z",
"discountType": "ABS",
"discountValue": 500,
"discountUpto": 0,
"discountOn": "BILL",
"detailedInfo": "Evil coupon",
"redemptionCount": 0,
"id": 0
},
"errors": [],
"warnings": []
}
],
"totalCount": 2,
"failureCount": 0
}