0

I'm using the Xero Api to create Invoices and Bills, however when I'm creating a new bills, I would like to have it authorised (awaiting payment), but when I add the status in XML <Status>AUTHORISED</Status>, it create the bill but as a draft.

I've tried to use AUTHORISED or SUBMITTED but it's not working.

Thanks, Luo

Romain Dereux
  • 119
  • 2
  • 5
  • 1
    Can you explain how it's not working? Whats the response status code? Any validation errors returned? – MJMortimer Jun 01 '20 at 02:50
  • Hi, no error and the bill is created. It's just that it's created as a draft. I'm using a put request with cURL in php. curl_error is empty curl_result is null – Romain Dereux Jun 01 '20 at 05:08
  • I'm doing the same (albeit from vb, in JSON format, but apart from that...) and the invoices have "authorised" status when they get there. So in theory it works. Can you edit your question to show a complete XML structure? – droopsnoot Jun 01 '20 at 08:49

0 Answers0