Documentation Index
Fetch the complete documentation index at: https://docs.loyalty.lt/llms.txt
Use this file to discover all available pages before exploring further.
Cancel Coupon Pending
Cancel the pending status of a coupon that was previously reserved. This releases the coupon so it can be used elsewhere.
This endpoint uses Partner API authentication (X-API-Key and X-API-Secret headers). Only the shop that set the pending status can cancel it.
Request Body
The ID of the pending coupon to cancel
The ID of the shop that set the pending status
Response
Indicates if the pending status was successfully cancelled
ISO 8601 timestamp when pending was cancelled
curl -X POST "https://staging-api.loyalty.lt/en/shop/coupons/cancel-pending" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret" \
-H "Content-Type: application/json" \
-d '{
"coupon_id": 123,
"shop_id": 1
}'
{
"success": true,
"message": "Coupon pending status cancelled successfully",
"data": {
"coupon_id": 123,
"cancelled_at": "2025-01-15T14:35:00Z"
}
}
Set Pending
Reserve a coupon
Verify Coupon
Verify coupon status