GuideLab API

Cancel a purchase order

Cancels a purchase order. Cannot cancel orders that are already received or cancelled.

POST
/inventory/purchase-orders/{id}/cancel

Cancels a purchase order. Cannot cancel orders that are already received or cancelled.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Path Parameters

id*string

Purchase order ID

Response Body

application/json

curl -X POST "https://example.com/inventory/purchase-orders/550e8400-e29b-41d4-a716-446655440000/cancel"
{  "data": {    "id": "string",    "poNumber": "string",    "status": "string",    "createdAt": "string",    "updatedAt": "string",    "property1": null,    "property2": null  }}
Empty
Empty
Empty