Skip to main content
Version: Next

Register a tax-portal account

Store a business's tax-portal account (tax code + password) so the system can log in on its behalf and synchronize invoices. The tax code is hashed and the password is encrypted — neither is stored in raw form.

POST /tax-accounts

Request body

FieldTypeRequiredMeaning
mststringTax code / tax-portal login name
passwordstringTax-portal password
triggerInitialSyncbooleanImmediately create an initial sync request (default true)
initialSyncobjectInitial sync parameters (dateFrom, dateTo, fetchDetails)
Example request
{
"mst": "0319074775",
"password": "••••••••",
"triggerInitialSync": true,
"initialSync": { "dateFrom": "2025-03-01", "dateTo": "2025-03-31", "fetchDetails": true }
}
Example response (201)
{
"id": "cf00eea0-af08-4e84-9aa3-e12d23b3a568",
"maskedMst": "03•••••775",
"status": "active",
"initialJob": { "id": "b6bf6a2a-9082-4882-b798-b35fc5985894", "status": "queued" }
}

id is the accountId used in the following steps.

Account management

FunctionMethodEndpoint
ViewGET/tax-accounts/{accountId}
ListGET/tax-accounts
Change passwordPATCH/tax-accounts/{accountId}
DeleteDELETE/tax-accounts/{accountId}
Updating the password

Changing the password via PATCH automatically unlocks the account if it was previously flagged with an invalid password (INVALID_CREDENTIALS).