GET v1/customers/{id}/price-list

Gets list of price list items associated with the customer specified by customer id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Provide customer id to get price list for

integer

Required

Body Parameters

None.

Response Information

Resource Description

SearchResultOfCustomerPriceList
NameDescriptionTypeAdditional information
TotalCount

integer

None.

Data

Collection of CustomerPriceList

None.

Response Formats

application/json, text/json

Sample:
{
  "totalCount": 1,
  "data": [
    {
      "id": 1,
      "name": "sample string 2",
      "itemType": {
        "id": 1,
        "name": "sample string 2"
      },
      "price": 3.0
    },
    {
      "id": 1,
      "name": "sample string 2",
      "itemType": {
        "id": 1,
        "name": "sample string 2"
      },
      "price": 3.0
    }
  ]
}

application/xml, text/xml

Sample:
<SearchResultOfCustomerPriceListJSBqjE6T xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BAPI.Models.CRM">
    <d2p1:CustomerPriceList>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ItemType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models">
        <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField>
        <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField>
      </d2p1:ItemType>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>3</d2p1:Price>
    </d2p1:CustomerPriceList>
    <d2p1:CustomerPriceList>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ItemType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models">
        <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField>
        <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField>
      </d2p1:ItemType>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Price>3</d2p1:Price>
    </d2p1:CustomerPriceList>
  </Data>
  <TotalCount>1</TotalCount>
</SearchResultOfCustomerPriceListJSBqjE6T>