#wittwerch

1 messages · Page 1 of 1 (latest)

thick cliffBOT
formal tapir
#

There is custom_fields you can put on Invoice to display in its PDF

#

You would want to catch when the Invoice is generated invoice.created then set this field

ebon oxide
#

Thanks for the quick response. I just tried that but I'm getting a "Finalized invoices can't be updated in this way" when I act on the invoice.created. I think in case of an invoice created by a subscription the finalizing happens immdediatly after

#

2023-06-02 07:48:54 --> invoice.created [evt_1NEQr4KCi1W2exx0wI3bjCYo]
2023-06-02 07:48:54 --> invoice.finalized [evt_1NEQr4KCi1W2exx08jFTcMIz]
2023-06-02 07:48:54 --> invoice.paid [evt_1NEQr4KCi1W2exx0Re4GgJme]
2023-06-02 07:48:54 --> invoice.payment_succeeded [evt_1NEQr4KCi1W2exx0HwEh7BAW]

#

I mean the webhook arrives within the same second

formal tapir
#

Ah yes for the first Invoice of the Subscription

ebon oxide
#

Yes it was the one made for the trial. Are the "real" invoices later created within a larger amount of time?

formal tapir
#

yes later Invoice would have 1 hour before finalization