#mrwarzo_webhooks

1 messages ¡ Page 1 of 1 (latest)

zinc finchBOT
crimson salmonBOT
#

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.

zinc finchBOT
#

👋 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/1249597445202247720

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

strong minnow
#

Hi there, you can listen to invoice.created and attach your custom metadata to the invoice object when it's still in draft mode.

tepid zinc
#

Hello, I tried to use invoice.created, but when i try to update the invoice object I got a 400 error like this :

#

this code throw this error :

         Invoice::update($invoice->id, [
            'custom_fields' => [
                [
                    'name' => 'SIRET',
                    'value' => $company->getSiret(),
                ]
            ]
        ]);
strong minnow
tepid zinc
#

Hi, here is the request id :
req_H6xySIlbYywKpF

strong minnow
#

Thanks for the ID

#

This invoice was created from a subscrition mode checkout session, and that's why it was finalized immediately after creation.

tepid zinc
strong minnow
#

No you are not, metadata isn't visible to customers/

tepid zinc
#

But I need to show the SIRET number on the invoice for some clients, how can I create my invoices with this number on the invoice ?

strong minnow
#

I'm afraid it's not possible for the first invoice because it's alwasy finalized immediately, but you can set the custom_fields on the subsequent invoices that the subscription generates.

tepid zinc
#

Okay I will see to deal with this, I just have a question about templates from Billing Scale, can this be used to add custom_fields on each invoices for on client ?

strong minnow
#

No I don't think so. But custom template allows you to set a default footer and description.

tepid zinc
#

Okay thank you, I think I just will prevent this rare type of client to subscribe by himself and we will manage them by hand