Шаг 2 — оплатить заказ (списать депозит, поставить в доставку)

POST/api/reseller/order/pay
curl -X POST https://hexpay.live/api/reseller/order/pay \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "custom_id": "a4cee2fe-ce8c-448b-bf2c-000000000001"
  }'
Paste your key in the menu and it will replace <YOUR_API_KEY>.
{
  "success": true,
  "custom_id": "a4cee2fe-ce8c-448b-bf2c-000000000001",
  "status": "pending",
  "price_charged_rub": 132.07
}

Authorization

Header Authorization: Bearer <key> on every request. The key is issued in the cabinet and shown once. It spends your deposit: keep it on the server.

Request body

custom_idstringrequired

Response fields

successbooleanoptional
custom_idstringoptional
statusstringoptional
one of:pendingprocessingdeliveredfailed
price_charged_rubnumberoptional

When it fails

401
402Недостаточно депозита (статус REJECTED)
404
409Заказ нельзя оплатить: он отменён/отклонён, либо позиция кончилась, пока заказ ждал оплаты (error_code: out_of_stock). Депозит не тронут.
Собираем анонимную аналитику посещений. Подробнее