Saltar al contenido principal
POST
/
v1
/
planning
/
salesOrders
Create a new sales order
curl --request POST \
  --url https://api.bold-factory.com/v1/planning/salesOrders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerReference": "<string>",
  "code": "<string>",
  "name": "<string>",
  "notes": "<string>",
  "externalReference": "<string>",
  "codeForCustomer": "<string>",
  "orderedAt": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "customerId": "<string>",
  "customer": {
    "id": "cus_1mnbe80001w0m7qy",
    "externalReference": "CLI0007",
    "name": "Industrias Manolito",
    "deletedAt": null,
    "createdAt": "2025-12-29T17:32:58.4234296+00:00",
    "createdBy": "Cecilia.Valles@example.net",
    "lastModifiedAt": "2025-12-31T19:01:44.2841441+00:00",
    "lastModifiedBy": "Claudia52@example.com"
  },
  "code": "<string>",
  "name": "<string>",
  "notes": "<string>",
  "codeForCustomer": "<string>",
  "cancelledAt": "2023-11-07T05:31:56Z",
  "orderedAt": "2023-11-07T05:31:56Z",
  "requestedDeliveryAt": "2023-11-07T05:31:56Z",
  "committedDeliveryAt": "2023-11-07T05:31:56Z",
  "targetDeliveryAt": "2023-11-07T05:31:56Z",
  "stockExpectedAt": "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
customerReference
string
requerido
code
null | string
name
null | string
notes
null | string
externalReference
null | string
codeForCustomer
null | string
orderedAt
null | string<date-time>

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
customerId
string
requerido
customer
object
requerido
Ejemplo:
{
"id": "cus_1mnbe80001w0m7qy",
"externalReference": "CLI0007",
"name": "Industrias Manolito",
"deletedAt": null,
"createdAt": "2025-12-29T17:32:58.4234296+00:00",
"createdBy": "Cecilia.Valles@example.net",
"lastModifiedAt": "2025-12-31T19:01:44.2841441+00:00",
"lastModifiedBy": "Claudia52@example.com"
}
code
string
requerido
name
string
requerido
notes
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