#mrwarzo_webhooks
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mrwarzo_webhooks, 3 days ago, 5 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1248563937822249091
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
๐ happy to help
if the invoice isn't finalize you can always update it https://docs.stripe.com/api/invoices/update#update_invoice-custom_fields
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hello, thats what I tried with this code :
Invoice::update($invoice->id, [
'custom_fields' => [
[
'name' => 'SIRET',
'value' => $company->getSiret(),
]
]
]);
But my invoice object that i get by the invoice.created webhook and try to update its custom_fields i got an error "Finalized invoices can't be updated in this way". On the stripe dashboard the status of my invois is "open"
I will have to go for today but I'll come back monday at 7am, will i need to create another ticket ?
are you executing this update within the invoice.create webhook event ?