#Ji_net
1 messages ยท Page 1 of 1 (latest)
Hi ๐ we have the below function that is used for updating Invoices, but some fields are locked once an Invoice is finalized:
https://stripe.com/docs/api/invoices/update
Did you try to use that approach and run into errors?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes I tried to update the description and I get this error:
Finalized invoices can't be updated in this way
req id: req_PXY0JyiaxwsweH
Gotcha. So there are some other fields that you can try to use, depending on what you're trying to use this information for. Our metadata parameter is a good option for storing data that is important to you and your processes in a key-value pair structure on Stripe objects.
https://stripe.com/docs/api/metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see, so we cannot update fields of a finalized invoice (except the metadata), right!
I don't recall off-hand exactly which fields continue to be editable after finalization, but a lot of them do get locked down.