curl --request POST \
--url 'https://api.stateset.com/api/v1/cycle-counts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"counted_by": null,
"lines": [
{
"expected_quantity": "string",
"lot_id": null,
"sku": "string"
}
],
"location_id": null,
"scheduled_date": null,
"warehouse_id": 1
}'
{
"completed_at": null,
"counted_by": null,
"created_at": "string",
"id": "string",
"lines": [
{
"counted_quantity": null,
"expected_quantity": "string",
"id": "string",
"lot_id": null,
"sku": "string",
"variance": null
}
],
"location_id": null,
"scheduled_date": null,
"status": "string",
"updated_at": "string",
"warehouse_id": 1
}
Create a cycle count
Create a cycle count
POST
/
api
/
v1
/
cycle-counts
curl --request POST \
--url 'https://api.stateset.com/api/v1/cycle-counts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"counted_by": null,
"lines": [
{
"expected_quantity": "string",
"lot_id": null,
"sku": "string"
}
],
"location_id": null,
"scheduled_date": null,
"warehouse_id": 1
}'
{
"completed_at": null,
"counted_by": null,
"created_at": "string",
"id": "string",
"lines": [
{
"counted_quantity": null,
"expected_quantity": "string",
"id": "string",
"lot_id": null,
"sku": "string",
"variance": null
}
],
"location_id": null,
"scheduled_date": null,
"status": "string",
"updated_at": "string",
"warehouse_id": 1
}
Request body
CreateCycleCountRequest
string,null
CreateCycleCountLineRequest[]
required
integer,null (int32)
string,null
RFC3339 timestamp for the scheduled count date.
integer (int32)
required
Responses
CycleCountResponse
ErrorBody
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/cycle-counts' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"counted_by": null,
"lines": [
{
"expected_quantity": "string",
"lot_id": null,
"sku": "string"
}
],
"location_id": null,
"scheduled_date": null,
"warehouse_id": 1
}'
{
"completed_at": null,
"counted_by": null,
"created_at": "string",
"id": "string",
"lines": [
{
"counted_quantity": null,
"expected_quantity": "string",
"id": "string",
"lot_id": null,
"sku": "string",
"variance": null
}
],
"location_id": null,
"scheduled_date": null,
"status": "string",
"updated_at": "string",
"warehouse_id": 1
}
โI