XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
91 stars 65 forks source link

Retrieve "online invoice url" in "GET https://api.xero.com/api.xro/2.0/Invoices" API #207

Closed vishal6121k closed 3 years ago

vishal6121k commented 3 years ago
SidneyAllen commented 3 years ago

@vishal6121k - I'm sorry to say the only way to get the Online Invoice URL generated is by calling the endpoint for each individual invoice.

Alternative is to not use the Online Invoice, instead using the page parameter when getting a list of multiple invoices. This will return 100 invoices with lineitem details. You could create a view in your app to display the invoice details to the user.