Happy Business Starts Here

Zuora Support

[REST] Different response/format when calling GET invoices/accounts/{account-key}


When making a call to "https://rest.zuora.com/v1/transactions/invoices/accounts/{account-key}", it returns a response in a different format. See picture, the left api call shows an expanded version of "InvoiceItems" and "Invoice Files" while the right api call shows a reference.


Screen Shot 2019-12-30 at 3.29.22 PM.png




This has to do with a feature called "Return Invoice Item Reference URL in GET invoices REST".


When this feature is off (default), then the response will show the entire block of information from "InvoiceItems" and "Invoice Files". (see below for illustration) 


Screen Shot 2019-12-30 at 3.45.33 PM.png


However, when ""Return Invoice Item Reference URL in GET invoices REST"." is on, it will only show the reference of the "InvoiceItems" and "Invoice Files" fields. (see picture below for clarity.


Screen Shot 2019-12-30 at 3.48.19 PM.png



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √