The people customers are assigned to.
idintegeractivebooleancodestringnullableemailstringnullablefirst_namestringnullablelast_namestringnullable/salespersonssales:readsearchstringnullableFree-text match on code, names or email.
first_namestringnullablePartial match.
last_namestringnullablePartial match.
emailstringnullablePartial match.
activebooleannullablesortstringnullableComma-separated field:direction pairs, e.g. id:desc. Sortable: code, first_name, id, last_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/salespersons?limit=50" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": [
{
"id": 123,
"active": true,
"code": "SAMPLE-01",
"email": "orders@example.com",
"first_name": "Alex",
"last_name": "Martin"
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1,
"has_more": false
},
"order": "id:asc"
}/salespersons/{salesperson_id}sales:readsalesperson_idintegerrequiredThe salesperson's id.
data.curl "https://public-api.nutrasoft.ca/v1/salespersons/123" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"id": 123,
"active": true,
"code": "SAMPLE-01",
"email": "orders@example.com",
"first_name": "Alex",
"last_name": "Martin"
}
}