POST
/
v1
/
inventory
Create or update inventory
curl --request POST \
  --url https://api.sandbox.usenash.com/v1/inventory \
  --header 'Content-Type: application/json' \
  --data '{
  "inventory": [
    {
      "externalProductId": "<string>",
      "externalStoreLocationId": "<string>",
      "quantity": 123,
      "price": 123,
      "available": true,
      "location": {
        "aisle": "<string>",
        "bay": "<string>",
        "shelf": "<string>"
      }
    }
  ]
}'
[
  {
    "id": "<string>",
    "productId": "<string>",
    "storeLocationId": "<string>",
    "quantity": 123,
    "price": 123,
    "available": true,
    "location": {
      "aisle": "<string>",
      "bay": "<string>",
      "shelf": "<string>"
    }
  }
]

Body

application/json

Response

200
application/json

OK

Expected output when listing products, it will return an array of StoreInventoryOutputSerializer.