PATCH /target-volume/cancel/:id
Cancel an unpaid order. Cancels the whole group the order belongs to and frees the user to create a new one.
Refused once any SOL has reached the payment address: a full payment
starts the order, and a partial one expires after 30 minutes and is
reported as EXPIRED.
Path params
| Param | Required | Description |
|---|---|---|
id | yes | Order _id. |
Response 200
{ "order": { "_id": "6730…", "eStatus": "4", "sStatus": "CANCELLED", "…": "…" } }
Errors
| Status | Meaning |
|---|---|
400 | Invalid order id. |
404 | Order not found or not owned. |
409 | The order is not waiting for payment, SOL has already reached the payment address, or a payment for this user is in progress. |
503 | The balance could not be read; retry. |
Example
curl -X PATCH "$BASE_URL/target-volume/cancel/6730…" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"