For AI agents: visit https://developers.e-guma.ch/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
URL
GET https://api.e-guma.ch/v1/promo_codes/{code}/status.json?apikey={api-key}
Attribute Description code requiredThe alphanumeric code of the promo code. Please use url_encode for the code as it might contain special characters. api-key required
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
Request
GET https://api.e-guma.ch/v1/promo_codes/123456/charge_status.json?apikey=510e32c594d84816a4af9df1
Response
{
"is_valid": true,
"code": "123456",
"discount_type": "percentage",
"value": 15,
"message": ""
}