Coupons
Verify a coupon code
Checks whether a coupon code is valid and redeemable at the given shop. Call this before applying a discount at the till.
POST
/{locale}/shop/coupons/verifyChecks whether a coupon code is valid and redeemable at the given shop. Call this before applying a discount at the till.
Authorization
apiKey apiSecret X-API-Key<token>
Partner API key from the Partners Portal. Always sent together with X-API-Secret.
In: header
X-API-Secret<token>
Partner API secret. Always sent together with X-API-Key.
In: header
Path Parameters
locale*string
Locale code
Value in
- "lt"
- "en"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/lt/shop/coupons/verify" \ -H "Content-Type: application/json" \ -d '{ "coupon_code": "SAVE20", "shop_id": 1 }'{ "success": true, "code": 200, "request_id": "550e8400-e29b-41d4-a716-446655440000", "message": "Success message", "data": {}}