The locations can be accessed via the url GET http://<server name>:<odata port>/<service tier name>/api/BEterna/Export/v2.0/companies(<company system id>)/channels('<webshop channel code>')?$expand=locations
. The filter on the webshop channel code is mandatory. The response is a JSON with all locations connected to the given webshop channel.
{
"@odata.context": "http://<server name>:<odata port>/<service tier name>/api/BEterna/Export/v2.0/$metadata#companies(<company system id>)/channels/$entity",
"@odata.etag": "W/\"JzIwOzExNDAwNzE0ODE4MjY0OTI4MzAyMTswMDsn\"",
"code": "B2B",
"locations": [
{
"@odata.etag": "W/\"JzE5Ozk2ODEzMDIxMzI2MzMzNDUyNDgxOzAwOyc=\"",
"code": "MAIN",
"name": "Main Warehouse",
"name2": "",
"address": "UK Campus Bldg 5",
"address2": "Thames Valley Park",
"postCode": "RG6 1WG",
"city": "Reading",
"county": "",
"countryRegion": "GB",
"phoneNo": "+44-(0)10 5214 4987",
"phoneNo2": "",
"telexNo": "",
"faxNo": "+44-(0)10 5214 0000",
"eMail": "",
"homePage": ""
},
{
"@odata.etag": "W/\"JzE5OzI4OTgwMzM1MzMyNjE3NTMxNDYxOzAwOyc=\"",
"code": "WEST",
"name": "West Warehouse",
"name2": "",
"address": "Celtic Way",
"address2": "",
"postCode": "NP10 8BE",
"city": "Newport",
"county": "",
"countryRegion": "GB",
"phoneNo": "+44-(0)20 8207 4533",
"phoneNo2": "",
"telexNo": "",
"faxNo": "+44-(0)20 8207 5000",
"eMail": "",
"homePage": ""
}
]
}
The fields are documented in the following tables.
table | field | data type | content |
---|---|---|---|
BET ECOM WS Channel | code |
Code[20] | the code of the webshop channel |
Location | code |
Code[20] | the code of the location |
Location | name |
Text[100] | the name of the location |
Location | name2 |
Text[50] | the name2 of the location |
Location | address |
Text[100] | the address of the location |
Location | address2 |
Text[50] | the address2 of the location |
Location | postCode |
Code[20] | the postcode of the location |
Location | city |
Text[30] | the city of the location |
Location | county |
Text[30] | the county of the location |
Location | countryRegion |
Code[10] | the country/region code of the location |
Location | phoneNo |
Text[30] | the phone no. of the location |
Location | phoneNo2 |
Text[30] | the phone no. 2 of the location |
Location | telexNo |
Text[30] | the telex no. of the location |
Location | faxNo |
Text[30] | the fax no. of the location |
Location | eMail |
Text[80] | the e-mail of the location |
Location | homePage |
Text[90] | the home page of the location |