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.
Topics
A topic represents a category of notifications that your webhook can subscribe to. It groups related events under a single, descriptive label. Topics allow you to organize and filter the types of updates you want to receive.Events
An event is a notification that a specific action or change has occurred within Commenda’s system. Each event belongs to a topic and carries detailed information about the triggering action or change. All events share certain fields including the time they occur and the id of the affected organization. Events also have a fielddata which will be different for each topic.
Topic Categories
Commenda provides webhook notifications for events related to the following objects. This list is not exhaustive and more topic categories will be added soon.- Existing Registrations
- New Registrations
- Registration Thresholds
- Indirect Tax Exposure
- Filings
- Exemption Certificates
- Customs Duty
Existing Registrations
-
In order to allow Commenda to do automated sales tax and use tax filings for a corporation’s existing registration, the registration needs to be validated by Commenda. To initiate the validation process the user can call theREGISTRATIONS.EXISTING.VALIDATION.SUCCEEDEDPOST /registrations/request-validationendpoint. Validating a registration happens asynchronously and once the validation is successful this webhook is triggered. -
In some cases, a registration under validation will fail to pass our internal criteria. A non exhaustive list of failure cases is included below. More cases will be added over time.REGISTRATIONS.EXISTING.VALIDATION.FAILED-
INPUTS.INVALID_CREDENTIALSTrigger: To successfully file monthly sales tax for the customer, we need their tax portal credentials. If the entered credentials are wrong this error will be triggered. Resolution: The user needs to re-enter their credentials by hitting thePOST registrations/:id. Once all the details are confirmed, you can call thePOST /registrations/request-validationAPI endpoint again to request revalidation. -
INPUTS.INVALID_STATE_REGISTRATION_IDTrigger: If the entered state registration ID is invalid, this error will be triggered. Resolution: The user needs to re-enter the invalid details by hitting thePOST registrations/:id. Once all the details are confirmed, you can call thePOST /registrations/request-validationAPI endpoint again to request revalidation. -
PAYMENTS.PORTAL_HAS_EXISTING_PENDING_PAYMENTSTrigger: Every customer who is registered for sales tax needs to file and pay taxes to the state government. If during validation we find out that the customer has existing pending payments this error will be thrown. Resolution: The customer will need to make the payment for their pending filings. Once all the dues are cleared, you can call thePOST /registrations/request-validationAPI endpoint again to request revalidation. -
OTHERTrigger: Something unexpected went wrong. A human readable message on how to resolve the error and what went wrong will be attached. Resolution: Thedatainterface of the event payload will contain a possible resolution for the error.
-
New Registrations
-
This webhook triggers when a new registration is successfully created.REGISTRATIONS.NEW.SUCCEEDED
Registration thresholds
-
Commenda internally tracks each corporation’s progress toward registration thresholds. If a threshold is about to be exceeded in a jurisdiction where the customer is not registered, the customer will need to register in that jurisdiction. Registrations generally take some time, so it’s better to register once you have reached around 80% of the threshold. This webhook is triggered everyday from the day when 80% threshold is crossed in a non registered state.NEXUS.THRESHOLD.STATE.ALERT
Indirect Tax Exposure
-
Commenda continuously evaluates a corporation’s transactions against jurisdiction-level nexus rules. When the set of jurisdictions where the corporation is exposed (i.e., has breached a registration threshold but does not yet have a covering active registration) changes, this webhook fires with the current full snapshot of exposed jurisdictions. Each item inINDIRECT_TAX.EXPOSURE.COMPUTEDdata.exposed[]represents one jurisdiction that requires action. Userecommended_registration_content_idsto look up the corresponding V2 registration content via the Available Registrations endpoint, then create a registration with Create Registration V2 to clear the exposure. The payload contains the full current exposure set — treat each delivery as a snapshot rather than a delta. Jurisdictions that previously appeared but are absent from a later payload are no longer exposed.Field Type Description data.corporation_idstring Corporation whose exposure was recomputed. data.exposed[]array Full snapshot of currently-exposed jurisdictions. May be empty. data.exposed[].region_idstring Stable identifier for the exposed jurisdiction. data.exposed[].jurisdiction_iso_codestring ISO code for the exposed jurisdiction (e.g., country or sub-jurisdiction code). data.exposed[].jurisdiction_namestring Human-readable jurisdiction name (e.g., "Germany","California").data.exposed[].parent_jurisdiction_namestring Optional parent jurisdiction name (e.g., a trade bloc such as "European Union"for a member state).data.exposed[].recommended_registration_content_idsarray Content IDs that, if registered for, would cover this exposure. Compare against active registrations’ registration_content_idto determine coverage.
Filings
-
Fires when one or more new sales tax filings are generated for the corporation (for example, when a new period opens). The payload includes the list of newly-created filings underFILINGS.CREATEDdata.added_filings. -
Fires when an existing filing is updated (for example, when its status changes, totals are recomputed, or it is filed). The payload includes the updated filings underFILINGS.UPDATEDdata.updated_filings. Filings that have been removed are reported underdata.removed_filings.
Exemptions Certificates
-
Once a customer uploads an exemption certificate Commenda begins the process of validating it. Once the validation is complete, Commenda begins treating related transactions as tax exempt. This webhook is triggered once the validation process succeeds.EXEMPTION_CERTIFICATES.VERIFICATION.SUCCEEDED -
In some cases, a exemption certificate under validation will fail to pass our internal criteria. A non exhaustive list of failure cases is included below. More cases will be added over time.EXEMPTION_CERTIFICATES.VERIFICATION.FAILED-
INPUTS.NAME_MISMATCHTrigger: If the name of the customer doesn’t matches the name mentioned on the exemption certificate. Resolution: Either update the name of the customer or upload the right exemption certificate. -
CERTIFICATE.CERTIFICATE_HAS_EXPIREDTrigger: The expiration date mentioned on the exemption certificate has already passed and the certificate is no longer valid. Resolution: The customer will need to upload the latest version of the exemption certificate for the purchaser. -
CERTIFICATE.INVALID_TYPE_OR_FORMATTrigger: If the type of the certificate is invalid for this customer this webhook will be triggered. Resolution: The customer will need to upload the latest version of the exemption certificate for the purchaser. -
PURCHASER.MISSING_ADDRESSTrigger: Some states like Texas requires the address of the purchaser to be present on the exemption certificate. This webhook will be triggered if the address is missing. Resolution: Upload a newer version of exemption certificate that contains the purchaser’s address. -
OTHERTrigger: This is to cover edge cases. A human readable message on how to resolve the error and what went wrong will be attached. Resolution: Thedatainterface of the event payload will contain a possible resolution for the error.
-
We send out a notification two weeks before an exemption certificate is expiring, to give a customer notice that they’ll need to upload a new one. Trigger: The expiration date mentioned on the exemption certificate is passing and the certificate will no longer be valid.EXEMPTION_CERTIFICATES.EXPIRATION
-
Customs Duty
-
CUSTOMS_DUTY.CUSTOMS_CODE.UPDATE