Cancel an unpaid EMC order
cancel_orderCancel an unpaid buy order using its token to expire it and free the slot. Use this only before payment is made.
Instructions
Cancel a still-unpaid buy_emc order by its token, expiring it now and freeing
its slot ahead of the TTL. Use this only before you pay; once a payment is in
flight or confirmed it is too late and this errors. A payment sent after
cancellation matches nothing and is NOT refunded. To only inspect an order without
changing it, use get_order_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | opaque order handle returned by buy_emc; pass it back unchanged |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | human-quotable order number (DB id) | |
| status | Yes | ||
| amount_usdt | Yes | ||
| emc_amount | Yes | ||
| destination_emc_address | Yes | ||
| deposit_address | Yes | ||
| emc_txid | No | ||
| expires_at | Yes |