Avalara Source Code Integration - AV API Call

Release Date: 11/16/21

Version: 8.6 and Above

This article is intended for Elliott Business Software developers.  This API call will allow the programmer to pass a value to indicate which Avalara function is to be performed. The following functions are supported:

Screen-Parameters: AV,GC (Get Company Code)
The GC option will call the QueryCompanies Avalara API. SCREEN-ALPHA-FIELD needs to contain the Avalara Account ID in positions 1 through 30 and the Avalara License Key in positions 31 forward.

CS2111       MOVE "AV,GC" TO SCREEN-PARAMETERS
CS2111       MOVE WS-N39-AVALARA-ACCOUNT-NO TO SCREEN-ALPHA-FIELD
CS2111       MOVE WS-N39-AVALARA-LICENSE-KEY TO
CS2111           SCREEN-ALPHA-FIELD(31:)
CS2111       PERFORM SCREEN-ROUTINE

The Avalara Company Code is returned in SCREEN-ALPHA-FIELD.

Screen-Parameters: AV,TC (Test Connection)
The TC option will call the AvaTaxClient and Ping Avalara APIs. SCREEN-ALPHA-FIELD needs to contain the Avalara Account ID in positions 1 through 30 and the Avalara License Key in positions 31 forward.

CS2111   MOVE "AV,TC" TO SCREEN-PARAMETERS
CS2111   MOVE WS-N39-AVALARA-ACCOUNT-NO TO SCREEN-ALPHA-FIELD
CS2111   MOVE WS-N39-AVALARA-LICENSE-KEY TO
CS2111         SCREEN-ALPHA-FIELD(31:)
CS2111   PERFORM SCREEN-ROUTINE

The result of the connection to the client is returned in SCREEN-LITERAL. The result of the ping is returned in SCREEN-ANSWER.

AV API: Avalara Function Call (8.5)
If the AV API is called from the 8.5 System Manager, this will be an error condition. The user will receive the following error message stating that they must be running version 8.6 to perform this function.

“Error in XXXXXXXX API supported in v8.6 and above. Please report this error to Netcellent: AV,XX”

This error message is added to detect applications that have not been changed to retrieve the Elliott version and stop the user from running the application if running an Elliott version below 8.6. 



Programs Modified: NWSMSCRN
Programs Added: SYAVATAX
CLS

Feedback and Knowledge Base