Tax Engine Integration

  • Release version: Australia
  • Updated March 12, 2026
  • 5 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Tax Engine Integration

    The Tax Engine Integration in ServiceNow Accounts Payable Operations enables customers to connect external tax engines for validating supplier-provided tax amounts against independently calculated system tax. This integration supports accurate tax verification for PO, Non-PO, and credit memo invoices, enhancing straight-through processing and operational efficiency. It captures supplier-declared tax data during invoice extraction and validates it at both header and line levels, ensuring tax accuracy and compliance across jurisdictions.

    Show full answer Show less

    Key Features

    • External Tax Engine Integration: Uses the Source-to-Pay integration framework to connect with enterprise tax engines, mapping invoice data for outbound requests and processing inbound responses.
    • Intelligent Tax Calculation: Validates supplier tax based on multiple invoice attributes including ship-to location, item, service, amounts, jurisdictions, exemptions, and tax configurations.
    • Granular Validation: Compares tax amounts at both invoice line and header levels to maximize accuracy.
    • Configurable Tolerance Thresholds: Allows definition of acceptable variances between supplier and system tax; automatic approval occurs when variances fall within these thresholds.
    • Multiple Validation Modes: Supports synchronous automatic validation at key invoice stages, manual on-demand validation by Accounts Payable specialists, and scheduled background recalculations to maintain tax accuracy.
    • Tax Exception Handling: Raises exceptions when tax differences exceed tolerance, with clear visibility into under- or over-tax variances for manual review.

    How Tax Calculation Works

    Accounts Payable Operations records supplier-declared tax amounts exactly and calculates system tax internally, breaking down tax components (e.g., State, County, District). The sum of internal tax lines is compared against the supplier’s declared tax. If differences exceed configured tolerance, a tax exception is raised. Tax integration is triggered after PO matching for PO invoices and upon acceptance for Non-PO invoices.

    Tax Calculation Framework

    The framework employs a modular, three-tier architecture integrating Accounts Payable Operations, a tax staging table, and the external tax engine to automate tax computation and validation. The tax staging table tracks tax status and stores tax data during processing. Responses from the external tax engine update invoice tax status, and exceptions are generated for discrepancies. Tax is recalculated if invoice data changes after initial validation.

    Benefits

    • Reduced Manual Effort: Automates tax calculation and reconciliation, eliminating manual tax line entries.
    • Improved Accuracy: Utilizes authoritative third-party tax logic for precise tax computations.
    • Stronger Compliance: Ensures consistent tax validation across different jurisdictions and invoice types.
    • Faster Processing: Increases straight-through invoice processing rates with fewer exceptions.
    • Clear Exception Visibility: Highlights tax variances at line and header levels for efficient issue resolution.

    Practical Considerations for ServiceNow Customers

    • Ensure the external tax engine is properly configured and integrated via the Source-to-Pay integration framework.
    • Define tolerance thresholds based on your organization's risk appetite to balance accuracy with processing efficiency.
    • Use manual and scheduled tax validations to handle exceptions and maintain tax correctness over invoice lifecycle changes.
    • When upgrading APO versions, run the scheduled job to close open exceptions related to deactivated definitions to maintain system integrity.

    Integrate an external tax engine to validate supplier-provided taxes against calculated from external tax engines resulting in accurate, conforming, straight through processing and improving efficiency.

    The Accounts Payable invoice processing invokes the external tax engine to validate supplier tax (based on ship to, item, service, category, amounts, jurisdiction, exemptions, other tax configuration) against system tax and drive straight through processing for matching outcomes. During invoice data extraction, the tax rate and tax amount will be stored as supplier tax rate and supplier tax amount at both header and invoice line levels. Tax integration is applicable for invoices of type PO, Non-PO and credit memo; supporting automatic, manual, and scheduled tax validation ensuring taxes remain correct even when invoices change or temporary integration issues occur.

    How system tax is calculated

    How system tax is calculated-Accounts Payable Operations captures supplier-declared tax amounts exactly as provided and validates them against independently calculated system tax. Internal tax line breakdowns roll up to system tax only, which is then compared against the supplier-declared amount. If the difference is not within the configured tolerance threshold or if the difference is lower or more than threshold, then tax exception is raised. Roll up logic applies only to system tax, not to supplier-declared tax.

    Example: A supplier sends an invoice with a sales tax amount for each line item. When recording the corresponding liability, the buyer may internally calculate tax and split into State, County, and District tax components. These components are recorded as internal tax lines. The sum of these internal tax lines (roll up to invoice line or header as system tax) is then validated against the supplier tax declared at the invoice line level.

    Tax integration is triggered for invoices:
    • For Non- PO invoices, after the invoice state is changed to accepted state.
    • For PO invoices, after the PO matching state is completed.

    Key capabilities

    • External tax engine integration- Connects to enterprise tax engines using integration framework.
    • Intelligent tax calculation- System validates supplier tax against system tax using invoice fields (based on ship to, item, service, amounts, jurisdiction, exemptions, customer tax configuration).
    • Granular comparison logic-
      • Line-level and Header-level validation- The extracted values are stored as it is and the system compares tax at the invoice line item and header level for maximum accuracy.
      • Configurable tolerance-Define acceptable variance thresholds. The system auto-approves tax when the variance is within the configurable tolerance.
      • Scheduler based re-calculation- The scheduler will automatically reinitiate the tax integration process for invoices with tax status of integration error, or recalculate tax.

    Benefits of Tax Engine integration

    Customers using tax engine integration benefit from:
    • Reduced manual effort – Automatic tax calculation and reconciliation removes the need for manual tax line entry.
    • Improved accuracy – Taxes are calculated using authoritative third‑party tax logic.
    • Stronger conformance – Consistent validation across jurisdictions and invoice types.
    • Faster invoice processing – Higher straight‑through processing rates and fewer exceptions.
    • Clear exception visibility – Over‑tax and under‑tax variances are surfaced at line and header levels.

    Tax calculation framework

    The tax calculation framework is structured as a modular, three-tier architecture to promote scalability, maintainability, and extensibility. The framework seamlessly integrates Accounts Payable Operations and the external Tax engine, enabling automated and coordinated tax computation. The validation logic is applied at:
    • Line‑level and Header-level comparison (primary)- Supplier tax and system tax are compared at the invoice line level and header level for maximum accuracy.
    • Configurable tolerance-Customers can define acceptable variance thresholds. Invoices within tolerance are automatically approved.
    Table 1. Components involved in tax calculation framework
    Components Key functions
    The Accounts Payable Operations serves as entry point for tax calculation. When an invoice is in PO matching or accepted state in the Accounts Payable Operations, the system determines if tax calculation is required or not.
    • If tax calculation is required, then a record is created in the tax staging table [sn_spend_intg_tax_staging], and the tax status is set to in progress. For more information on tax status, see Tax status
    • If tax calculation isn’t required, then the invoice processing continues through the regular exception flow and proceeds to payment.
    The Source-to-Pay integration framework is a processing layer between Accounts Payable Operations and the external tax engine.
    • The vendor defines the data mapping required by the external tax engine.
    • Mapping tables are used during request creation (outbound) and response processing (inbound) between APO attributes and Accounts Payable Operations.
    • Responses from the tax engine are sent back to the staging table.
    • Invoice tax status is updated based on the response.
    • Failed records are processed manually. For more information on the tables, see Configuration tables and prerequisites for Tax integration.
    The external tax engine computes the tax. Calculates the tax and returns the response. The response is processed, tax lines are created automatically for the applicable invoice in Accounts Payable Operations. The system triggers exception engine based on the response from tax engine. Tax exception is raised when supplier tax and system tax mismatch in the invoice. Invoice tax status is set to integration error and Accounts Payable specialist investigates the case manually. If the invoice is modified after last execution (change amounts, add lines or adjust tax codes), then the tax is recalculated. The tax processing is re-initiated. on successful validation, the invoice processing proceeds to payment.

    Tax validation modes

    Tax calculation and validation can be triggered in multiple ways:
    • Automatic (synchronous)-Runs automatically at key invoice processing milestones
    • Manual (on-demand)-AP specialists can trigger tax validation during invoice exception review. This is applicable or accessible from the tax exception
    • Scheduler re-calculation-Background jobs automatically re‑initiate tax validation for invoices that are in progress, or recalculate tax status and integration error status. This verifies taxes stay accurate even if invoice data is updated or external calls fail temporarily.

    Tax integration workflow

    A high level workflow of how tax integration works in Accounts Payable Operations is shown previous.

    Tax integration workflow

    Note:
    If you're upgrading from previous version of APO to latest version, you must execute the scheduled job [APO - close open exception for deactivated exception definition]. This scheduled job updates the status of invoice exceptions to inactive and closes the corresponding invoice exceptions.