Gets codes of a promo code promotion.
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 |
List of codes for a promo code was successfully received.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Promo code not found. Make sure the external_id
is correct.
curl -i -X GET \ -u <merchant_id_or_project_id>:<api_key> \ 'https://store.xsolla.com/api/v2/project/{project_id}/admin/promocode/{external_id}/code?limit=50&offset=0'
{- "codes": [
- {
- "code": "CODE001"
}, - {
- "code": "CODE002"
}, - {
- "code": "CODE003"
}, - {
- "code": "CODE004"
}, - {
- "code": "CODE005"
}
], - "total_count": 5
}