POST SalesBySalesRepresentative/Get

Gets a List of Sales by Sales Representatives.

Request Information

This method supports OData queries.

URI Parameters

None.

Body Parameters

The Sales by Sales Representative Request Model.

Sales By Sales Representative Request Model
NameTypeAdditional informationDescription
FromSalesRepresentative string

None.

Gets or sets From Sales Representative.

ToSalesRepresentative string

None.

Gets or sets To Sales Representative.

FromDate date

None.

Gets or sets From Date.

ToDate date

None.

Gets or sets To Date.

IncludeActive bool

None.

Gets or sets a value indicating whether or not to include active Sales Representatives.

IncludeInactive bool

None.

Gets or sets a value indicating whether or not to include inactive Sales Representatives.

IncludeCreditNotes bool

None.

Gets or sets a value indicating whether or not to include Credit Notes.

IncludeItems bool

None.

Gets or sets a value indicating whether or not to include Items.

IncludeTime bool

None.

Gets or sets a value indicating whether or not to include Time.

IncludeAccounts bool

None.

Gets or sets a value indicating whether or not to include Accounts.

UseLastCost bool

None.

Gets or sets a value indicating whether or not to use Last Cost.

Request Formats

application/json, text/json

Sample:
{
  "FromSalesRepresentative": "sample string 1",
  "ToSalesRepresentative": "sample string 2",
  "FromDate": "2024-11-15",
  "ToDate": "2024-11-15",
  "IncludeActive": true,
  "IncludeInactive": true,
  "IncludeCreditNotes": true,
  "IncludeItems": true,
  "IncludeTime": true,
  "IncludeAccounts": true,
  "UseLastCost": true
}

Response Information

Resource Description

This collection is wrapped in a paging response object.

Paging response of Sales By Sales Representative
NameTypeAdditional informationDescription
TotalResults integer

None.

ReturnedResults integer

None.

Results Collection of Sales By Sales Representative

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalResults": 1,
  "ReturnedResults": 2,
  "Results": [
    {
      "DocumentHeaderId": 1,
      "DocumentTypeId": 2,
      "SalesRepresentativeId": 3,
      "DocumentNumber": "sample string 4",
      "Date": "2024-11-15",
      "UnitPriceExclusive": 6.0,
      "Quantity": 1.0,
      "TotalCost": 7.0,
      "Total": 8.0,
      "Name": "sample string 9",
      "CustomerName": "sample string 10",
      "GPAmount": 1.0,
      "GPPercentage": 0.125,
      "TotalGroupAverage": 13.0,
      "TotalReportAverage": 14.0
    },
    {
      "DocumentHeaderId": 1,
      "DocumentTypeId": 2,
      "SalesRepresentativeId": 3,
      "DocumentNumber": "sample string 4",
      "Date": "2024-11-15",
      "UnitPriceExclusive": 6.0,
      "Quantity": 1.0,
      "TotalCost": 7.0,
      "Total": 8.0,
      "Name": "sample string 9",
      "CustomerName": "sample string 10",
      "GPAmount": 1.0,
      "GPPercentage": 0.125,
      "TotalGroupAverage": 13.0,
      "TotalReportAverage": 14.0
    }
  ]
}