Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Can't use DELETE method on customers

Lennart Behr   ( User )

Commented 4 years ago

Hello there,

I've lately been working on integrating WooCommerce with Akaunting and I'm at a point where customers are automatically created in Akaunting when they register in WooCommerce. However, I also need to delete customers based.

I thought the API call would follow the same scheme as with POST requests to create customers to I used:
DELETE @ /api/customers/{id}?company_id={company_id}

The response I got was the following:
{
"message": "No query results for model [App\\Models\\Income\\Customer].",
"status_code": 500,
"debug": {...}
}

Has anyone got a solution for this problem or will 2.0 possibly fix their API and release an API blueprint?

Thank you for any help,
L. Behr

Please login or register to leave a response.

Showing 1 to 1 of 1 discussions