Saltar al contenido principal
POST
/
v1
/
planning
/
purchaseOrders
Create a new purchase order
curl --request POST \
  --url https://api.bold-factory.com/v1/planning/purchaseOrders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "supplierReference": "<string>",
  "name": "<string>",
  "code": "<string>",
  "notes": "<string>",
  "externalReference": "<string>",
  "codeForSupplier": "<string>"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "supplierId": "<string>",
  "supplier": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "taxIdentificationNumber": "<string>",
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "code": "<string>",
  "name": "<string>",
  "notes": "<string>",
  "codeForSupplier": "<string>",
  "expectedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>"
}

Autorizaciones

Authorization
string
header
requerido

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

Cuerpo

application/json
supplierReference
string
requerido
name
null | string
code
null | string
notes
null | string
externalReference
null | string
codeForSupplier
null | string

Respuesta

Created

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