Skip to main content

API: account

General conventions in How the API works.

The key belongs to one account. The resource is singular and takes no id: there is no account list and no way to request another one. Read only.

Read the account​

GET /api/v1/account
  • Permission: accounts:read.
  • Path params: none.
  • Query params: none (an unknown parameter → 422).

Example​

curl https://back.inssacs.com/api/v1/account \
-H 'x-api-key: ics_a1b2c3d4_e5f6...'

Response 200​

{
"id": "00000000-0000-7000-8000-0000000000a1",
"taxId": "2589746130",
"companyName": "SHOW ROOM Vending",
"country": "Colombia",
"currency": "COP",
"minorUnitDecimals": 2,
"userTagKeys": ["departamento", "centrocosto", "cargo", "genero"],
"isActive": true,
"createdAt": "2026-09-28T14:44:53.060Z",
"updatedAt": "2026-09-28T14:44:53.060Z"
}
FieldTypeDescription
iduuidAccount id.
taxIdstringTax id (NIT).
companyNamestringLegal name.
countrystringCountry name (not an ISO code), e.g. Colombia.
currencystring ISO 4217Currency of all the account's money: prices, balances, deliveries. Never changes.
minorUnitDecimalsintegerDecimals of the currency (COP = 2). The value of an amount is amount / 10^minorUnitDecimals.
userTagKeysstring[]Tag keys enabled for users (max 4). They are the only keys accepted by user tags. Managed in the app.
isActivebooleanAccount is active.
createdAt / updatedAtISO 8601 UTC

Errors​

HTTPcodeWhen
401http.unauthorizedThe key is missing, invalid, revoked or expired.
403http.forbiddenThe key lacks accounts:read.
404accounts.not_foundThe key's account was deleted.
422validation.failedA query param was sent.
429http.too_many_requestsThe key's rate limit was exceeded.