Promo Code Status
GET https://api.e-guma.ch/v1/promo_codes/{code}/status.json?apikey={api-key}Parameters
| Attribute | Description |
|---|---|
code required | The alphanumeric code of the promo code. Please use url_encode for the code as it might contain special characters. |
api-key required |
Return
| code | The same code as you provided as parameter |
| is_valid | True if the promo code can be used |
| discount_type | Either percentage or amount |
| value | The discount, either as a percentage or an amount |
| message | Message why the promo code can't be used |
Example
GET https://api.e-guma.ch/v1/promo_codes/123456/charge_status.json?apikey=510e32c594d84816a4af9df1{
"is_valid": true,
"code": "123456",
"discount_type": "percentage",
"value": 15,
"message": ""
}Updated 5 months ago
