Ask, reply and learn. Join the community of Akaunting.
Hello guys,
I can create an invoice through API by passing json to .../api/invoices. But I can't find a way to delete and update an invoice through API. Please tell me how to do that. Thanks.
Hello Binod,
You should use the DELETE and PATCH methods. It's a resource based RESTful API:
https://laravel.com/docs/5.4/controllers#resource-controllers
Regards
Thanks for your reply.
But I get this error for DELETE and PATCH methods.
"message": "405 Method Not Allowed",
"status_code": 405,
"debug": {
"line": 251,
What should I pass to update and delete?
(to create invoice I sent a json data)
Problem solved.
UPDATE and DELETE works for .../api/invoices/(invoice_id).
Hi how do I get the show invoice function working using the API in postman?
I keep getting the following:
"message": "get_class() expects parameter 1 to be object, null given",
"status_code": 500,
Showing 1 to 5 of 5 discussions