GET v1/vendors/{id}/locations
Gets list of locations for the vendor specified by vendor id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Provide vendor id to get locations for |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
SearchResultOfVendorLocationName | Description | Type | Additional information |
---|---|---|---|
TotalCount | integer |
None. |
|
Data | Collection of VendorLocation |
None. |
Response Formats
application/json, text/json
Sample:
{ "totalCount": 1, "data": [ { "id": 1, "name": "sample string 2", "isPrimary": true, "address": { "address1": "sample string 1", "address2": "sample string 2", "address3": "sample string 3", "city": "sample string 4", "state": "sample string 5", "postalCode": "sample string 6", "country": "sample string 7", "latitude": 8.0, "longitude": 9.0, "fullAddress": "sample string 10" } }, { "id": 1, "name": "sample string 2", "isPrimary": true, "address": { "address1": "sample string 1", "address2": "sample string 2", "address3": "sample string 3", "city": "sample string 4", "state": "sample string 5", "postalCode": "sample string 6", "country": "sample string 7", "latitude": 8.0, "longitude": 9.0, "fullAddress": "sample string 10" } } ] }
application/xml, text/xml
Sample:
<SearchResultOfVendorLocationJSBqjE6T 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:VendorLocation> <d2p1:Address xmlns:d4p1="http://schemas.datacontract.org/2004/07/BAPI.Models.Core"> <d4p1:Address1>sample string 1</d4p1:Address1> <d4p1:Address2>sample string 2</d4p1:Address2> <d4p1:Address3>sample string 3</d4p1:Address3> <d4p1:City>sample string 4</d4p1:City> <d4p1:Country>sample string 7</d4p1:Country> <d4p1:FullAddress>sample string 10</d4p1:FullAddress> <d4p1:Latitude>8</d4p1:Latitude> <d4p1:Longitude>9</d4p1:Longitude> <d4p1:PostalCode>sample string 6</d4p1:PostalCode> <d4p1:State>sample string 5</d4p1:State> </d2p1:Address> <d2p1:Id>1</d2p1:Id> <d2p1:IsPrimary>true</d2p1:IsPrimary> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:VendorLocation> <d2p1:VendorLocation> <d2p1:Address xmlns:d4p1="http://schemas.datacontract.org/2004/07/BAPI.Models.Core"> <d4p1:Address1>sample string 1</d4p1:Address1> <d4p1:Address2>sample string 2</d4p1:Address2> <d4p1:Address3>sample string 3</d4p1:Address3> <d4p1:City>sample string 4</d4p1:City> <d4p1:Country>sample string 7</d4p1:Country> <d4p1:FullAddress>sample string 10</d4p1:FullAddress> <d4p1:Latitude>8</d4p1:Latitude> <d4p1:Longitude>9</d4p1:Longitude> <d4p1:PostalCode>sample string 6</d4p1:PostalCode> <d4p1:State>sample string 5</d4p1:State> </d2p1:Address> <d2p1:Id>1</d2p1:Id> <d2p1:IsPrimary>true</d2p1:IsPrimary> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:VendorLocation> </Data> <TotalCount>1</TotalCount> </SearchResultOfVendorLocationJSBqjE6T>