Close Order
Close an order whose payment has not completed. The current Allinpay/KPay route rejects PAID orders by default; use the enabled refund flow to return funds for a paid order. Query the final outcome when closing races with payment.
API Information
- Endpoint: POST
https://api.aimt-horizon.com/mis/close - Signature: Uses terminal_sn + terminal_key
Request Parameters
Request Example
Response (Accepted; Query Required)
Response Example (Failure)
Important
- Query first; payment can still complete afterward. Query again if closing is rejected because the order is paid. Unpaid orders remain subject to pre-cancel conditions and channel/device support. MIS_PUSH_SUCCESS only acknowledges acceptance and must not mark the local order as canceled.
- out_trade_no must match the original order pushed via tradePush.
- ORDER_CLOSE_ABORT_IN_PROGRESS is pending; on PAY_TYPE_CANCEL_NOT_SUPPORTED, follow the device flow and query before choosing another action.
- Always verify the cancellation result via callback or Query API before confirming to the customer.
