Skip to main content
POST
/
{locale}
/
shop
/
coupons
/
cancel-pending
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"
  }
}

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

coupon_id
integer
required
The ID of the pending coupon to cancel
shop_id
integer
required
The ID of the shop that set the pending status

Response

success
boolean
Indicates if the pending status was successfully cancelled
data
object
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"
  }
}