List order stages
Returns the company's order pipeline stages in board order, with how many orders each holds. Use a stage `id` to create or move an order.
Returns the company's order pipeline stages in board order, with how many orders each holds. Use a stage id to create or move an order.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/order-pipeline/stages"[ { "category": "CANCELLED", "color": "string", "id": "string", "name": "string", "order": 0, "orderCount": 0, "uncompletedCount": 0 }]Withdraw an offer POST
Takes back a sent offer: its link stops working and the customer can no longer accept it. The deal is left as it is. Withdrawing an offer that is already withdrawn changes nothing; any other status than `SENT` returns 409.
Cancel an order POST
Cancels the order with a reason and moves it to the company's first `CANCELLED` stage. Refusals, all 400: - `COMPLETION_EXISTS`: the order is completed. - `INVOICE_EXISTS`: the order has an invoice.