Tax Engine Integration

  • Release version: Zurich
  • 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 validate supplier-provided taxes against independently calculated taxes from external tax engines. This integration improves accuracy, compliance, and processing efficiency by automating tax validation across various invoice types including PO, Non-PO, and credit memos. It supports automatic, manual, and scheduled validation, ensuring tax correctness even when invoices change or temporary integration issues occur.

    Show full answer Show less

    Key Features

    • External Tax Engine Integration: Connects seamlessly with enterprise tax engines using the Source-to-Pay integration framework for real-time tax validation.
    • Intelligent Tax Calculation: Validates supplier tax based on invoice details such as shipping location, item or service, amounts, jurisdiction, exemptions, and customer tax configurations.
    • Granular Line- and Header-Level Validation: Stores and compares tax amounts at both invoice line and header levels to ensure maximum accuracy.
    • Configurable Tolerance Thresholds: Allows customers to define acceptable variances between supplier and system tax amounts; invoices within tolerance are auto-approved.
    • Scheduler-Based Recalculation: Automatically reinitiates tax validation for invoices with errors or when invoice data changes, maintaining ongoing accuracy.
    • Multiple Validation Modes: Supports synchronous automatic validation during invoice processing, manual validation by AP specialists, and background scheduled validations.
    • Exception Management: Raises tax exceptions when discrepancies exceed configured thresholds, enabling clear visibility and manual investigation.

    How Tax Calculation Works

    Accounts Payable Operations captures supplier-declared tax amounts and compares them against system-calculated tax, which aggregates internal tax line breakdowns (e.g., state, county, district taxes) to a total system tax amount. The system then validates this total against the supplier tax. If the variance exceeds configured thresholds, a tax exception is raised and the invoice may require manual review.

    Tax Calculation Framework

    The framework is modular and scalable, consisting of three key components:

    • Accounts Payable Operations: Entry point that determines if tax calculation is needed, creates staging records, and manages tax status.
    • Source-to-Pay Integration Framework: Handles data mapping and communication between Accounts Payable Operations and the external tax engine, processing inbound and outbound data.
    • External Tax Engine: Performs authoritative tax computations and returns results that are processed back into Accounts Payable Operations for validation and exception handling.

    Benefits for ServiceNow Customers

    • Reduced Manual Effort: Automates tax calculation and reconciliation, eliminating manual tax line entries.
    • Improved Accuracy: Uses authoritative third-party tax logic for consistent and precise tax amounts.
    • Stronger Conformance: Ensures tax compliance across multiple jurisdictions and invoice types.
    • Faster Invoice Processing: Increases straight-through processing rates while reducing exceptions.
    • Clear Exception Visibility: Highlights over-tax and under-tax variances at both line and header levels for easy review.

    Practical Considerations

    For customers upgrading to the latest Accounts Payable Operations version, it is important to run the scheduled job [APO - close open exception for deactivated exception definition] to properly close outdated invoice exceptions and 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.