GET v1/vendors/{id}/cost-list

Gets list of cost list items associated with the vendor specified by vendor id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Provide vendor id to get cost list for

integer

Required

Body Parameters

None.

Response Information

Resource Description

SearchResultOfVendorCostList
NameDescriptionTypeAdditional information
TotalCount

integer

None.

Data

Collection of VendorCostList

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<SearchResultOfVendorCostListJSBqjE6T 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:VendorCostList>
      <d2p1:Cost>3</d2p1:Cost>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ItemType xmlns:d4p1="http://schemas.datacontract.org/2004/07/BBM.BLL.Core">
        <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:VendorCostList>
    <d2p1:VendorCostList>
      <d2p1:Cost>3</d2p1:Cost>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ItemType xmlns:d4p1="http://schemas.datacontract.org/2004/07/BBM.BLL.Core">
        <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:VendorCostList>
  </Data>
  <TotalCount>1</TotalCount>
</SearchResultOfVendorCostListJSBqjE6T>