POST Products/GetPricelists

Verkrijg prijslijsten

Request Information

URI Parameters

None.

Body Parameters

PricelistFilter
NameDescriptionTypeAdditional information
PricelistId

Prijslijstnummer

integer

None.

DebtorId

Debiteurnummer

integer

None.

LoadContractPrices

Laad de contractprijzen van de prijslijst in.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PricelistId": 1,
  "DebtorId": 1,
  "LoadContractPrices": true
}

application/xml, text/xml

Sample:
<PricelistFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Filters">
  <DebtorId>1</DebtorId>
  <LoadContractPrices>true</LoadContractPrices>
  <PricelistId>1</PricelistId>
</PricelistFilter>

Response Information

Resource Description

Logic4ResponseListOfProductPricelist
NameDescriptionTypeAdditional information
Records

Collection of ProductPricelist

None.

RecordsCounter

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Records": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "DebtorIds": [
        1,
        2
      ],
      "FixedDiscount": 1.0,
      "ContractPrices": [
        {
          "PriceEx": 1.0,
          "Qty": 2,
          "FromDate": "2020-07-02T23:03:46.9720817+02:00",
          "ToDate": "2020-07-02T23:03:46.9720817+02:00",
          "ProductId": 3
        },
        {
          "PriceEx": 1.0,
          "Qty": 2,
          "FromDate": "2020-07-02T23:03:46.9720817+02:00",
          "ToDate": "2020-07-02T23:03:46.9720817+02:00",
          "ProductId": 3
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "DebtorIds": [
        1,
        2
      ],
      "FixedDiscount": 1.0,
      "ContractPrices": [
        {
          "PriceEx": 1.0,
          "Qty": 2,
          "FromDate": "2020-07-02T23:03:46.9720817+02:00",
          "ToDate": "2020-07-02T23:03:46.9720817+02:00",
          "ProductId": 3
        },
        {
          "PriceEx": 1.0,
          "Qty": 2,
          "FromDate": "2020-07-02T23:03:46.9720817+02:00",
          "ToDate": "2020-07-02T23:03:46.9720817+02:00",
          "ProductId": 3
        }
      ]
    }
  ],
  "RecordsCounter": 2,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseListOfProductPricelistLnN1pw8Y 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:ProductPricelist>
      <d2p1:ContractPrices>
        <d2p1:ProductPricelistContractPrice>
          <d2p1:FromDate>2020-07-02T23:03:46.9720817+02:00</d2p1:FromDate>
          <d2p1:PriceEx>1</d2p1:PriceEx>
          <d2p1:ProductId>3</d2p1:ProductId>
          <d2p1:Qty>2</d2p1:Qty>
          <d2p1:ToDate>2020-07-02T23:03:46.9720817+02:00</d2p1:ToDate>
        </d2p1:ProductPricelistContractPrice>
        <d2p1:ProductPricelistContractPrice>
          <d2p1:FromDate>2020-07-02T23:03:46.9720817+02:00</d2p1:FromDate>
          <d2p1:PriceEx>1</d2p1:PriceEx>
          <d2p1:ProductId>3</d2p1:ProductId>
          <d2p1:Qty>2</d2p1:Qty>
          <d2p1:ToDate>2020-07-02T23:03:46.9720817+02:00</d2p1:ToDate>
        </d2p1:ProductPricelistContractPrice>
      </d2p1:ContractPrices>
      <d2p1:DebtorIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d2p1:DebtorIds>
      <d2p1:FixedDiscount>1</d2p1:FixedDiscount>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:ProductPricelist>
    <d2p1:ProductPricelist>
      <d2p1:ContractPrices>
        <d2p1:ProductPricelistContractPrice>
          <d2p1:FromDate>2020-07-02T23:03:46.9720817+02:00</d2p1:FromDate>
          <d2p1:PriceEx>1</d2p1:PriceEx>
          <d2p1:ProductId>3</d2p1:ProductId>
          <d2p1:Qty>2</d2p1:Qty>
          <d2p1:ToDate>2020-07-02T23:03:46.9720817+02:00</d2p1:ToDate>
        </d2p1:ProductPricelistContractPrice>
        <d2p1:ProductPricelistContractPrice>
          <d2p1:FromDate>2020-07-02T23:03:46.9720817+02:00</d2p1:FromDate>
          <d2p1:PriceEx>1</d2p1:PriceEx>
          <d2p1:ProductId>3</d2p1:ProductId>
          <d2p1:Qty>2</d2p1:Qty>
          <d2p1:ToDate>2020-07-02T23:03:46.9720817+02:00</d2p1:ToDate>
        </d2p1:ProductPricelistContractPrice>
      </d2p1:ContractPrices>
      <d2p1:DebtorIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
      </d2p1:DebtorIds>
      <d2p1:FixedDiscount>1</d2p1:FixedDiscount>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:ProductPricelist>
  </Records>
</Logic4ResponseListOfProductPricelistLnN1pw8Y>