Skip to main content

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​

ParamRequiredDescription
makersIdyesOrder id.

Response 200​

{ "makersId": "6731…", "status": "CANCELLED", "message": "Order cancelled" }

Errors​

StatusMeaning
400Invalid makersId, or the order is not in PENDING_PAYMENT.
404Order not found or not owned.

Example​

curl -X PATCH "$BASE_URL/makers/cancel/6731…" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"