I’m trying to sent an invoice via email through the API.
Unfortunately there isn’t an example call in the documentation, just the fields required, which I believe I have put in place.
Also, can anyone confirm if sending the invoice via email also sets the invoice to sent status automatically?
The following POST goes to api.freeagent.com/v2/invoices/XXXX/send_email
“subject”: “Invoice for”,
“body”: "Hi,\r\n\r\n Please find attached an invoice for a recent Order: 00808179-111120.\r\n \r\n Payment can be made via BACS or on card via the below payment link\r\n \r\n [online_payment_link]\r\n \r\n If you have any problems just get in touch.\r\n \r\n Many Thanks,\r\n \r\n "
I’m getting the error:<?xml version="1.0" encoding="UTF-8"?> Format not recognised. Set accept http header to application/json or application/xml