LianaCommerce REST API

Countries

Serverhttps://shop.example.com/api/v1

Read the shop's delivery countries. Use a country's id as an account's country_id.


List countries

GET
https://shop.example.com/api/v1
/countries

Returns the shop's delivery countries, highest ID first. The list also contains the countries the shop has hidden from customers; the response doesn't tell them apart. Use a country's id as an account's country_id.

List countries › query Parameters

limit
​integer · min: 1 · max: 2147483647

The number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.

Default: 20
offset
​integer · min: 0 · max: 2147483647

The number of items to skip. Must be a decimal integer; any other value returns 400.

Default: 0

List countries › Responses

The countries.

Links to the first, previous and next page. Each link carries the request's `limit`, `offset` and filters. At either end of the list the object is still there, with `href` set to `null`.
href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​PageLink
​PageLink
​PageLink
​object[]
​Meta

Get a country

GET
https://shop.example.com/api/v1
/countries/{country-id}

Get a country › path Parameters

country-id
​integer · int64 · required

The country's ID. A value that is not a number returns 400; an unknown country returns 404.

Get a country › Responses

The country.

href
​string

The URL of the request.

Example: https://shop.example.com/api/v1/products
​object[]

One country.

​Meta