EndpointsPurchasingPurchase orders
Create a draft or ordered purchase order
The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.
POST
bearerAuthheader
AuthorizationBearer <inv_ token>Idempotency-Key*stringUUID identifying this atomic operation; reuse it only to retry the exact same request.
Format
uuidX-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
reference?|Length
length <= 160contactId?|Format
uuidsupplier?stringLength
length <= 240status?stringValue in
"draft""ordered"orderedAt?stringFormat
date-timeexpectedAt?|Format
date-timenote?stringLength
length <= 20000lines*array<|>Items
1 <= items <= 100Replayed the original purchase-order response
curl -X POST 'https://inventory.example.com/api/v1/purchase-orders' \ -H 'Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "lines": [ { "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6" } ]}'Example Response
Empty