Saltar al contenido principal
POST
/
v1
/
warehouse
/
containers
Create a new container
curl --request POST \
  --url https://api.bold-factory.com/v1/warehouse/containers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "locationReference": "<string>",
  "typeReference": "<string>",
  "initialContent": [
    {
      "skuReference": "<string>",
      "lotId": "<string>",
      "quantity": 123
    }
  ],
  "relatedId": "<string>",
  "code": "<string>",
  "externalReference": "<string>"
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "code": "<string>",
  "typeId": "<string>",
  "typeName": "<string>",
  "widthMm": 123,
  "heightMm": 123,
  "lengthMm": 123,
  "relatedId": "<string>",
  "contentCount": 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>"
  },
  "contents": [
    {
      "containerId": "<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>"
      },
      "quantity": 123
    }
  ],
  "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
locationReference
string
requerido
typeReference
string
requerido
initialContent
object[]
requerido
code
null | string
externalReference
null | string

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
code
string
requerido
typeId
string
requerido
typeName
string
requerido
widthMm
number<double>
requerido
heightMm
number<double>
requerido
lengthMm
number<double>
requerido
status
enum<string>
requerido
Opciones disponibles:
Active,
Inactive
contentCount
integer<int32>
requerido
locationId
string
requerido
location
object
requerido
contents
object[]
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido