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 paid 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.

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