curl --location --request DELETE 'https://api.stateset.com/v1/purchase_order' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "id": "po_1NXWPnCo6bFb1KQto6C8OWvE" }'
{ "id": "po_1NXWPnCo6bFb1KQto6C8OWvE", "object": "purchaseorder", "deleted": true }
This endpoint deletes an existing purchase order.