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_idstringrequired

Request body

variant_idstring

Variant UUID.

barcodestring
skustring
counted_quantitynumber

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

reasonstring
notesstring

Responses

201Successful Response

successboolean
messagestring
codestring
dataAddCountLineResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

409Conflict - Resource already exists

422Validation Error - Invalid data format