Skip to main content
POST
Create a new sales order

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
customerReference
string
requerido
code
null | string
name
null | string
notes
null | string
externalReference
null | string
codeForCustomer
null | string
orderedAt
null | string<date-time>
deliveryInstructions
null | string

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
customerId
string
requerido
customer
object | null
requerido
Ejemplo:
code
string
requerido
name
string
requerido
notes
null | string
requerido
deliveryInstructions
null | string
requerido
codeForCustomer
null | string
requerido
status
enum<string>
requerido
Opciones disponibles:
Cancelled,
Draft,
Pending,
PartiallyDelivered,
Delivered
stockStatus
any | null
requerido
Opciones disponibles:
Pending,
PartiallyPlanned,
FullyPlanned,
Ready,
NotRequired,
null
cancelledAt
null | string<date-time>
requerido
orderedAt
string<date-time>
requerido
requestedDeliveryAt
null | string<date-time>
requerido
committedDeliveryAt
null | string<date-time>
requerido
targetDeliveryAt
null | string<date-time>
requerido
stockExpectedAt
null | string<date-time>
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido