Design for the Xero API integration process
Sarah formulated the following design (from the Acceptance criteria section above) for the Xero API integration process:
- Login page: Create a dedicated page featuring the Xero login button
- Accounting app sign-in: The login button opens the accounting app’s sign-in page
- Redirect to custom page: After sign-in, the app redirects to Sarah’s custom redirect page
- Code extraction: On the redirect page, leverage Liquid and JavaScript to extract the authorization code
- Power Automate flow: Utilize a Power Automate flow to construct the API request systematically
- Request building: The request generated by the Power Automate flow includes all necessary data for a secure and comprehensive POST of invoices to the Xero API
This design ensures the seamless flow of authentication, data extraction, and API request construction, aligning with best practices for effective Xero integration within Sarah’s...