The ISO country list, shared by every account. A material lists its banned countries from it.
idintegerStable across every NutraSoft account.
codestringISO 3166-1 alpha-2, as recorded. Not unique: two rows share MF, so match on id.
namestringEnglish country name. May contain non-ASCII.
/countriescatalog:readThe ISO country list, shared by every account.
searchstringnullableFree-text match on name or code. Not combinable with the named filters.
namestringnullablePartial match on the name.
codestringnullablePartial match on the code.
sortstringnullableComma-separated field:direction pairs, e.g. id:desc. Sortable: code, id, name. id is always added last, so paging is stable.
limitintegerRows to return. Maximum 200.
offsetintegerRows to skip. Maximum 10000: to read further, narrow the filters or page with updated_since.
data, with pagination.curl "https://public-api.nutrasoft.ca/v1/countries?limit=50" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/countries/{country_id}catalog:readcountry_idintegerrequiredThe country's id.
data.curl "https://public-api.nutrasoft.ca/v1/countries/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"code": "SAMPLE-01",
"name": "Sample name"
}
}