Fields Reference

Learn about validation fields to validate tax identification numbers.

These field references describe the fields specified in the Validate Tax Number request.

Input parameters

The following input fields are available:

FieldTypeRequiredDescription
tax_numberStringYesThe tax number to validate.
country_codeStringYesThe two-letter ISO country code for the tax number.
country_subdivision_codeStringYes, for CanadaThe country subdivision code for the tax number. This field is required for Canada. For example, use CA-QC for Quebec.
business_nameStringYes, for CanadaThe name of the business for the tax number. This field is required for Canada.
cache_expiry_timeout_daysIntegerNoThe maximum age, in days, of cached validation results. Use 0 to perform real-time validation against the tax authority. For example, a value of 30 allows the service to use validation results cached within the previous 30 days.
on_errorStringNoSpecifies how the service handles errors returned by external validation services. Use proceed to mark the tax number as invalid. Use syntax_check to validate only the tax number's format. The service returns tax_number-syntax-considered-valid-but-not-verified in the buyer-tax_number-validation-info response field.

Output parameters

The following output fields are available:

FieldDescription
buyer_tax_number_normalizedReturns the tax number in a standardized format.
buyer_tax_number_validIndicates whether the tax number was successfully validated.
buyer_tax_number_format_validIndicates whether the tax number format is valid.
buyer_tax_number_validation_infoReturns additional information about the validation result and processing outcome.
nameReturns the name associated with the tax number when available from the validation authority. This field is not returned for all countries.
addressReturns the address associated with the tax number when available from the validation authority. This field is not returned for all countries.
buyer_tax_number_service_cache_timestampReturns the timestamp of the original validation request when the service uses a cached validation result.
buyer_tax_number_service_cache_usedIndicates whether the service used a cached validation result instead of performing real-time validation.

Did this page help you?