Route Intacct API requests to the right workflow

API toolRecipe ToolsDeveloper ToolAPI IntegrationData ParserMarketingUtilitiesDatabase

What it does

When someone makes an API request to this endpoint, this automation reads the request type and routes it to the correct Intacct workflow. It retrieves credentials from a lookup table and returns the result to the caller.

Who it's for

Finance and accounting teams who need to integrate Intacct operations into their systems without building custom API logic.

How teams use this

Get a session ID from Intacct

Route a get_connexa_siteid request through the endpoint, retrieve credentials from the lookup table, and return the ID to the caller so they can make follow-up Intacct calls.

Fetch account balances on demand

Send a get_accountbalances request through the endpoint, which retrieves credentials and calls the balance query workflow, then returns the balances to the system that made the request.

Add a new Intacct operation type

Extend the routing logic to include a third operation type by adding a new IF condition in step 3 and linking it to a different workflow. The endpoint structure stays the same.

Monitor API calls for errors

Add error monitoring to the workflow calls so failed requests are logged and the caller receives an error message instead of a silent failure. Include an error handler on each workflow call.

How it works

  1. Receive the API request. An API request arrives with the Intacct operation type and company ID. The endpoint accepts the XML payload from the caller in real time.
  2. Fetch credentials by company. Search the Credentials lookup table for the company ID to retrieve the API credentials needed for the Intacct call.
  3. Route to the matching workflow. Check the request type and call the appropriate workflow. For get_connexa_siteid, call cr_akuna_Intacct_getsessionid. For get_accountbalances, call rf_connexia_readbyquery_connexasiteid.
  4. Return the result to the caller. Send the response back to the API request so the caller receives the Intacct data or confirmation.