Skip to main content
POST
/
api
/
platform
/
v1
/
products
/
inventories
/
batches
Creates or updates inventory quantities in batch
curl --request POST \
  --url https://api.bspk.com/api/platform/v1/products/inventories/batches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inventories": [
    {
      "product_ref": "prd-123",
      "sku": "sku-123",
      "quantity": 10,
      "store_ref": "str1",
      "at": "2021-01-01T00:00:00Z"
    }
  ]
}
'
{
  "status": "<string>",
  "results": [
    {
      "index": 123,
      "status": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
inventories
object[]
required

Response

Partial success with warnings

status
string
required

Status of the batch update.

results
object[]
required