# Cancel an order **POST /api/external/hub/v1/orders/cancel_order** Request cancellation of an order. Orders can only be cancelled before they are shipped. ## Servers - Public API: https://api.useshelf.com (Public API) ## Parameters ### Query parameters - **connect_identifier** (string) Connect identifier for the seller account - **market_order_id** (string) Marketplace order ID to cancel ## Responses ### 422 Missing or invalid parameters #### Body: application/json (object) - **errors** (array[string]) ### 200 Order cancellation processed #### Body: application/json (object) - **market_order_id** (string) Cancelled order ID - **success** (boolean) Whether cancellation was successful - **message** (string) Cancellation result message [Powered by Bump.sh](https://bump.sh)