# Counting Lines

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

### Parameters

- `counting_date_time: Union[str, datetime]`

  The date and time the counting was performed.

- `lines: Optional[Iterable[Line]]`

  The list of counted product lines.

  - `counted_quantity: float`

    The counted quantity for this product.

  - `product_barcode: Optional[str]`

    The product barcode that was scanned.

- `store_no: Optional[str]`

  The store number.

### Returns

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

### Example

```python
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)
```

#### Response

```json
{
  "success": true,
  "data": "data",
  "message": "message"
}
```

## Domain Types

### Counting Line Create External Counting Lines Response

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