## Submits external counting lines from an external counting integration.

`CountingLineCreateExternalCountingLinesResponse CountingLines.CreateExternalCountingLines(CountingLineCreateExternalCountingLinesParamsparameters, CancellationTokencancellationToken = default)`

**post** `/api/v2/public/externalcountinglines`

Submits external counting lines from an external counting integration.

### Parameters

- `CountingLineCreateExternalCountingLinesParams parameters`

  - `required DateTimeOffset countingDateTime`

    The date and time the counting was performed.

  - `IReadOnlyList<Line>? lines`

    The list of counted product lines.

    - `required Float CountedQuantity`

      The counted quantity for this product.

    - `string? ProductBarcode`

      The product barcode that was scanned.

  - `string? storeNo`

    The store number.

### Returns

- `class CountingLineCreateExternalCountingLinesResponse:`

  Standard success response returned by mutation endpoints.

  - `required Boolean Success`

    Indicates whether the operation completed successfully.

  - `string? Data`

    Optional data payload returned by the operation.

  - `string? Message`

    Human-readable message describing the result.

### Example

```csharp
CountingLineCreateExternalCountingLinesParams parameters = new()
{
    CountingDateTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z")
};

var response = await client.CountingLines.CreateExternalCountingLines(parameters);

Console.WriteLine(response);
```

#### Response

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