POST Management/GetProductCollectionSalesInformation

Verkrijg van één of meerdere artikelen verkoop gegevens zoals verkoopaantallen, over een bepaalde periode (dag/week/maand/kwartaal/jaar) - (UserBearer required).

Request Information

URI Parameters

None.

Body Parameters

ProductSalesInformationFilter
NameDescriptionTypeAdditional information
TimeFrame

Tijdsperiode

TimeFrame

Required

HistoryPoints

Geschiedenispunten

integer

None.

ProductCodes

Collectie van product codes

Collection of string

Required

IncludingCurrentPeriod

Inclusief huidige periode

boolean

None.

ExcludeDebtorIds

Sluit debiteuren uit voor bijv. top 10 debiteuren

Collection of integer

None.

WebSiteDomainsIds

Specifieke Websites

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TimeFrame": "Day",
  "HistoryPoints": 1,
  "ProductCodes": [
    "sample string 1",
    "sample string 2"
  ],
  "IncludingCurrentPeriod": true,
  "ExcludeDebtorIds": [
    1,
    2
  ],
  "WebSiteDomainsIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<ProductSalesInformationFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Filters">
  <ExcludeDebtorIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ExcludeDebtorIds>
  <HistoryPoints>1</HistoryPoints>
  <IncludingCurrentPeriod>true</IncludingCurrentPeriod>
  <ProductCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ProductCodes>
  <TimeFrame>Day</TimeFrame>
  <WebSiteDomainsIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </WebSiteDomainsIds>
</ProductSalesInformationFilter>

Response Information

Resource Description

Logic4ResponseListOfProductSalesInformation
NameDescriptionTypeAdditional information
Records

Collection of ProductSalesInformation

None.

RecordsCounter

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Records": [
    {
      "ProductCode": "sample string 1",
      "ProductDescription": "sample string 2",
      "Value": 3.0,
      "DateStart": "2020-07-07T01:11:44.9536319+02:00",
      "DateEnd": "2020-07-07T01:11:44.9536319+02:00",
      "PeriodDescription": "sample string 6"
    },
    {
      "ProductCode": "sample string 1",
      "ProductDescription": "sample string 2",
      "Value": 3.0,
      "DateStart": "2020-07-07T01:11:44.9536319+02:00",
      "DateEnd": "2020-07-07T01:11:44.9536319+02:00",
      "PeriodDescription": "sample string 6"
    }
  ],
  "RecordsCounter": 2,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseListOfProductSalesInformationLnN1pw8Y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Records xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
    <d2p1:ProductSalesInformation>
      <d2p1:DateEnd>2020-07-07T01:11:44.9536319+02:00</d2p1:DateEnd>
      <d2p1:DateStart>2020-07-07T01:11:44.9536319+02:00</d2p1:DateStart>
      <d2p1:PeriodDescription>sample string 6</d2p1:PeriodDescription>
      <d2p1:Value>3</d2p1:Value>
      <d2p1:ProductCode>sample string 1</d2p1:ProductCode>
      <d2p1:ProductDescription>sample string 2</d2p1:ProductDescription>
    </d2p1:ProductSalesInformation>
    <d2p1:ProductSalesInformation>
      <d2p1:DateEnd>2020-07-07T01:11:44.9536319+02:00</d2p1:DateEnd>
      <d2p1:DateStart>2020-07-07T01:11:44.9536319+02:00</d2p1:DateStart>
      <d2p1:PeriodDescription>sample string 6</d2p1:PeriodDescription>
      <d2p1:Value>3</d2p1:Value>
      <d2p1:ProductCode>sample string 1</d2p1:ProductCode>
      <d2p1:ProductDescription>sample string 2</d2p1:ProductDescription>
    </d2p1:ProductSalesInformation>
  </Records>
</Logic4ResponseListOfProductSalesInformationLnN1pw8Y>