Problem creating invoice

Hello!

This morning I’m seeing these errors trying to create a new invoice: “comparison of Date with String failed”. The request body looks like this:

{
  "invoice": {
    "dated_on":"2020-07-25",
    "payment_terms_in_days":0,
    "contact":"https://api.freeagent.com/v2/contacts/1234567",
    "currency":"GBP",
    "invoice_items":[
      {
        "description":"Blah blah",
        "quantity":1,
        "price":595.0,
        "category":"https://api.freeagent.com/v2/categories/001"
      }
    ],
    "reference":"123"
  }
}

The code which generated the request hasn’t changed recently. Has anything changed at FreeAgent’s end?

Many thanks in advance!

Yours,
Andrew Stewart

Hi Andrew,

Thanks for flagging this, and for providing some additional details through a private message earlier – just posting here as well for public visibility to confirm that the issue with creating invoices for a handful of VAT Deregistered companies has been identified and fixed.

Best wishes,

Ewa