Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > SDKs >

Create an invoice and add two different addresses

Started by Alfonso de Gaetano -   in SDKs

Hi I have a problem with the use of the Xero Api with the use of php, I would like to know how to add two different addresses to the creation of the invoice, such as Shipping address and Billing address.
By default, the address applied to an invoice will use the postal (POBOX) address of the Contact. However, This can be changed in Xero by applying a custom invoice template. It is not possible to manually override the address on a per-invoice basis.

So to do this through the API, the custom branding theme needs to first be created in Xero and then you can include the BrandingThemeID in the API call to apply this to your invoice.
https://central.xero.com/s/article/Invoice-templates-explained
https://developer.xero.com/documentation/api/accounting/brandingthemes
 

Sally C (Community Manager)