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

Employees

Identity and employee type of the people on your floor. Read-only.

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

The Employee object

  • idinteger
  • codestringnullable
  • employee_typestringnullable

    The employee type's name, where one is assigned.

  • employee_type_idintegernullable
  • first_namestringnullable
  • is_activeboolean
  • last_namestringnullable

Operations

List employees

get/employeesmanufacturing:read

Identity and employee type only.

Query parameters

  • searchstringnullable

    Free-text match on name or code.

  • first_namestringnullable

    Partial match.

  • last_namestringnullable

    Partial match.

  • is_activebooleannullable
  • employee_type_idintegernullable
    • > 0
  • sortstringnullable

    Comma-separated field:direction pairs, e.g. id:desc. Sortable: code, first_name, id, last_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 Employee objects in data, with pagination.
Errors
400 401 403 429 500 503
GET /employees
curl "https://public-api.nutrasoft.ca/v1/employees?limit=50" \
  -H "Authorization: Bearer $NUTRASOFT_API_KEY"
Response200
{
  "data": [
    {
      "id": 123,
      "code": "SAMPLE-01",
      "employee_type": "string",
      "employee_type_id": 123,
      "first_name": "Alex",
      "is_active": true,
      "last_name": "Martin"
    }
  ],
  "pagination": {
    "limit": 50,
    "offset": 0,
    "total": 1,
    "has_more": false
  },
  "order": "id:asc"
}

Retrieve an employee

get/employees/{employee_id}manufacturing:read

Path parameters

  • employee_idintegerrequired

    The employee's id.

    • > 0
Returns
200 One Employee object in data.
Errors
400 401 403 404 429 500 503
GET /employees/{employee_id}
curl "https://public-api.nutrasoft.ca/v1/employees/123" \
  -H "Authorization: Bearer $NUTRASOFT_API_KEY"
Response200
{
  "data": {
    "id": 123,
    "code": "SAMPLE-01",
    "employee_type": "string",
    "employee_type_id": 123,
    "first_name": "Alex",
    "is_active": true,
    "last_name": "Martin"
  }
}