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/complete2Full URL = your API base URL + this path. The base URL is shown in the merchant console under Developers → API & callbacks.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
merchantNo | string | Yes | Merchant number |
merchantOrderNo | string | Yes | Your order number |
cardId | int | Yes | The 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
| code | Description |
|---|---|
| 40000 | cardId missing |
| 40020 | Order not found (only your own orders) |
| 40021 | The order is not pending payment |
| 40023 | cardId is not an account assigned to this order |