Cancel an order

PATCH {{baseUrl}}/v1/orders/:id/cancel

Cancelling an order removes the associated offset allocation from an order. You will not be charged for cancelled orders. Only orders in the draft state can be cancelled.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"success":false,"error":{},"data":{"id":"nisi dolore nulla proident officia","mass_g":1705040866,"production":false,"state":"draft","allocation_state":"pending","price_cents_usd":"labore","patch_fee_cents_usd":"ullamco est ut","allocations":[{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"production":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"mass_g":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"production":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"mass_g":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"metadata":{}}}