List Coupon Code Batches
List Coupon Code Batches on the NodeRings provider API (GET /v1/coupons/{couponId}/code-batches).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Path Parameters
couponIdstring
Query Parameters
page?integer
Format
int32pageSize?integer
Format
int32Response Body
application/json
curl -X GET "https://api.noderings.com/v1/coupons/{couponId}/code-batches?page&pageSize" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}"{
"batches": [
{
"id": "string",
"couponId": "string",
"status": "COUPON_CODE_BATCH_STATUS_UNSPECIFIED",
"requestedCount": 0,
"generatedCount": 0,
"prefix": "string",
"maxRedemptions": 0,
"validUntil": "2019-08-24T14:15:22Z",
"campaign": "string",
"channel": "string",
"failureReason": "string",
"completedAt": "2019-08-24T14:15:22Z",
"exportCount": 0,
"lastExportedAt": "2019-08-24T14:15:22Z",
"lastExportedByUserId": "string",
"timestamps": {
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z"
}
}
],
"totalCount": 0,
"page": 0,
"pageSize": 0
}