Gets the remaining number of times codes can be used. For filtering the codes, use the codes
query parameter.
For configuring the code limit itself, go to the Admin section:
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
external_id required | integer Promotion external ID. Unique promotion identifier within the project. Example: coupon_44056_1 |
Successfully received promo code limits for a code.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
{- "promotion_id": 1,
- "items": [
- {
- "code": "WINTER2023",
- "per_code": {
- "total": 10,
- "available": 7,
- "used": 2,
- "reserved": 1
}
}, - {
- "code": "SUMMER2023",
- "per_code": {
- "total": 5,
- "available": 0,
- "used": 3,
- "reserved": 2
}
}
], - "total_items_count": 2,
- "has_more": false
}