Which account and environment a key belongs to, what it may do, its rate limit and the account currency. Needs no scope, so it is the first call to make.
api_key_idintegerQuote this alongside a request id in support.
companystringnullableThe account name, as configured in NutraSoft.
currencystringISO 4217 code of the account's currency, which every money field is in.
environmentstringDerived from the account, never from the key.
livetestkey_prefixstringThe visible start of the key, so you can tell which one is in use.
license_idintegerThe account this key belongs to.
rate_limit_per_minintegerRequests per minute, counted per account rather than per key.
scopesarray of stringThe effective scopes: a write scope also lists its read scope, so sales:write reports both sales:write and sales:read.
/organizationno scope neededThe account the key belongs to, its environment and currency, and what the key may do. Needs no scope beyond a valid key.
data.curl "https://public-api.nutrasoft.ca/v1/organization" \
-H "Authorization: Bearer $NUTRASOFT_API_KEY"{
"data": {
"api_key_id": 123,
"company": "Example Foods Inc.",
"currency": "CAD",
"environment": "test",
"key_prefix": "nsk_test_9fA",
"license_id": 123,
"rate_limit_per_min": 300,
"scopes": [
"catalog:read",
"sales:read",
"sales:write"
]
}
}