curl --request POST \
--url 'https://api.stateset.com/api/v1/stock-snapshots' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"label": null,
"lines": [
{
"location": null,
"product_id": "string",
"quantity_available": "string",
"quantity_on_hand": "string",
"sku": "string"
}
]
}'
{
"captured_at": "string",
"id": "string",
"label": null,
"lines": [
{
"location": null,
"product_id": "string",
"quantity_available": "string",
"quantity_on_hand": "string",
"sku": "string"
}
],
"total_skus": 1,
"total_units": "string"
}
Capture
POST
/
api
/
v1
/
stock-snapshots
curl --request POST \
--url 'https://api.stateset.com/api/v1/stock-snapshots' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"label": null,
"lines": [
{
"location": null,
"product_id": "string",
"quantity_available": "string",
"quantity_on_hand": "string",
"sku": "string"
}
]
}'
{
"captured_at": "string",
"id": "string",
"label": null,
"lines": [
{
"location": null,
"product_id": "string",
"quantity_available": "string",
"quantity_on_hand": "string",
"sku": "string"
}
],
"total_skus": 1,
"total_units": "string"
}
Request body
CaptureRequest
string,null
CaptureLineRequest[]
required
Responses
SnapshotResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/stock-snapshots' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"label": null,
"lines": [
{
"location": null,
"product_id": "string",
"quantity_available": "string",
"quantity_on_hand": "string",
"sku": "string"
}
]
}'
{
"captured_at": "string",
"id": "string",
"label": null,
"lines": [
{
"location": null,
"product_id": "string",
"quantity_available": "string",
"quantity_on_hand": "string",
"sku": "string"
}
],
"total_skus": 1,
"total_units": "string"
}
โI