Create a purchase order from an external provider payload
1 min
POST
https://developer.digitail.io/api/v1/external-purchase-orders
acceptstringGenerated from available response content types
X-ClinicIdintegerId of the clinic to create the purchase order for. Must be a clinic the authenticated vet is employed by. Defaults to the vet's active clinic.
bodyobject
201Purchase order created successfully.
curl --request POST \
--url https://developer.digitail.io/api/v1/external-purchase-orders \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"timestamp": "2025-06-11T10:00:00.000Z",
"id": "",
"supplier": {
"name": "Covetrus"
},
"items": [
{
"id": "",
"is_linked": true,
"provider_item_id": "",
"sku": "026143",
"name": "GlycoFlex 3 Bite-Sized Chews: 120 Count",
"quantity": 4,
"unit_price": 2000,
"units": 120,
"unit_measurement": "chew",
"manufacturer_name": "Vetri-Science"
}
]
}'