GET api/RouteData/GetCustomerSales?cCustomerId={cCustomerId}&cBranchNo={cBranchNo}&cDriverId={cDriverId}&Code={Code}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cCustomerId

integer

Required

cBranchNo

integer

Required

cDriverId

integer

Required

Code

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Sale
NameDescriptionTypeAdditional information
Id

integer

None.

TypeId

integer

None.

Type

string

None.

DocNo

integer

None.

DocDate

date

None.

DocType

DocType

None.

PaymentType

PaymentType

None.

PaymentSum

decimal number

None.

PaymentDate

date

None.

TourNumber

integer

None.

NumberOfTotes

integer

None.

NumberOfPacks

integer

None.

NumberOfBags

integer

None.

HasNarcotics

boolean

None.

CustomerPayments

Collection of CustomerPayment

None.

SaleItems

Collection of SaleItem

None.

TotalDiscounts

decimal number

None.

TotalDiscountsVAT

decimal number

None.

VatItems

Collection of VATItem

None.

TaxGroup

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "TypeId": 2,
    "Type": "sample string 3",
    "DocNo": 4,
    "DocDate": "2025-12-06T06:33:23.3589033+02:00",
    "DocType": null,
    "PaymentType": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "PaymentSum": 6.0,
    "PaymentDate": "2025-12-06T06:33:23.3589033+02:00",
    "TourNumber": 8,
    "NumberOfTotes": 9,
    "NumberOfPacks": 10,
    "NumberOfBags": 11,
    "HasNarcotics": true,
    "CustomerPayments": [
      {
        "Id": 1,
        "PaymentType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "PaymentDate": "2025-12-06T06:33:23.3589033+02:00",
        "PaymentSum": 3.0,
        "IsReceiptPrinted": true
      },
      {
        "Id": 1,
        "PaymentType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "PaymentDate": "2025-12-06T06:33:23.3589033+02:00",
        "PaymentSum": 3.0,
        "IsReceiptPrinted": true
      }
    ],
    "SaleItems": [
      {
        "ArticlePZN": 1,
        "ArticleLongName": "sample string 2",
        "DelQty": 3,
        "BonusQty": 1,
        "InvoicedPriceExclVAT": 4.0,
        "Measure": "sample string 5"
      },
      {
        "ArticlePZN": 1,
        "ArticleLongName": "sample string 2",
        "DelQty": 3,
        "BonusQty": 1,
        "InvoicedPriceExclVAT": 4.0,
        "Measure": "sample string 5"
      }
    ],
    "TotalDiscounts": 1.0,
    "TotalDiscountsVAT": 1.0,
    "VatItems": [
      {
        "NetAmountNoVAT": 1.0,
        "VATAmount": 2.0,
        "PaymentSum": 3.0,
        "VATPercent": 4.0,
        "TaxGroup": "sample string 5"
      },
      {
        "NetAmountNoVAT": 1.0,
        "VATAmount": 2.0,
        "PaymentSum": 3.0,
        "VATPercent": 4.0,
        "TaxGroup": "sample string 5"
      }
    ],
    "TaxGroup": "sample string 13"
  },
  {
    "Id": 1,
    "TypeId": 2,
    "Type": "sample string 3",
    "DocNo": 4,
    "DocDate": "2025-12-06T06:33:23.3589033+02:00",
    "DocType": null,
    "PaymentType": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "PaymentSum": 6.0,
    "PaymentDate": "2025-12-06T06:33:23.3589033+02:00",
    "TourNumber": 8,
    "NumberOfTotes": 9,
    "NumberOfPacks": 10,
    "NumberOfBags": 11,
    "HasNarcotics": true,
    "CustomerPayments": [
      {
        "Id": 1,
        "PaymentType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "PaymentDate": "2025-12-06T06:33:23.3589033+02:00",
        "PaymentSum": 3.0,
        "IsReceiptPrinted": true
      },
      {
        "Id": 1,
        "PaymentType": {
          "Id": 1,
          "Name": "sample string 2"
        },
        "PaymentDate": "2025-12-06T06:33:23.3589033+02:00",
        "PaymentSum": 3.0,
        "IsReceiptPrinted": true
      }
    ],
    "SaleItems": [
      {
        "ArticlePZN": 1,
        "ArticleLongName": "sample string 2",
        "DelQty": 3,
        "BonusQty": 1,
        "InvoicedPriceExclVAT": 4.0,
        "Measure": "sample string 5"
      },
      {
        "ArticlePZN": 1,
        "ArticleLongName": "sample string 2",
        "DelQty": 3,
        "BonusQty": 1,
        "InvoicedPriceExclVAT": 4.0,
        "Measure": "sample string 5"
      }
    ],
    "TotalDiscounts": 1.0,
    "TotalDiscountsVAT": 1.0,
    "VatItems": [
      {
        "NetAmountNoVAT": 1.0,
        "VATAmount": 2.0,
        "PaymentSum": 3.0,
        "VATPercent": 4.0,
        "TaxGroup": "sample string 5"
      },
      {
        "NetAmountNoVAT": 1.0,
        "VATAmount": 2.0,
        "PaymentSum": 3.0,
        "VATPercent": 4.0,
        "TaxGroup": "sample string 5"
      }
    ],
    "TaxGroup": "sample string 13"
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.