Skip to main content
POST
/
{locale}
/
shop
/
coupons
/
pending
curl -X POST "https://staging-api.loyalty.lt/en/shop/coupons/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,
    "selected_product_id": 456
  }'
{
  "success": true,
  "message": "Coupon set to pending successfully",
  "data": {
    "coupon_id": 123,
    "pending_at": "2025-01-15T14:25:00Z",
    "shop_id": 1,
    "selected_product_id": 456
  }
}

Set Coupon Pending

Set a coupon to pending status, reserving it for redemption at your shop. This prevents the coupon from being used at other locations while you process the transaction.
This endpoint uses Partner API authentication (X-API-Key and X-API-Secret headers). A pending coupon can only be redeemed or cancelled at the shop that set it to pending.

Request Body

coupon_id
integer
required
The ID of the coupon to set as pending
shop_id
integer
required
The ID of the shop reserving the coupon
selected_product_id
integer
Product ID if the coupon requires product selection

Response

success
boolean
Indicates if the coupon was successfully set to pending
data
object
curl -X POST "https://staging-api.loyalty.lt/en/shop/coupons/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,
    "selected_product_id": 456
  }'
{
  "success": true,
  "message": "Coupon set to pending successfully",
  "data": {
    "coupon_id": 123,
    "pending_at": "2025-01-15T14:25:00Z",
    "shop_id": 1,
    "selected_product_id": 456
  }
}