Saltar al contenido principal
POST
/
v1
/
warehouse
/
counts
Create a new inventory count
curl --request POST \
  --url https://api.bold-factory.com/v1/warehouse/counts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "notes": "<string>",
  "externalReference": "<string>",
  "locations": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "externalReference": "<string>",
  "name": "<string>",
  "notes": "<string>",
  "locations": [
    {
      "countId": "<string>",
      "locationId": "<string>",
      "locationName": "<string>"
    }
  ],
  "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
name
string
requerido
notes
null | string
externalReference
null | string
locations
string[]

Respuesta

Created

id
string
requerido
externalReference
null | string
requerido
name
string
requerido
notes
string
requerido
status
enum<string>
requerido
Opciones disponibles:
Pending,
InProgress,
Finished
locations
object[]
requerido
createdAt
string<date-time>
requerido
createdBy
string
requerido
lastModifiedAt
string<date-time>
requerido
lastModifiedBy
string
requerido