Saltar al contenido principal
POST
/
v1
/
planning
/
purchaseOrders
/
{orderReference}
/
receipt
Create a new receipt from a PurchaseOrder
curl --request POST \
  --url https://api.bold-factory.com/v1/planning/purchaseOrders/{orderReference}/receipt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "locationReference": "<string>",
  "externalReference": "<string>",
  "code": "<string>",
  "date": "2023-12-25",
  "receiveImmediately": true
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "date": "2023-12-25",
  "origin": "<string>",
  "originId": "<string>",
  "code": "<string>",
  "locationId": "<string>",
  "location": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "received": true,
  "receivedAt": "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}'

Parámetros de ruta

orderReference
string
requerido

Cuerpo

application/json
locationReference
null | string
requerido
externalReference
null | string
code
null | string
date
null | string<date>
receiveImmediately
null | boolean

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
date
string<date>
requerido
origin
string
requerido
originId
string
requerido
type
enum<string>
requerido
Opciones disponibles:
Supplier,
Customer
status
enum<string>
requerido
Opciones disponibles:
Pending,
Received
code
string
requerido
locationId
null | string
requerido
location
object
requerido
received
boolean
requerido
receivedAt
null | string<date-time>
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido