Saltar al contenido principal
POST
/
v1
/
warehouse
/
counts
/
{countReference}
/
locations
/
{locationReference}
/
entries
Add a new entry to an inventory count
curl --request POST \
  --url https://api.bold-factory.com/v1/warehouse/counts/{countReference}/locations/{locationReference}/entries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "skuReference": "<string>",
  "lotId": "<string>",
  "quantity": 123,
  "comment": "<string>"
}
'
{
  "id": "<string>",
  "countId": "<string>",
  "locationId": "<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
  },
  "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>"
  },
  "comment": "<string>",
  "stockAtCount": 123,
  "countedQuantity": 123,
  "plannedAdjustment": 123,
  "countedAt": "2023-11-07T05:31:56Z"
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

countReference
string
requerido
locationReference
string
requerido

Cuerpo

application/json
skuReference
string
requerido
lotId
null | string
requerido
quantity
number<double>
requerido
comment
null | string

Respuesta

Created

id
string
requerido
countId
string
requerido
locationId
string
requerido
skuId
string
requerido
sku
object
requerido
lotId
string
requerido
lot
object
requerido
comment
null | string
requerido
stockAtCount
number<double>
requerido
countedQuantity
number<double>
requerido
plannedAdjustment
number<double>
requerido
countedAt
string<date-time>
requerido