Get merchant warehouses

GET REST API request that returns list of all merchant outbound addresses (merchant warehouses).

Request

Request:
HTTP MethodGET
URLStagehttps://api.svc.stage.ananastest.com/order/api/v1/merchant-integration/merchant-warehouses
Productionhttps://api.svc.ananas.rs/order/api/v1/merchant-integration/merchant-warehouses
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}

Response

Response Body:

Fields nameTypeDescription
contentList <MerchantAddress>List of merchant addresse

Content:

Fields nameTypeDescription
idLongUnique merchant address identifier
warehouseNameStringWarehouse name
defaultAddresbooleanIndicate that address is a default outbound address (Only one element of the collection can have this value set to true)

Example of response:

Click to copy
Success!
   {
            "content":
            [
                {
                    "id":1,
                    "warehouseName":"Downtown warehouse",
                    "defaultAddress ":false
                },
                {
                    "id":2,
                    "warehouseName":"Airport warehouse",
                    "defaultAddress ":false
                },
                {
                    "id":3,
                    "warehouseName":"Central warehouse",
                    "defaultAddress ":true
                }
            ]
        }
Copyright © Ananas 2023. All right reserved.