---
sourceDocument: Australia Finance and Supply Chain
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/source-to-pay-operations

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Finance and Supply Chain

ft:clusterId :

    - stpop

bundleId :

    - stpop

workflow :

    - Employee


---

# Rules based engine

# Rules based engine {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
The rule-based engine maps invoice lines to purchase order lines using unit price, delivered unit price, exact description, exact amount, and amount round off.

The digitized invoice in accepted state moves to suspected duplicate state where the AP specialist verifies if the invoice is duplicate or not. When the invoice is confirmed to be not duplicate, the state of the invoice changes to
received. The rules-based engine maps the fields in invoice such as unit price, derived unit price, exact description, exact amount and amount round off with the purchase order lines. If the invoice fields doesn't match with any of the
fields in the purchase order lines, then the invoice state changes to matching error.

**Related concepts**   

* [Invoice ingestion using the AP Invoice API](https://www.servicenow.com/docs/R_1GRSddn5g1zz0f_gKk1A "The AP Invoice API enables bulk import of AP invoices from external systems to Accounts Payable Operations using cXML, JSON, or XML.")
* [Invoice processing](https://www.servicenow.com/docs/aobaMK4tDgajs30~vQL7hw "Invoices generated for purchase orders are processed through automated and manual workflows, managed by Accounts Payable specialists from creation to approval.")
* [Invoice processing cases](https://www.servicenow.com/docs/zPSUVAcdqFXRCUSyYjSC1g "Integrate Accounts Payable Operations integration with Document Intelligence to auto-create invoice cases and verify data accuracy.")
* [Invoice exceptions](https://www.servicenow.com/docs/TUubLhOZ4Vi39YOMAHNJ3w "Invoice exceptions are discrepancies during invoice processing that must be resolved before payment, such as missing data, tax variances, or supplier issues.")
* [Tolerance rules and variances for invoices](https://www.servicenow.com/docs/2QW2B4kDCBZlm6lqOL4isw "Tolerance rules define the permissible variance amount on an invoice to determine if the total exceeds tolerance limits and requires exception handling.")
* [Invoice approvals](https://www.servicenow.com/docs/JT5kljDhHHVlQBT_R0_GbA "Invoice approvals in Accounts Payable Operations route exception-free invoices to approvers using configured rules and track states.")  
**Related tasks**   

* [View invoice documents in the Source-to-Pay Workspace](https://www.servicenow.com/docs/kcoqX~Dlfl4UzifKUHStCA "View invoice documents directly in the Source-to-Pay Workspace using Document Viewer without downloading them.")

