Locales API

Manage postal code and locality data

Base URL

https://{tenant}.logzi.com/api/locales/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The locales API manages the postal code and locality name database used to fill in address data for partners and delivery destinations.

GET /api/locales/get

Retrieve a single locale record.

Query parameters

ParameterTypeRequiredDescription
idintRecord identifier
zipstringPostal code for filtering
country_idintCountry identifier for filtering

Example request

GET /api/locales/get?zip=1011&country_id=1
X-API-KEY: {your_api_key}
GET /api/locales/list

Retrieve the list of locale records.

No parameters required.

Example request

GET /api/locales/list
X-API-KEY: {your_api_key}
POST /api/locales/save

Create or update a locale record.

POST fields — data object

The data object should contain the postal code record's details (postal code, locality name, country identifier).

Example request

POST /api/locales/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "id": 1 } }
POST /api/locales/delete

Delete a locale record.

POST fields — data object

The data object should contain the details of the record to delete.

Example request

POST /api/locales/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "id": 1 } }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!