Requirements of Xero Setup
You must have an existing, active Xero account setup to log into Xero before proceeding.
ValuePRO does not have any fields to store your Xero credentials. You will need to perform some integration steps yourself. After setup is complete, the Xero integration will direct you to a special Xero page and prompt you to log in with your Xero credentials.
1. Create Xero Developer App
Go to https://developer.xero.com/ and log in with your Xero credentials
-
Create a new app
-
Select ‘Standard Web App’ and set the redirect URI to:
https://[valuepro_domain]/XeroTokenGenerator.asp
-
In the Configuration tab, note down your Client ID and Client Secret
2. Configure ValuePro Settings
Access your ValuePro Settings page
-
Set "Accounting System" to "Xero"
Configure these settings in your application's Settings page:
· Xero Client Id: Your Xero app's Client ID
· Xero Client Secret: Your Xero app's Client Secret
· Xero Access URL: https://login.xero.com/identity/connect/authorize
· Xero Exchange URL: https://identity.xero.com/connect/token
· Xero Authorised Tenant URL: https://api.xero.com/connections
· Xero Redirect URI: Your application's callback URL (e.g., https://[valuepro_domain]/XeroTokenGenerator.asp)
· Xero State Code: A unique state code for security
· Xero API Sales Account Code: Default "200" (or your preferred sales account)
· Xero API Invoice Due Date: Default "14" (days)
· Xero API HasTax: "true" or "false" depending on your tax requirements
· Xero Invoice Number Set to Job Number: "yes" or "no"
· Xero Item Code Field: Field name to use for item codes (optional)
· GST: Your GST rate (e.g., "0.10" for 10%)
· Default Country: "Australia" or "New Zealand" (affects tax type)
Save the settings
3. Generate Access Token
-
In ValuePro Settings, click the "Xero Token Generator" button next to the Accounting System setting
This will open a popup window that handles authentication
Follow the Xero login process
-
Grant permissions to your application
The system will automatically store the refresh token and tenant ID
4. Test Integration
Create a test invoice in your application
-
Use the Xero sync functionality to send the invoice to Xero
In the job card, set the 'Invoice Date' to any date.
Check the 'Job History' tab to see if an invoice was created
Check your Xero account to verify the invoice was created