Skip to content

Trust VAT Checker API (Legacy)

Besides the path and the error answers, two fields differ from the current versions:

  • createValidationV1 takes an idempotencyKey in the body; the current versions take the Idempotency-Key header instead (see Idempotency).
  • The schedule flag is called manualReviewOnAutomaticFailure in v1 (in attachSchedule, in the body of createScheduleV1 and in its answer) and isManualReviewOnAutomaticFailure in the current versions. Unknown fields are ignored, so a v1 name sent to a current operation is lost and the default (true) applies.

The error answers:

v1 answercurrent answer
402 for a locked project423, code: project_locked
422 for invalid input400

deleteScheduleV1 and getValidationResultV1 also accept agency keys. With a project key they answer 404 for a schedule or result of another project and 402 without a code for a locked project; with an agency key they answer like the current versions (403 access_denied, 423 project_locked on the delete). The v1 calls do not count against the rate limit.

POST https://api.trustcomponent.com/taxvalidation/v1/validations

Submits a validation request via API key (programmatic integration)

Checks one tax identifier against the registry of its country for the project of the API key. Most checks finish within the request and answer 201 with the outcome; when the registry is slow or unavailable the answer is 202 with status PENDING, and the result follows by webhook or through getValidationResultV1. A request that repeats the idempotencyKey of the body answers 200 with the request created first. Accepts project keys only; an agency key uses createValidationV2 under /projects/{projectId}.

Authentication: API key as bearer token. Operation createValidationV1.

Example request
Terminal window
# Takes the project from the key: a project key only.
curl -X POST "https://api.trustcomponent.com/taxvalidation/v1/validations" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{"countryCode": "DE", "rawValue": "DE811569869"}'
Example response (200)
{
"validationRequestId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"validationResultId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"taxIdentifierId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"status": "PENDING",
"input": {
"scheme": "EU_VAT",
"countryCode": "DE",
"rawValue": "DE 123 456 789",
"normalizedValue": "DE123456789",
"companyName": "Example GmbH",
"address": {
"street": "Example Street 1",
"postalCode": "80331",
"city": "Munich",
"region": "Bavaria",
"countryCode": "DE"
},
"requesterVatId": "DE123456789",
"customerMetadata": {
"customerId": "cus_4711"
}
},
"outcome": "VALID",
"provider": "VIES",
"providerStatus": "SUCCESS",
"match": {
"companyName": "MATCH",
"address": "MATCH",
"addressDetails": {
"street": "MATCH",
"postalCode": "MATCH",
"city": "MATCH",
"region": "MATCH",
"countryCode": "MATCH"
}
},
"responseData": {
"companyName": "Example GmbH",
"address": {
"street": "Example Street 1",
"postalCode": "80331",
"city": "Munich",
"region": "Bavaria",
"countryCode": "DE"
},
"sourceReference": "WAPIAAAAZ1x2y3z4",
"providerMessage": "Valid"
},
"checkedAt": "2020-01-01T13:30:05.941Z",
"failureReason": "The registry did not answer in time",
"nextRetryAt": "2020-01-01T13:30:05.941Z",
"idempotencyKey": "order-4711-validation",
"correlationId": "order-4711"
}

Request body application/json

Validation input

FieldTypeDescription
countryCoderequiredstringISO 3166 alpha-2 country code. The TaxIdentifierScheme is derived automatically.
rawValuerequiredstringThe tax identifier as you have it; spaces, dots, dashes and underscores are removed, at most 20 characters remain.
companyNameoptionalstringCompany name to compare with the registry, at most 256 characters.
addressoptionalobject
requesterVatIdoptionalstringYour own VAT ID. A German one makes the BZSt confirm a non-German EU VAT ID (qualified confirmation); VIES receives it for its qualified check.
customerMetadataoptionalmap of stringFree-form key/value metadata. Max 20 entries; key must match [a-z0-9_-]+ (1..64 chars); value max 512 chars, no control characters. Carried through from request to result snapshot for downstream lookups.
preferredProvideroptionalenumRegistry that answered or should answer: VIES (EU), BZST (Germany), HMRC (United Kingdom), SWISS_UID (Switzerland), BRREG (Norway), ABR (Australia), NZBN (New Zealand); MANUAL for a manual review.
VIESBZSTHMRCSWISS_UIDBRREGABRNZBNMANUAL
idempotencyKeyoptionalstringYour key for this request. Sent again with the same key, the request is not processed twice and the answer is the first validation.
correlationIdoptionalstringYour own id for this request, returned unchanged with the validation and its result.
attachScheduleoptionalobjectAlso re-validate this identifier on a schedule, like createScheduleV2 does.

Response 200 · application/json

FieldTypeDescription
validationRequestIdstring (uuid)Id of the validation request.
validationResultIdmay be nullstring (uuid)Id of the result, once the check is finished.
taxIdentifierIdstring (uuid)The stored TaxIdentifier this validation resolved to.
statusenumPENDING accepted, PROCESSING at the registry, WAITING_FOR_RETRY the registry was unavailable and is asked again at nextRetryAt, WAITING_FOR_MANUAL_REVIEW in the manual review queue, COMPLETED the result is there, CANCELLED stopped without result.
PENDINGPROCESSINGWAITING_FOR_RETRYWAITING_FOR_MANUAL_REVIEWCOMPLETEDCANCELLED
inputobjectEcho of the input the validation was run with — including the customerMetadata you supplied, so results can be correlated back to your request.
outcomemay be nullenumVALID the registry confirmed the identifier, INVALID it rejected it (not registered, deregistered or inactive), UNKNOWN no verdict, SOURCE_UNAVAILABLE the registry could not be reached after every retry, NOT_SUPPORTED no registry checks this scheme automatically, PLAN_RESTRICTED the registry needs the all-registries option of the plan.
VALIDINVALIDUNKNOWNSOURCE_UNAVAILABLENOT_SUPPORTEDPLAN_RESTRICTED
providermay be nullenumRegistry that answered or should answer: VIES (EU), BZST (Germany), HMRC (United Kingdom), SWISS_UID (Switzerland), BRREG (Norway), ABR (Australia), NZBN (New Zealand); MANUAL for a manual review.
VIESBZSTHMRCSWISS_UIDBRREGABRNZBNMANUAL
providerStatusmay be nullenumWhat technically happened at the registry. SOURCE_TIMEOUT, SOURCE_UNAVAILABLE, RATE_LIMITED and TECHNICAL_ERROR are retried automatically; NOT_USED for a manual result.
SUCCESSINVALID_INPUTREQUESTER_REJECTEDREQUEST_REJECTEDACCESS_BLOCKEDSOURCE_TIMEOUTSOURCE_UNAVAILABLERATE_LIMITEDAUTHENTICATION_FAILEDTECHNICAL_ERRORNOT_SUPPORTEDPLAN_RESTRICTEDNOT_USED
matchmay be nullobject
responseDatamay be nullobject
checkedAtmay be nullstringWhen the registry answered.
failureReasonmay be nullstringWhy the last automatic attempt failed (e.g. the source was unavailable). Present while the validation is retrying or awaiting manual review.
nextRetryAtmay be nullstringWhen the next automatic attempt is scheduled, while the validation is retrying.
idempotencyKeymay be nullstringThe idempotencyKey of the request; only createValidationV1 and createValidationBatchV1 take one, newer versions use the Idempotency-Key header.
correlationIdmay be nullstringThe correlationId of the request.

Status codes

StatusMeaning
200The body's idempotencyKey was already used: the validation request created first, with its outcome if it has one
201Validation completed (synchronous outcome)
202Validation accepted, processing asynchronously
401Missing or invalid API key
402Project locked; answered without a code, unchanged since v1
403API key not permitted to perform validation, or a key that is not a project key (code: project_key_required); an agency key uses the v2 operation under /projects/{projectId}
422Input format invalid or scheme not supported
POST https://api.trustcomponent.com/taxvalidation/v1/validations/batch

Submits multiple validation requests in one call via API key

Every item is accepted as a PENDING validation request and processed asynchronously; the per-item result is delivered via webhook (or can be polled). The response carries the created requests in input order, each without an outcome yet. A batch is always accepted or rejected as a whole.

Authentication: API key as bearer token. Operation createValidationBatchV1.

Example request
Terminal window
# Takes the project from the key: a project key only.
curl -X POST "https://api.trustcomponent.com/taxvalidation/v1/validations/batch" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{"items": [{"countryCode": "DE", "rawValue": "DE811569869"}, {"countryCode": "AT", "rawValue": "ATU33864707"}]}'
Example response (202)
[
{
"validationRequestId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"validationResultId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"taxIdentifierId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"status": "PENDING",
"input": {
"scheme": "EU_VAT",
"countryCode": "DE",
"rawValue": "DE 123 456 789",
"normalizedValue": "DE123456789",
"companyName": "Example GmbH",
"address": {
"street": "Example Street 1",
"postalCode": "80331",
"city": "Munich",
"region": "Bavaria",
"countryCode": "DE"
},
"requesterVatId": "DE123456789",
"customerMetadata": {
"customerId": "cus_4711"
}
},
"outcome": "VALID",
"provider": "VIES",
"providerStatus": "SUCCESS",
"match": {
"companyName": "MATCH",
"address": "MATCH",
"addressDetails": {
"street": "MATCH",
"postalCode": "MATCH",
"city": "MATCH",
"region": "MATCH",
"countryCode": "MATCH"
}
},
"responseData": {
"companyName": "Example GmbH",
"address": {
"street": "Example Street 1",
"postalCode": "80331",
"city": "Munich",
"region": "Bavaria",
"countryCode": "DE"
},
"sourceReference": "WAPIAAAAZ1x2y3z4",
"providerMessage": "Valid"
},
"checkedAt": "2020-01-01T13:30:05.941Z",
"failureReason": "The registry did not answer in time",
"nextRetryAt": "2020-01-01T13:30:05.941Z",
"idempotencyKey": "order-4711-validation",
"correlationId": "order-4711"
}
]

Request body application/json

Batch of validation inputs

FieldTypeDescription
itemsrequiredarray of objectValidation inputs, at most 1,000 per batch. Split larger volumes into several requests. · 0–1000 entries

Response 202 · application/json

FieldTypeDescription
validationRequestIdstring (uuid)Id of the validation request.
validationResultIdmay be nullstring (uuid)Id of the result, once the check is finished.
taxIdentifierIdstring (uuid)The stored TaxIdentifier this validation resolved to.
statusenumPENDING accepted, PROCESSING at the registry, WAITING_FOR_RETRY the registry was unavailable and is asked again at nextRetryAt, WAITING_FOR_MANUAL_REVIEW in the manual review queue, COMPLETED the result is there, CANCELLED stopped without result.
PENDINGPROCESSINGWAITING_FOR_RETRYWAITING_FOR_MANUAL_REVIEWCOMPLETEDCANCELLED
inputobjectEcho of the input the validation was run with — including the customerMetadata you supplied, so results can be correlated back to your request.
outcomemay be nullenumVALID the registry confirmed the identifier, INVALID it rejected it (not registered, deregistered or inactive), UNKNOWN no verdict, SOURCE_UNAVAILABLE the registry could not be reached after every retry, NOT_SUPPORTED no registry checks this scheme automatically, PLAN_RESTRICTED the registry needs the all-registries option of the plan.
VALIDINVALIDUNKNOWNSOURCE_UNAVAILABLENOT_SUPPORTEDPLAN_RESTRICTED
providermay be nullenumRegistry that answered or should answer: VIES (EU), BZST (Germany), HMRC (United Kingdom), SWISS_UID (Switzerland), BRREG (Norway), ABR (Australia), NZBN (New Zealand); MANUAL for a manual review.
VIESBZSTHMRCSWISS_UIDBRREGABRNZBNMANUAL
providerStatusmay be nullenumWhat technically happened at the registry. SOURCE_TIMEOUT, SOURCE_UNAVAILABLE, RATE_LIMITED and TECHNICAL_ERROR are retried automatically; NOT_USED for a manual result.
SUCCESSINVALID_INPUTREQUESTER_REJECTEDREQUEST_REJECTEDACCESS_BLOCKEDSOURCE_TIMEOUTSOURCE_UNAVAILABLERATE_LIMITEDAUTHENTICATION_FAILEDTECHNICAL_ERRORNOT_SUPPORTEDPLAN_RESTRICTEDNOT_USED
matchmay be nullobject
responseDatamay be nullobject
checkedAtmay be nullstringWhen the registry answered.
failureReasonmay be nullstringWhy the last automatic attempt failed (e.g. the source was unavailable). Present while the validation is retrying or awaiting manual review.
nextRetryAtmay be nullstringWhen the next automatic attempt is scheduled, while the validation is retrying.
idempotencyKeymay be nullstringThe idempotencyKey of the request; only createValidationV1 and createValidationBatchV1 take one, newer versions use the Idempotency-Key header.
correlationIdmay be nullstringThe correlationId of the request.

Status codes

StatusMeaning
202Batch accepted; every item created as PENDING and processed asynchronously (result delivered via webhook)
401Missing or invalid API key
402Tax identifier limit of the plan reached
403API key not permitted to perform validation, or a key that is not a project key (code: project_key_required); an agency key uses the v2 operation under /projects/{projectId}
422Invalid item or more than 1,000 items
POST https://api.trustcomponent.com/taxvalidation/v1/schedules

Creates a recurring validation schedule via API key (countryCode + rawValue; TaxIdentifier derived server-side)

Re-validates one tax identifier every month, quarter or year in the project of the API key and stores each result like a single validation. Accepts project keys only; an agency key uses createScheduleV2 under /projects/{projectId}.

Authentication: API key as bearer token. Operation createScheduleV1.

Example request
Terminal window
# Takes the project from the key: a project key only.
curl -X POST "https://api.trustcomponent.com/taxvalidation/v1/schedules" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{"countryCode": "DE", "rawValue": "DE811569869", "frequency": "MONTHLY"}'
Example response (201)
{
"scheduleId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"taxIdentifierId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"countryCode": "DE",
"normalizedValue": "DE123456789",
"frequency": "MONTHLY",
"mode": "AUTOMATIC",
"preferredProvider": "VIES",
"manualReviewOnAutomaticFailure": true,
"isEnabled": true,
"nextRunAt": "2020-01-01T13:30:05.941Z",
"lastRunAt": "2020-01-01T13:30:05.941Z",
"latestValidationResultId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a"
}

Request body application/json

Schedule input

FieldTypeDescription
countryCoderequiredstringISO 3166 alpha-2 country code. The TaxIdentifierScheme is derived automatically.
rawValuerequiredstringThe tax identifier as you have it; spaces, dots, dashes and underscores are removed, at most 20 characters remain.
companyNameoptionalstringCompany name to compare with the registry, at most 256 characters.
addressoptionalobject
requesterVatIdoptionalstringYour own VAT ID. A German one makes the BZSt confirm a non-German EU VAT ID (qualified confirmation); VIES receives it for its qualified check.
customerMetadataoptionalmap of stringFree-form key/value metadata supplied by the customer. Max 20 entries; key must match [a-z0-9_-]+ (1..64 chars); value max 512 chars, no control characters.
frequencyrequiredenumHow often the schedule re-validates.
MONTHLYQUARTERLYYEARLY
modeoptionalenumAUTOMATIC asks the registry, MANUAL puts every run into the manual review queue.
AUTOMATICMANUAL
preferredProvideroptionalenumRegistry that answered or should answer: VIES (EU), BZST (Germany), HMRC (United Kingdom), SWISS_UID (Switzerland), BRREG (Norway), ABR (Australia), NZBN (New Zealand); MANUAL for a manual review.
VIESBZSTHMRCSWISS_UIDBRREGABRNZBNMANUAL
manualReviewOnAutomaticFailureoptionalbooleanWhether validations started by this schedule are routed to the manual review queue when they cannot be completed automatically. Overrides the tax validator setting. Defaults to true.
isEnabledoptionalbooleanDefaults to true.

Response 201 · application/json

FieldTypeDescription
scheduleIdstring (uuid)Id of the schedule.
taxIdentifierIdstring (uuid)Id of the stored tax identifier the schedule re-validates.
countryCodestringCountry of the tax identifier, ISO 3166 alpha-2.
normalizedValuestringThe tax identifier after normalization, with country prefix where the scheme has one.
frequencyenumHow often the schedule re-validates.
MONTHLYQUARTERLYYEARLY
modeenumAUTOMATIC asks the registry, MANUAL puts every run into the manual review queue.
AUTOMATICMANUAL
preferredProvidermay be nullenumRegistry that answered or should answer: VIES (EU), BZST (Germany), HMRC (United Kingdom), SWISS_UID (Switzerland), BRREG (Norway), ABR (Australia), NZBN (New Zealand); MANUAL for a manual review.
VIESBZSTHMRCSWISS_UIDBRREGABRNZBNMANUAL
manualReviewOnAutomaticFailurebooleanWhether validations of the schedule go to manual review when they cannot be completed automatically.
isEnabledbooleanWhether the schedule runs.
nextRunAtstringWhen the schedule runs next.
lastRunAtmay be nullstringWhen the schedule ran last.
latestValidationResultIdmay be nullstring (uuid)Id of the result of the last run.

Status codes

StatusMeaning
201Schedule created
401Missing or invalid API key
402Project locked; answered without a code, unchanged since v1
403API key not permitted, or a key that is not a project key (code: project_key_required); an agency key uses createScheduleV2 under /projects/{projectId}
422Input format invalid or scheme not supported
DELETE https://api.trustcomponent.com/taxvalidation/v1/schedules/{scheduleId}

Stops and removes a recurring validation schedule

Results the schedule already produced stay.

Authentication: API key as bearer token. Operation deleteScheduleV1.

Example request
Terminal window
curl -X DELETE "https://api.trustcomponent.com/taxvalidation/v1/schedules/<schedule_id>" \
-H "Authorization: Bearer <your_api_key>"

Path parameters

NameTypeDescription
scheduleIdrequiredstring (uuid)Id of the schedule

Response 204

Schedule deleted (no body).

Status codes

StatusMeaning
204Schedule deleted
401Missing or invalid API key
402The project of a project API key is locked (answered without a code, as released)
403A project API key lacks the Member role (code: access_denied) or its project has no VAT Checker module (without a code, as released); an agency API key has no access to the project of the schedule or lacks the Member role there (code: access_denied)
404No schedule with this id, or for a project API key a schedule of another project
423For an agency API key: the project of the schedule is locked by TrustComponent (code: project_locked); only support can unlock it
GET https://api.trustcomponent.com/taxvalidation/v1/validation-results/{validationResultId}

Returns a single validation result (e.g. the one referenced in a webhook notification)

The result of a finished validation, with the input it was run with, the outcome, what the registry returned and the match verdicts.

Authentication: API key as bearer token. Operation getValidationResultV1.

Example request
Terminal window
curl "https://api.trustcomponent.com/taxvalidation/v1/validation-results/<validation_result_id>" \
-H "Authorization: Bearer <your_api_key>"
Example response (200)
{
"validationResultId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"taxIdentifierId": "cc2e2d5e-d1ef-4a7f-a7bd-dec5b37df47a",
"createdAt": "2020-01-01T13:30:05.941Z",
"checkedAt": "2020-01-01T13:30:05.941Z",
"input": {
"scheme": "EU_VAT",
"countryCode": "DE",
"rawValue": "DE 123 456 789",
"normalizedValue": "DE123456789",
"companyName": "Example GmbH",
"address": {
"street": "Example Street 1",
"postalCode": "80331",
"city": "Munich",
"region": "Bavaria",
"countryCode": "DE"
},
"requesterVatId": "DE123456789",
"customerMetadata": {
"customerId": "cus_4711"
}
},
"outcome": "VALID",
"provider": "VIES",
"providerStatus": "SUCCESS",
"verificationMethod": "AUTOMATIC",
"match": {
"companyName": "MATCH",
"address": "MATCH",
"addressDetails": {
"street": "MATCH",
"postalCode": "MATCH",
"city": "MATCH",
"region": "MATCH",
"countryCode": "MATCH"
}
},
"responseData": {
"companyName": "Example GmbH",
"address": {
"street": "Example Street 1",
"postalCode": "80331",
"city": "Munich",
"region": "Bavaria",
"countryCode": "DE"
},
"sourceReference": "WAPIAAAAZ1x2y3z4",
"providerMessage": "Valid"
},
"comment": "Confirmed by phone with the tax office",
"idempotencyKey": "order-4711-validation",
"correlationId": "order-4711"
}

Path parameters

NameTypeDescription
validationResultIdrequiredstring (uuid)Id of the validation result

Response 200 · application/json

FieldTypeDescription
validationResultIdstring (uuid)Id of the result.
taxIdentifierIdstring (uuid)Id of the stored tax identifier.
createdAtstringWhen the result was stored.
checkedAtstringWhen the registry answered, or the reviewer decided.
inputobjectEcho of the input the validation was run with — including the customerMetadata you supplied, so results can be correlated back to your request.
outcomeenumVALID the registry confirmed the identifier, INVALID it rejected it (not registered, deregistered or inactive), UNKNOWN no verdict, SOURCE_UNAVAILABLE the registry could not be reached after every retry, NOT_SUPPORTED no registry checks this scheme automatically, PLAN_RESTRICTED the registry needs the all-registries option of the plan.
VALIDINVALIDUNKNOWNSOURCE_UNAVAILABLENOT_SUPPORTEDPLAN_RESTRICTED
providerenumRegistry that answered or should answer: VIES (EU), BZST (Germany), HMRC (United Kingdom), SWISS_UID (Switzerland), BRREG (Norway), ABR (Australia), NZBN (New Zealand); MANUAL for a manual review.
VIESBZSTHMRCSWISS_UIDBRREGABRNZBNMANUAL
providerStatusenumWhat technically happened at the registry. SOURCE_TIMEOUT, SOURCE_UNAVAILABLE, RATE_LIMITED and TECHNICAL_ERROR are retried automatically; NOT_USED for a manual result.
SUCCESSINVALID_INPUTREQUESTER_REJECTEDREQUEST_REJECTEDACCESS_BLOCKEDSOURCE_TIMEOUTSOURCE_UNAVAILABLERATE_LIMITEDAUTHENTICATION_FAILEDTECHNICAL_ERRORNOT_SUPPORTEDPLAN_RESTRICTEDNOT_USED
verificationMethodenumAUTOMATIC the registry decided, MANUAL a reviewer.
AUTOMATICMANUAL
matchobject
responseDatamay be nullobject
commentmay be nullstringComment of the reviewer of a manual review.
idempotencyKeymay be nullstringThe idempotencyKey of the request; only createValidationV1 and createValidationBatchV1 take one, newer versions use the Idempotency-Key header.
correlationIdmay be nullstringThe correlationId of the request.

Status codes

StatusMeaning
200Validation result
401Missing or invalid API key
402The project of a project API key is locked (answered without a code, as released)
403The project of a project API key has no VAT Checker module (without a code, as released); an agency API key has no access to the project of the result (code: access_denied)
404No validation result with this id, or for a project API key a result of another project