Ask, reply and learn. Join the community of Akaunting.
Hello,
First of all thanks for the Akaunting team, I'm trying to post invoice parameters using the API:
POST to:
http://site.local/api/invoices
Parameters:
{
"customer_id": 1,
"customer_name": "Pizza Brand",
"currency_code": "USD",
"currency_rate": 1,
"invoiced_at": "2020-09-01 12:00:00",
"due_at": "2020-09-10 12:00:00",
"invoice_number": "INV-00003",
"order_number": null,
"notes": null,
"category_id": 3,
"recurring_frequency": "no",
"recurring_interval": 1,
"recurring_count": 0,
"status":"draft",
"amount": 10.00,
"contact_id":1,
"contact_name":"Jone"
}
the result is:
"errors": {
"currency_code": [
"The code is invalid."
]
}
May I know how to solve this issue please
Thanks
5 days without any answer, this reflect to the quality of the project. I'm telling you that because I'm a developer and if my customer asks for something really strong and have a good support I'll look at the community and how it goes.
I think this problem is present with many users, and it is better to face it than ignore it and this is how open source project works.
Thanks
Try to add company_id to request body.
Also you may get 500 error with message Route [api....show] not defined, but invoice will be created. Fix for this error I send to developers.
Mike, It not working for me. cam you please provide me the json body you use for postman
Showing 1 to 5 of 5 discussions