Closed xavierhb closed 2 years ago
We don't support manually setting the invoice_status_id field, it's set by the app when the invoice is sent. We'll add this to the API in our next release and then to the SDK..
Here's an example request: curl -X PUT ninja.dev/api/v1/invoices/1?action=mark_sent -H "X-Ninja-Token: TOKEN"
Thanks @hillelcoren. Any estimated time/version when it will be done?
Sorry, we aren't able to provide ETAs for changes.
Hello When i'm trying that, i'm getting: "error": "Action [mark_sent] is not supported" Done with curl in PHP
Are you using the latest version of the app?
I'm trying to call this on the hosted one, not the local one.
We deployed a new version this morning, please try again.
Found another way though.. Just setting the $invoice->paid = AMOUNT, and then it's the same.
Hi I have the same issue, i can update publicnotes but i cannot change the status_id of the invoice How can we do this ?
The status id is set automatically, for example to set the status to paid you'd need to create a payment.
Hi! I've been trying to update the default invoice status (from draft to any other status) but can't seem the way to make it work.
This is the code:
public_notes
field is updated butinvoice_status_id
andbalance
remains the same.@hillelcoren Is there any documented way to update the invoice status and balance using the API?