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: 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: 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.

success: bool

Indicates whether the operation completed successfully.

data: Optional[str]

Optional data payload returned by the operation.

message: Optional[str]

Human-readable message describing the result.

Submits external counting lines from an external counting integration.

import os
from datetime import datetime
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(
    counting_date_time=datetime.fromisoformat("2019-12-27T18:11:19.117"),
)
print(response.success)
{
  "success": true,
  "data": "data",
  "message": "message"
}
Returns Examples
{
  "success": true,
  "data": "data",
  "message": "message"
}