Body
The ID provided in the data tab may be used to identify the purchase order
Response
The ID provided in the data tab may be used to identify the purchase order
The object type
Indicates whether the call was successful. 1 if successful, 0 if not.
curl --location --request POST 'https://api.stateset.com/v1/purchase_order/:id/cancel' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "po_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "po_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "purchaseorder",
"cancelled": true
}
This endpoint cancels an existing purchase order.
curl --location --request POST 'https://api.stateset.com/v1/purchase_order/:id/cancel' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "po_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "po_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "purchaseorder",
"cancelled": true
}
curl --location --request POST 'https://api.stateset.com/v1/purchase_order/:id/cancel' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "po_1NXWPnCo6bFb1KQto6C8OWvE"
}'
{
"id": "po_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "purchaseorder",
"cancelled": true
}