Global API
Request
Online Invoice
1min
you can retrieve the online invoice url by passing the invoice id in the request you cannot retrieve an online invoice url for draft invoices you can find invoice id in the additional information section on the breadwinner invoice page request // create a map to store all the data of a invoice map\<string, object> invoicefiltersmap = new map\<string, object>(); invoicefiltersmap put('ids', 'b97f3dbb 04f5 4cb5 843d 32305c381cf1'); // initializing the request data to be passed map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'readonlineinvoiceurl'); reqobj put('queryparameters', invoicefiltersmap); //required, if xero multi org is enabled in breadwinner reqobj put('xeroorgid', '!aa00tm'); // placing a request to breadwinner global api map\<string, object> respmap = bread winner breadwinnerxeroapi call(reqobj); system debug(respmap); response "onlineinvoices" \[ { "onlineinvoiceurl" "https //in xero com/anvr9xanjkrdapfus8nxasxapav3gu4upkmt23hj" } ]