Skip to main content
POST
/
purchase-orders
/
delete
Remove Purchase Orders
curl --request POST \
  --url https://api-v2.production.higg.org/pic-api/v1/purchase-orders/delete \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-developer-request-token: <api-key>' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "successIds": [
    "<string>"
  ],
  "failureIds": [
    "<string>"
  ]
}
Use this endpoint to delete one or more purchase orders from your PIC inventory.
This action is destructive and cannot be undone.

Request body params

Field NameData TypeDescription
idsArray<string>[REQUIRED] An array of purchase order IDs to delete.

Implementation Details

  • Bulk operation: You can delete multiple purchase orders in a single request.
  • Response format: Returns { successIds: string[], failureIds: string[] } indicating which deletions succeeded and which failed.

Authorizations

x-api-key
string
header
required
x-developer-request-token
string
header
required

Body

application/json

API id based requests (import/remove/sync)

ids
string[]
required

Response

200 - application/json

Ok

successIds
string[]
required
failureIds
string[]
required