Gets the stock history of the sku, optionally filtered by location and lot
curl --request GET \
--url https://api.bold-factory.com/v1/items/skus/{skuReference}/stock/history \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"history": [
{
"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>"
},
"lotId": "<string>",
"lot": {
"type": "Merged",
"firstLotId": "<string>",
"firstQuantity": 123,
"secondLotId": "<string>",
"secondQuantity": 123,
"id": "<string>",
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"code": "<string>",
"stock": 123,
"costPerUnit": {
"amount": 123,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"stockUnitId": "<string>",
"stockUnit": {
"id": "<string>",
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"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>"
},
"lotId": "<string>",
"lot": {
"type": "Merged",
"firstLotId": "<string>",
"firstQuantity": 123,
"secondLotId": "<string>",
"secondQuantity": 123,
"id": "<string>",
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"code": "<string>",
"stock": 123,
"costPerUnit": {
"amount": 123,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"amount": 123
},
"amount": 123,
"unitStockAfterChange": 123,
"occurredOn": "2023-11-07T05:31:56Z",
"relatedId": "<string>",
"relatedDetail": "<string>"
}
]
}SKUs
Gets the stock history of the sku, optionally filtered by location and lot
Requires Warehouse.Skus.Read permissions
GET
/
v1
/
items
/
skus
/
{skuReference}
/
stock
/
history
Gets the stock history of the sku, optionally filtered by location and lot
curl --request GET \
--url https://api.bold-factory.com/v1/items/skus/{skuReference}/stock/history \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"history": [
{
"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>"
},
"lotId": "<string>",
"lot": {
"type": "Merged",
"firstLotId": "<string>",
"firstQuantity": 123,
"secondLotId": "<string>",
"secondQuantity": 123,
"id": "<string>",
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"code": "<string>",
"stock": 123,
"costPerUnit": {
"amount": 123,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"stockUnitId": "<string>",
"stockUnit": {
"id": "<string>",
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"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>"
},
"lotId": "<string>",
"lot": {
"type": "Merged",
"firstLotId": "<string>",
"firstQuantity": 123,
"secondLotId": "<string>",
"secondQuantity": 123,
"id": "<string>",
"skuId": "<string>",
"sku": {
"id": "<string>",
"code": "<string>",
"externalReference": "<string>",
"name": "<string>",
"managesLots": true,
"stock": 123,
"unit": {
"id": "<string>",
"code": "<string>",
"name": "<string>"
},
"displayDecimalPlaces": 123
},
"code": "<string>",
"stock": 123,
"costPerUnit": {
"amount": 123,
"currency": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"amount": 123
},
"amount": 123,
"unitStockAfterChange": 123,
"occurredOn": "2023-11-07T05:31:56Z",
"relatedId": "<string>",
"relatedDetail": "<string>"
}
]
}Autorizaciones
JWTApiKey
Use a valid JWT token in the Authorization header with the format 'Bearer {token}'
Parámetros de ruta
Parámetros de consulta
⌘I