curl --request POST \
--url https://api.sandbox.usenash.com/v1/inventory \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"externalProductId": "ext_001",
"externalStoreLocationId": "store_001",
"quantity": 50,
"valueCents": 299,
"currency": "USD",
"available": true,
"location": {
"aisle": "Produce",
"bay": "Fruits",
"shelf": "Bananas"
},
"details": {
"weightedItemInfo": {
"valueCentsPerMeasurementUnit": 120
}
}
}
]
}'
[
{
"id": "<string>",
"productId": "prod_123",
"externalProductId": "ext_001",
"storeLocationId": "store_001",
"externalStoreLocationId": "ext_store_002",
"quantity": 50,
"valueCents": 299,
"currency": "USD",
"available": true,
"location": {
"aisle": "Produce",
"bay": "Fruits",
"shelf": "Bananas"
},
"details": {
"weightedItemInfo": {
"valueCentsPerMeasurementUnit": 120
}
}
}
]
curl --request POST \
--url https://api.sandbox.usenash.com/v1/inventory \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"externalProductId": "ext_001",
"externalStoreLocationId": "store_001",
"quantity": 50,
"valueCents": 299,
"currency": "USD",
"available": true,
"location": {
"aisle": "Produce",
"bay": "Fruits",
"shelf": "Bananas"
},
"details": {
"weightedItemInfo": {
"valueCentsPerMeasurementUnit": 120
}
}
}
]
}'
[
{
"id": "<string>",
"productId": "prod_123",
"externalProductId": "ext_001",
"storeLocationId": "store_001",
"externalStoreLocationId": "ext_store_002",
"quantity": 50,
"valueCents": 299,
"currency": "USD",
"available": true,
"location": {
"aisle": "Produce",
"bay": "Fruits",
"shelf": "Bananas"
},
"details": {
"weightedItemInfo": {
"valueCentsPerMeasurementUnit": 120
}
}
}
]
OK
Expected output when listing products, it will return an array of StoreInventoryOutputSerializer.