How it works
Each Validate Tax IDs step checks one party:- In an
invoiceworkflow, the step checks the customer or the supplier, as configured. - In a
partyworkflow, the step checks the party document itself.
tax_id. Entries in identities are not checked. A tax ID that no register covers is skipped and costs nothing.
Set up the step
1
Enable the Lookup app
In the Console, open the apps directory by clicking the icon next to Apps in the sidebar. Find Lookup in the list of available apps and enable it in your workspace.
2
Add the step to a workflow
Open an
invoice or party workflow and add the Validate Tax IDs step. Place it before the steps that need a valid tax ID, such as Sign envelope, or a step that sends the invoice to a tax authority or network.3
Configure the step
Choose the party to check, how old a cached answer may be, and whether the step corrects the party. See Step configuration below.
Ask your agent to add tax ID validation to one of your workflows.
Step configuration
In the workflow JSON, these fields are
party, max_age and correct:
Handle the results
The step returns a status and a code. AfterOK or SKIP, the workflow continues with the next step. After KO, the workflow stops and runs its rescue steps, unless an exception handles that code. Add conditions and exceptions only for the codes that your process must handle in a special way.
The tax ID is valid
The step returnsOK:
found: the register confirms the tax ID, and the names match. The comparison ignores case, punctuation and extra spaces, soAcme Trading GmbH.andACME TRADING GMBHmatch.found-name-mismatch: the register confirms the tax ID, but the name in the document is different. The message gives the registered name. With Correct the party on, the step writes that name into the document. To review these documents instead, turn the correction off and add a condition on this code.
The tax ID is not valid
The step returnsKO:
not-found: the register does not hold the tax ID. Check the tax ID with your customer. To reject these invoices automatically, see Stop on an unregistered customer.input: the register rejects the tax ID as badly formed, for example a code with the wrong length. Correct the tax ID in the document and run the job again.
The step is skipped
The step returnsSKIP, and the workflow continues:
no-identifiers: the party has no tax ID, as is common for a consumer. To handle these documents differently, add a condition with the status Any on this code.missing-party: the invoice has no party to check, such as a simplified invoice without a customer.not-supported: no register covers the tax ID.
The register does not answer
The step returnsERR with the code upstream, and Invopop retries it automatically. You do not need to do anything. The step never uses an older cached answer in place of the register’s answer.
The step cannot run
The step returnsKO when its setup is wrong:
not-enrolled: the Lookup app is not enabled in the workspace. Enable it in the Console.not-configured: the app is not set up correctly. Contact support.silo-entry: the document of the job cannot be found.bad-document: the document cannot be read.bad-config: the step configuration cannot be read. Open the step and save its configuration again.invalid-party: the step selects an unknown party. Select the customer or the supplier.unsupported-schema: the document is not an invoice or a party. Use the step in aninvoiceorpartyworkflow.
Correction
With Correct the party on, a check that passes writes the register’s data into the document:- Name: the registered name replaces the document’s name whenever the two differ, including a difference in case only. The registered spelling is the legal one.
- Address: a structured address from the register becomes the party’s first address, and the other addresses stay.
- Tax ID: never changed.
found or found-name-mismatch.
Workflow examples
Validate the invoice customer
Validate the customer’s tax ID, write the registered name into the invoice, and sign it.- Workflow
- Code
Stop on an unregistered customer
An exception on thenot-found code sets the state to rejected and stops the job, so the invoice is never signed. Every other invoice is signed as usual.
- Workflow
- Code
Validate a party
Validate a party’s tax ID and write the registered name into the party, for example before you register it with a tax authority.- Workflow
- Code
Participate in our community
Ask and answer questions about the Lookup app →