Add or scan a line

POST /api/v1/inventory/counts/{count_id}/lines

Add a line by variant_id, barcode, or sku. Re-scans of the same variant update the existing line.

Operation ID: add_count_line_api_v1_inventory_counts__count_id__lines_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

count_id string required

Request body

variant_id string

Variant UUID.

barcode string
sku string
counted_quantity number

Optional initial count. If omitted, the line is added with expected_quantity only and the user records the count later.

reason string
notes string

Responses

201 Successful Response

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

409 Conflict - Resource already exists

422 Validation Error - Invalid data format