PPC
How to get all available locations

Function getAvailableLocations

In order to get all the available locations for a paticular product we need to use Product, Pricing and Configuration service(PPC). Our API allows easy access by a GET request to our available-locations endpoint.

HTTP VERB: GET

URL: https://api.psrestful.com/v1.0.0/suppliers/{SUPPLIER_CODE}/available-locations/{PRODUCT_ID}/ (opens in a new tab)

Example Response:

This is the response from calling with:
SUPPLIER_CODE = HIT
PRODUCT_ID = 7746

COMPLETE URL:

https://api.psrestful.com/v1.0.0/suppliers/HIT/available-locations/7746/
{
    "AvailableLocationArray": {
        "AvailableLocation": [
            {
                "locationId": 8,
                "locationName": "FRONT"
            },
            {
                "locationId": 9,
                "locationName": "BACK"
            }
        ]
    },
    "ErrorMessage": null
}