When I try to create a bill with a POST request to /v2/bills
and a body like this:
{
"bill": {
"contact": "https://api.freeagent.com/v2/contacts/123",
"reference": "Joe Bloggs",
"dated_on": "2022-9-27",
"due_on": "2022-9-27",
"currency": "gbp",
"bill_items": [
{
"category": "https://api.freeagent.com/v2/categories/456",
"total_value": "400.0"
}
]
}
}
I receive a 500 response with an empty body.
If the currency is changed to uppercase, it works fine.
My expectation is one of these behavious:
- the request should succeed
- the response should be 400 with a helpful error message
FYI, I noticed that the POST /v2/invoices
request does accept lowercase currency.
Many thanks!