LianaCommerce REST API
integer · min: 1 · max: 2147483647integer · min: 0 · max: 2147483647
integer · int64 · requiredstring
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.
query Parameters
limitThe 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
offsetThe 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`.
Get a country
GET
https://shop.example.com/api/v1
/countries/{country-id}
path Parameters
country-idThe country's ID. A value that is not a number returns 400; an unknown country returns 404.
Get a country › Responses
The country.
hrefThe URL of the request.
Example: https://shop.example.com/api/v1/products
object[]
One country.
Meta