Skip to content

Mark as paid ​

For your own checkout. Call it when the customer says they've paid. The order moves to To be released (2); once the trader confirms the money, it's released and you get a callback.

POST/api/open/order/complete2

Full URL = your API base URL + this path. The base URL is shown in the merchant console under Developers → API & callbacks.

Request parameters ​

ParameterTypeRequiredDescription
merchantNostringYesMerchant number
merchantOrderNostringYesYour order number
cardIdintYesThe account the customer actually transferred to; must be a cardId from cards returned by own-checkout order creation
json
{ "merchantNo": "your merchant number", "merchantOrderNo": "A20261013001", "cardId": 1024 }

Response ​

No data on success:

json
{ "code": 0, "message": "success" }

TIP

Marking as paid does not mean the money has arrived. Credit the customer only after the callback has been verified.

WARNING

When the order returned several accounts, always send the cardId the customer actually paid to: the platform uses it to find the payee who checks the transfer and releases the order. A wrong cardId means the payee cannot find the money and the release is delayed.

Common errors ​

codeDescription
40000cardId missing
40020Order not found (only your own orders)
40021The order is not pending payment
40023cardId is not an account assigned to this order