Skip to Content
Menu
This question has been flagged
2308 Views

Hi, 


we have already made invoices true the api, but can we set them as payed true the api?

Avatar
Discard

To set an invoice as paid using the Odoo API, you can follow these steps:

Authenticate and connect to your Odoo instance using the appropriate API authentication method (e.g. XML-RPC, JSON-RPC, or REST API).
Locate the invoice that you want to mark as paid by searching for it in the "account.move" model. You can use the Odoo API's search() method to search for the invoice by its number or other criteria.
Once you have located the invoice, you can update its payment status by calling the write() method on the invoice record. Set the "state" field of the invoice record to "paid". You may also want to set the "payment_date" field to the date of payment, and set the "payment_method_id" field to the ID of the payment method used.

Regards,
Rachel Gomez