Skip to content
Get started

Create External Counting Lines

CountingLineCreateExternalCountingLinesResponse CountingLines.CreateExternalCountingLines(CountingLineCreateExternalCountingLinesParams?parameters, CancellationTokencancellationToken = default)
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.

ParametersExpand Collapse
CountingLineCreateExternalCountingLinesParams parameters
DateTimeOffset countingDateTime

The date and time the counting was performed.

formatdate-time
IReadOnlyList<Line>? lines

The list of counted product lines.

Float CountedQuantity

The counted quantity for this product.

formatfloat
string? ProductBarcode

The product barcode that was scanned.

string? storeNo

The store number.

ReturnsExpand Collapse
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.

Create External Counting Lines

CountingLineCreateExternalCountingLinesParams parameters = new();

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

Console.WriteLine(response);
{
  "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."
}