#shubham_29707

1 messages · Page 1 of 1 (latest)

worthy mortarBOT
cobalt zinc
#

Did you add the description before or after the first invoice was created?

loud dagger
#

i tried after invoice was created by subscription
i am not able to add description before

#

i need to add memo in invoice during creating subscription but it created and finalised automatic so i cannot update

#

@cobalt zinc

cobalt zinc
#

Thanks for waiting! Discord is busy now and will take time to respond

loud dagger
#

sure

worthy mortarBOT
loud dagger
#

req_uzxVKJHzbWdX2c
this is the request id

raven light
#

I'm taking over this thread

#

Hi there, so you want to set a description on the invoices genreated by a subscription?

loud dagger
#

yes

raven light
loud dagger
#

but for automatic charged subscription it will finalised invoice very fast so can i update ?

raven light
#

Yes you can update

loud dagger
#

ok thank you i am trying

#

@raven light
i am getting error Finalized invoices can't be updated in this way
it did not wait in event invoice.created

raven light
loud dagger
#

sure this is the request id
req_JGV8wubrvt36hX

#

this request id of update invoice api
req_mbtlmh4Eng9pRR

raven light
#

Did you update the description while handling invoice.created events?

loud dagger
#

yes

#

i have created subscription
after that in webhook event invoice.created i have called a function in which i am updating description but that update api called after invoice.finalized

raven light
#

Ah right, the first invoice will be finalized immediately, so you can't update it while handling invoice.created, but you can update the subsequent invoices.

loud dagger
#

then for 1st invoice how could i add description in invoice?

raven light
#

Create their subscription with trial_end set a couple of seconds into the future. The subscription will first generate a $0 invoice, and once the trial is over a non-zero invoice will be created with a one hour draft period. The initial status of this subscription will be trialing and will transition to either active or past_due depending on the payment outcome.