Get merchant warehouses
GET REST API request that returns list of all merchant outbound addresses (merchant warehouses).
Request
Request:HTTP Method | GET | |||||
URL | Stage | https://api.svc.stage.ananastest.com/order/api/v1/merchant-integration/merchant-warehouses | ||||
Production | https://api.svc.ananas.rs/order/api/v1/merchant-integration/merchant-warehouses | |||||
HTTP Headers |
|
Response
Response Body:
Fields name | Type | Description |
content | List <MerchantAddress> | List of merchant addresse |
Content:
Fields name | Type | Description |
id | Long | Unique merchant address identifier |
warehouseName | String | Warehouse name |
defaultAddres | boolean | Indicate that address is a default outbound address (Only one element of the collection can have this value set to true) |
Example of response:
{
"content":
[
{
"id":1,
"warehouseName":"Downtown warehouse",
"defaultAddress ":false
},
{
"id":2,
"warehouseName":"Airport warehouse",
"defaultAddress ":false
},
{
"id":3,
"warehouseName":"Central warehouse",
"defaultAddress ":true
}
]
}