Skip to content
Get started

Submits external counting lines from an external counting integration.

counting_lines.create_external_counting_lines(CountingLineCreateExternalCountingLinesParams**kwargs) -> CountingLineCreateExternalCountingLinesResponse
POST/api/v2/public/externalcountinglines

Submits external counting lines from an external counting integration.

ParametersExpand Collapse
counting_date_time: Optional[Union[str, datetime]]

The date and time the counting was performed.

formatdate-time
lines: Optional[Iterable[Line]]

The list of counted product lines.

counted_quantity: Optional[float]

The counted quantity for this product.

formatfloat
product_barcode: Optional[str]

The product barcode that was scanned.

store_no: Optional[str]

The store number.

ReturnsExpand Collapse
class CountingLineCreateExternalCountingLinesResponse:

Standard success response returned by mutation endpoints.

data: Optional[str]

Optional data payload returned by the operation.

message: Optional[str]

Human-readable message describing the result.

success: Optional[bool]

Indicates whether the operation completed successfully.

Submits external counting lines from an external counting integration.

import os
from colleqtive_sdk import Colleqtive

client = Colleqtive(
    bearer_token=os.environ.get("COLLEQTIVE_BEARER_TOKEN"),  # This is the default and can be omitted
)
response = client.counting_lines.create_external_counting_lines()
print(response.data)
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}
Returns Examples
{
  "data": "12345",
  "message": "Record created successfully.",
  "success": true
}