/api/reseller/order/paycurl -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"
}'{
"success": true,
"custom_id": "a4cee2fe-ce8c-448b-bf2c-000000000001",
"status": "pending",
"price_charged_rub": 132.07
}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.
custom_idstringrequiredsuccessbooleanoptionalcustom_idstringoptionalstatusstringoptionalpendingprocessingdeliveredfailedprice_charged_rubnumberoptional401—402Недостаточно депозита (статус REJECTED)404—409Заказ нельзя оплатить: он отменён/отклонён, либо позиция кончилась,
пока заказ ждал оплаты (error_code: out_of_stock). Депозит не тронут.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"
}'{
"success": true,
"custom_id": "a4cee2fe-ce8c-448b-bf2c-000000000001",
"status": "pending",
"price_charged_rub": 132.07
}