Delete purchase order (not currently operational)

Not currently operational. Once the caller is authorized, this endpoint attempts
a soft-delete that the application cannot perform: the purchase order does not support
discarding (there is no discarded_at column and no discard behaviour on the model),
so the delete raises server-side and returns 500 Internal Server Error. There is
no soft-delete or restore capability for purchase orders. Do not rely on this endpoint
until it is fixed.

Authorization

  • Authorization is checked first (Pundit); an unauthorized caller gets a 401 with an
    empty body before the 500 path is reached.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

ID of the purchase order to delete

Headers
uuid
required

UUID of the company on whose behalf the request is made. Required for every Pay endpoint.
See The company-id header for details on how to obtain
a value for this header and the error responses to expect when it is missing or invalid.

If the deprecated company_id query parameter is also sent, both values must match;
the API returns 422 Unprocessable Entity when they disagree.

Responses
401

Unauthorized — invalid/missing authentication token, or the caller is not
authorized to delete this purchase order (Pundit policy). The response body
is empty
(Pundit renders nothing); branch on the status code, not the body.

500

Internal Server Error — the delete path is broken (see summary). An authorized
delete request reaches this state today because purchase orders cannot be discarded.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json