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
}
}
{
"data": {
"found": false
}
}
Registrations V2
Credential Lookup
Look up whether credentials exist for a corporation and portal
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
}
}
{
"data": {
"found": false
}
}
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
string
required
The portal ID to look up credentials for.Example:
"PORTAL_CA_CDTFA"Query parameters
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
}
}
{
"data": {
"found": false
}
}
This endpoint returns
found: false (not an error) when no credentials exist for the portal and corporation combination.Related
- Portal Fields — Get credential field requirements for a portal
- Update Registration — Attach a credential to a registration
Was this page helpful?