Skip to main content
GET
/
api
/
v1
/
registrations
/
v2
/
credentials
/
by-portal
/
{portal_id}
curl --request GET \
  --url 'https://transaction-tax.api.in.commenda.io/api/v1/registrations/v2/credentials/by-portal/PORTAL_CA_CDTFA?corporation_id=550e8400-e29b-41d4-a716-446655440000' \
  --header 'Authorization: Bearer <your_token>'
{
  "data": {
    "credential_id": "cred_abc123def456",
    "found": true
  }
}
Check whether a corporation already has stored credentials for a specific tax portal. Use this to avoid prompting users for credentials they’ve already provided.

Path parameters

portal_id
string
required
The portal ID to look up credentials for.Example: "PORTAL_CA_CDTFA"

Query parameters

corporation_id
string
required
The corporation ID to check credentials for.
curl --request GET \
  --url 'https://transaction-tax.api.in.commenda.io/api/v1/registrations/v2/credentials/by-portal/PORTAL_CA_CDTFA?corporation_id=550e8400-e29b-41d4-a716-446655440000' \
  --header 'Authorization: Bearer <your_token>'
{
  "data": {
    "credential_id": "cred_abc123def456",
    "found": true
  }
}
This endpoint returns found: false (not an error) when no credentials exist for the portal and corporation combination.