Skip to main content

POST /split/orders/:orderId/check-payment

Check whether an EXTERNAL order has been paid. Reads the deposit address balance and, once it covers the order, marks the order FUNDED so the worker can execute it.

Use case​

Call after sending SOL to sDepositAddress (the "Check & Continue" step).

Path params​

ParamRequiredDescription
orderIdyesSplit order id.

Response 200​

{
"orderId": "665f1c2e9b1d4a0012345678",
"eStatus": "PENDING_DEPOSIT",
"nReceivedSOL": 1.5,
"nRequiredSOL": 2
}
FieldDescription
eStatusFUNDED when the payment is sufficient, otherwise PENDING_DEPOSIT.
nReceivedSOLSOL currently on the deposit address.
nRequiredSOLSOL required.

Errors​

StatusMeaning
400orderId malformed.
404Order not found or not yours.
409Order is not an unpaid EXTERNAL order.

Example​

curl -X POST "$BASE_URL/split/orders/<orderId>/check-payment" \
-H "Authorization: Bearer $ACCESS" -H "x-user-id: $USER_ID"