Gets the remaining number of times the specified user can use the promo code.
User limit API allows you to limit the number of times users can use a promo code. For configuring the user 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 user.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Item not found.
Invalid request.
curl -i -X GET \ -u <merchant_id_or_project_id>:<api_key> \ 'https://store.xsolla.com/api/v2/project/{project_id}/admin/user/limit/promocode/external_id/{external_id}?user_external_id=d342dad2-9d59-11e9-a384-42010aa8003f'
{- "per_user": {
- "total": 10,
- "available": 9
}
}