Fetch customer locales

Changed on

Use /locales endpoint to fetch customer's locales data, which you will need to register customer or to fetch offer details properly. This endpoint returns locales based on request IP, or based on given customerIP.

get/locales

Request

  • Base URL
    https://mediastoreapi-sandbox.cleeng.com
  • URL
    https://mediastoreapi-sandbox.cleeng.com/locales
  • Auth
    none required

Query parameters

customerIPstring

IP address of customer current location. Required conditionally when request comes from server

Response

200

Example response

{
  "responseData": {
    "country": "PL",
    "currency": "EUR",
    "locale": "pl_PL",
    "ipAddress": "213.892.123.455"
  }
}

Changes