Create a new receipt from a file
curl --request POST \
--url https://api.bold-factory.com/v1/warehouse/receipts/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"receipt": {
"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>"
},
"identifiedLines": [
{
"id": "<string>",
"externalReference": "<string>",
"relatedId": "<string>",
"receipt": {
"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>"
},
"receiptId": "<string>",
"type": "PurchaseOrderLine",
"skuId": "<string>",
"totalPrice": {
"amount": 123,
"currency": "<string>"
},
"lotNumber": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"quantity": 123,
"inspections": [
{
"id": "<string>",
"receiptId": "<string>",
"lineId": "<string>",
"name": "<string>",
"isMandatory": true,
"isCompleted": true,
"result": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"completedByEmployeeId": "<string>"
}
]
}
],
"unidentifiedLines": [
{
"customerCode": "<string>",
"supplierCode": "<string>",
"orderCode": "<string>",
"description": "<string>",
"quantity": 123,
"pricePerUnit": 123,
"lotCode": "<string>"
}
]
}Receipts
Create a new receipt from a file
Requires Warehouse.Receipts.Write permissions
POST
/
v1
/
warehouse
/
receipts
/
files
Create a new receipt from a file
curl --request POST \
--url https://api.bold-factory.com/v1/warehouse/receipts/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'{
"receipt": {
"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>"
},
"identifiedLines": [
{
"id": "<string>",
"externalReference": "<string>",
"relatedId": "<string>",
"receipt": {
"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>"
},
"receiptId": "<string>",
"type": "PurchaseOrderLine",
"skuId": "<string>",
"totalPrice": {
"amount": 123,
"currency": "<string>"
},
"lotNumber": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"quantity": 123,
"inspections": [
{
"id": "<string>",
"receiptId": "<string>",
"lineId": "<string>",
"name": "<string>",
"isMandatory": true,
"isCompleted": true,
"result": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"completedByEmployeeId": "<string>"
}
]
}
],
"unidentifiedLines": [
{
"customerCode": "<string>",
"supplierCode": "<string>",
"orderCode": "<string>",
"description": "<string>",
"quantity": 123,
"pricePerUnit": 123,
"lotCode": "<string>"
}
]
}Autorizaciones
JWTApiKey
Use a valid JWT token in the Authorization header with the format 'Bearer {token}'
Cuerpo
multipart/form-data
⌘I