Skip to main content

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​

ParamRequiredDescription
idyesOrder _id.

Response 200​

{ "order": { "_id": "6730…", "eStatus": "4", "sStatus": "CANCELLED", "…": "…" } }

Errors​

StatusMeaning
400Invalid order id.
404Order not found or not owned.
409The order is not waiting for payment, SOL has already reached the payment address, or a payment for this user is in progress.
503The 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"