NutraSoft food manufacturing ERP software
Esc
  • GuideGetting startedThree steps to your first call and your first order, then the two shapes every response takes.
  • GuideAuthentication and keysBearer keys, test and live environments, rotation without an outage, and what each scope grants.
  • GuideTest modeA second NutraSoft account of your own, seeded with realistic data, that you can safely break.
  • PageErrorsEvery error code the API returns, what it means, what to do about it and whether to retry.
  • PageConventionsThe rules every operation follows: money, time, paging, sorting, nulls, PATCH and identifiers.
Menu

Countries

The ISO country list, shared by every account. A material lists its banned countries from it.

catalog:readhttps://public-api.nutrasoft.ca/v1

The Country object

  • idinteger

    Stable across every NutraSoft account.

  • codestring

    ISO 3166-1 alpha-2, as recorded. Not unique: two rows share MF, so match on id.

  • namestring

    English country name. May contain non-ASCII.

Operations

List countries

get/countriescatalog:read

The ISO country list, shared by every account.

Query parameters

  • searchstringnullable

    Free-text match on name or code. Not combinable with the named filters.

  • namestringnullable

    Partial match on the name.

  • codestringnullable

    Partial match on the code.

  • sortstringnullable

    Comma-separated field:direction pairs, e.g. id:desc. Sortable: code, id, name. id is always added last, so paging is stable.

  • limitinteger

    Rows to return. Maximum 200.

    • >= 1
    • <= 200
    • default 50
  • offsetinteger

    Rows to skip. Maximum 10000: to read further, narrow the filters or page with updated_since.

    • >= 0
    • <= 10000
    • default 0
Returns
200 A page of Country objects in data, with pagination.
Errors
400 401 403 429 500 503
GET /countries
curl "https://public-api.nutrasoft.ca/v1/countries?limit=50" \
  -H "Authorization: Bearer $NUTRASOFT_API_KEY"
Response200
{
  "data": [
    {
      "id": 123,
      "code": "SAMPLE-01",
      "name": "Sample name"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 1,
    "has_more": false
  },
  "order": "id:asc"
}

Retrieve a country

get/countries/{country_id}catalog:read

Path parameters

  • country_idintegerrequired

    The country's id.

    • > 0
Returns
200 One Country object in data.
Errors
400 401 403 404 429 500 503
GET /countries/{country_id}
curl "https://public-api.nutrasoft.ca/v1/countries/123" \
  -H "Authorization: Bearer $NUTRASOFT_API_KEY"
Response200
{
  "data": {
    "id": 123,
    "code": "SAMPLE-01",
    "name": "Sample name"
  }
}