PATCH /makers/cancel/:makersId
Cancel a pending order. Only orders in PENDING_PAYMENT can be
cancelled. Once the order is running it can no longer be cancelled.
Frees the singleton slot, so the user can initialize a new Makers or Holders order.
Path params
| Param | Required | Description |
|---|---|---|
makersId | yes | Order id. |
Response 200
{ "makersId": "6731…", "status": "CANCELLED", "message": "Order cancelled" }
Errors
| Status | Meaning |
|---|---|
400 | Invalid makersId, or the order is not in PENDING_PAYMENT. |
404 | Order not found or not owned. |
Example
curl -X PATCH "$BASE_URL/makers/cancel/6731…" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"