#taviksha-akar_api

1 messages ยท Page 1 of 1 (latest)

signal hillBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1338493142424490055

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

tight sphinx
#

Can you share the ID of a request you've tried?

signal hillBOT
strange helm
#

req_xeQh8TH8Fp6CMo

long geyser
#

Hey! Taking over for my colleague. Let me catch up.

strange helm
#

Hey can you please check this

#

how to display some text on invoice pdf

#

?

long geyser
#

Have you checked the Invoice PDF ?

strange helm
#

yes

#

it is showing nothing

long geyser
#

What is the expected field ?

strange helm
#

which I have passed in description

strange helm
strange helm
#

I am not creating invoice.

#

The invoice is automatically created by stripe

#

so i cannot pass the invoice create params as I am not calling invocie create api

long geyser
strange helm
#

No, the description is not static, it can vary based on the subscription schedule. It is dynamic text which need to be shown.

long geyser
#

When the invoice is generate you have a grace period of 1h

strange helm
#

No, we finalize the invoice at same time.

long geyser
#

So you shouldn't, you need to update the invoice and add custom fields then finalize it.

#

That's the goal of having the grace period

strange helm
#

But updating a invoice will update the description on that invoice only.

I need to add that descrription on subscription or subscription schedule level. So that, the renewal invoices also show those text in their invoices.

long geyser
#

You want to have a custom field on the invoice PDf right ?

#

If so you can't set it at Subscription level

#

You have two options:

  • Set it at Customer level if it's static
  • Else, you need to set it for each draft invoice generated during the grace period.
strange helm
#

I am not sure of custom fields, I just need to show some dynamic text on the invoices. So I have tried to used "description" field. Can it be set at schedule level ?

long geyser
#

I am not sure of custom fields, I just need to show some dynamic text on the invoices
It should be custom fields yeah.

#

Then use the second option I shared above.

#

Else, you need to set it for each draft invoice generated during the grace period.
๐Ÿ‘†

strange helm
#

this is the invoice

#

I have passed custom field in invoice update api

#

before finalizing it

#

but still it is not displayed in pdf

#

can you please have a look on it

#

?

long geyser
#

Can you share the requestId of the update APi call ?

#

Or at least the requestId where you are passing the custom_fields...