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.

Sally C (Community Manager)