Skip to content
Get started

Create External Counting Lines

POST/api/v2/public/externalcountinglines

Books counted quantities from an external counting system as stock movements. Use it instead of the stock movement endpoint when counts come from a third-party counting provider.

Body ParametersJSONExpand Collapse
CountingDateTime: optional string

The date and time the counting was performed.

formatdate-time
Lines: optional array of object { counted_quantity, product_barcode }

The list of counted product lines.

counted_quantity: optional number

The counted quantity for this product.

formatfloat
product_barcode: optional string

The product barcode that was scanned.

StoreNo: optional string

The store number.

ReturnsExpand Collapse
success: boolean

Indicates whether the operation completed successfully.

data: optional string

Optional data payload returned by the operation.

message: optional string

Human-readable message describing the result.

Create External Counting Lines

curl https://api.colleqtive.net/api/v2/public/externalcountinglines \
    -X POST \
    -H "Authorization: $COLLEQTIVE_BEARER_TOKEN"
{
  "success": true,
  "data": "data",
  "message": "message"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}
Returns Examples
{
  "success": true,
  "data": "data",
  "message": "message"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}