#qwertyuiop123-subscriptions

1 messages · Page 1 of 1 (latest)

halcyon hare
#

hello! can you share an invoice id for each of these scenarios that you just mentioned? it'll look like in_123

wet snow
#

Here they are, in_1LZmITLq78NXLTvy9HkIyg8N is a subscription with 100% discount and in_1LZmoGLq78NXLTvyJdtvrzGq is a subscription with a trial period.

#

Obviously the discounted one has a 'discount' element which the trial period one doesn't but ideally there'd be an element we could use to identify the trial period invoice.

halcyon hare
#

hmmm, there isn't a specific parameter that shows if there's a trial. One idea that comes to mind instead is to add metadata to the subscription indicating that it's a trial. When the invoice is created, line items with type=subscription this will reflect the metadata of the subscription that caused the line item to be created - so this could be one method for you to use to identify if it's a trial - https://stripe.com/docs/api/invoices/line_item#invoice_line_item_object-metadata

wet snow
#

thank you so much alex 🙂