For the complete documentation index, see llms.txt. This page is also available as Markdown.

Validate Account Codes (Budget Check)

The Validate Account Code integration allows Unimarket to request real-time verification of accounting information (such as FOPAL or ledger data), from an external ERP or Finance system during the checkout process. This ensures that the buyer is authorized to use specific accounts, the account combinations are correct, and there is sufficient budget available.

For a breakdown of the different ways this integration can be implemented (stored procedure vs. budget table lookup), see Integration Options for Validate Account Code (Budget Check) Integration.

How it Works

This is a synchronous integration point, meaning the external system must respond while the user is actively waiting in the checkout process. A rapid response time is essential to prevent system timeouts and ensure a smooth user experience.

Request Data

For every line item on a requisition, Unimarket sends the following key data to the ERP for validation:

  • Line Details: Line number, quantity, and product code (SKU).

  • Pricing: Unit price and the total amount (excluding tax).

  • Accounting: The specific account code (individual parts) and any account code splits if applicable.

Response and Results

The external system evaluates the data and responds with one of three statuses for each line item:

Result
Outcome

Valid

The line passes validation. If all lines are valid, the requisition proceeds to checkout normally.

Invalid

The requisition is stopped. The buyer cannot proceed until the accounting information is corrected.

Warning

The requisition remains on the checkout page and displays a message to the user. The user can choose to click checkout again to bypass the warning and continue.

Key Response Requirements

The response from the ERP back to Unimarket must include:

  • Line Number: To identify which item the result applies to.

  • Result Status: Valid, Invalid, or Warning.

  • Account Code: The accounting string being validated.

  • Message: A description (maximum 255 characters) that the buyer will see, such as "Available funds confirmed" or a specific error message.

Technical Documentation

Detailed XML message examples and technical specifications for this integration can be found in Integration Technical Documentation Examples.

Sample Request

Sample Response

Last updated