-3

We would like to post / create an invoice for a non existing contact. https://developer.xero.com/documentation/api/invoices#post

Can you create instant an invoice for a new contact. So if you don't have the contactID value? If this is possible how to you need add the name in this same post?

Best, Derk

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
Derk
  • 1

1 Answers1

0

You can create a contact on-the-fly by POSTing an invoice; you need to supply (at least) the contact name field, and exclude the ContactID field.

You can use the previewer application to try this out - go here, log in with your Xero details, and click "Insert Minimum Xml":

https://app.xero.com/Preview/invoices/POST

rustyskates
  • 856
  • 4
  • 10