Coupon
Manage discount coupons and gift cards. Ability to validate coupons and check gift cards.
Available Endpoints
| Method |
Path |
Description |
| POST |
/api/coupon/validate |
Validate discount coupon |
| POST |
/api/coupon/gift-card/check |
Check gift card |
Example Request
curl -X POST "https://example.com/api/coupon/validate" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d '{"code": "DISCOUNT10"}'
Success Response (200)
{
"valid": true,
"discount": 10
}
Errors
| Code |
Description |
| 401 |
Invalid token |
| 422 |
Validation error |