Permissions: Select the scopes you’ve requested for your application. For a list of recommended scopes, please view this integration within your Paragon dashboard. View dashboard.
Press the purple “Save Changes” button to save your credentials.
Note: Leaving the Client ID and Client Secret blank will use Paragon development keys.
Once your users have connected their Xero account, you can use the Paragon SDK to access the Xero API on behalf of connected users.See the Xero REST API documentation for their full API reference.Any Xero API endpoints can be accessed with the Paragon SDK as shown in this example.
JavaScript
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration// Authenticate the userparagon.authenticate(<ProjectId>, <UserToken>);// Query Paymentsawait paragon.request("xero", "payments", { method: "GET",});
Once your Xero account is connected, you can add steps to perform the following actions:
Get Accounts
Get Contacts
Create Customer
Update Customer
Get Invoices
Create Invoice
Update Invoice
Send Invoice
Get Payments
Create Payments
You can also use the Xero Request step to access any of Xero’s API endpoints without the authentication piece.When creating or updating customers and invoices in Xero, you can reference data from previous steps by typing {{ to invoke the variable menu.
Webhook triggers can be used to run workflows based on events in your users’ Xero account. For example, you might want to trigger a workflow whenever new customers are created in Xero to sync your users’ Xero customers to your application in real-time.
You can find the full list of Webhook Triggers for Xero below: