POST /v1/orders/{order_id}/cancel

Cancels a given order. Merchbar will ignore the response body for this request, so long as it is not an error, but following REST principles the order object should be returned, potentially without fields that are no longer relevant after the order is cancelled.

Request Body: None

Example Response:

{
    "data": {
        "id": "CONF128472-294",
        "created": "2016-08-01T13:12:11Z",
        "status": "CANCELLED",
        "line_items": [
            {
                "id": "SKU456",
                "quantity": 2,
                "available": true
            },
            {
                "id": "SKU123",
                "variant_id": "SKU1232X",
                "quantity": 1,
                "available": true
            }
        ]
    }
}
Was this article helpful?
0 out of 0 found this helpful