Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.commenda.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Credentials API provides secure storage for login credentials to government tax portals. Credentials are used by Commenda to file tax returns on your behalf when managed filing is enabled on a registration. Each credential contains one or more blocks — structured key-value pairs that store individual fields like usernames, passwords, and account numbers.

Credential types

TypeDescription
INDIRECT_TAX_REGISTRATIONCredentials for a tax filing portal linked to a registration
OTHERGeneral-purpose credentials

Block types

TypeDescription
StringPlain text value (usernames, account numbers)
SecureStringEncrypted value (passwords, PINs)
FileFile attachment (certificates, keys)

Credential statuses

StatusDescription
ACTIVECredential is valid and in use
EXPIREDCredential has expired and needs renewal

Workflow

1

Get portal requirements

Use the Portal Fields endpoint to see what credential fields a portal requires.
2

Create a credential

Use the Create Credential endpoint to store the portal login details.
3

Link to a registration

Pass the credential_id when creating or updating a V2 registration.

API endpoints

EndpointMethodDescription
/credentialsPOSTCreate a new credential
/credentialsGETList credentials for a corporation
/credentials/{id}GETGet a single credential
/credentials/{id}POSTUpdate a credential
/credentials/{id}DELETEDelete a credential

Extending list responses

When listing credentials, you can include additional portal details by passing extend=PORTAL_DETAILS as a query parameter. This adds the portal name, URL, and jurisdiction information to each credential in the response.