Skip to main content
POST
Create a new purchase order

Authorizations

Authorization
string
header
required

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Body

application/json
supplierReference
string
required
name
null | string
code
null | string
notes
null | string
externalReference
null | string
codeForSupplier
null | string
lines
object[]

Response

Created

id
string
required
externalReference
null | string
required
supplierId
string
required
supplier
object | null
required
code
string
required
name
string
required
notes
null | string
required
codeForSupplier
null | string
required
expectedAt
null | string<date-time>
required
status
enum<string>
required
Available options:
Cancelled,
Draft,
Pending,
PartiallyReceived,
Received
createdAt
string<date-time>
required
createdBy
string
required
lastModifiedAt
string<date-time>
required
lastModifiedBy
string
required