Purchase Orders
Delete Purchase Order
This endpoint deletes an existing purchase order.
DELETE
/v1/purchase_orders/:id
Bearer*
Body
purchase_order_id
string
The ID provided in the data tab may be used to identify the purchase order
Response
id
string
The ID provided in the data tab may be used to identify the purchase order
object
string
The object type
success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
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
}
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
}