#soumya
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
if the invoice is 0
please use this thread for your subsequent messages
will it be happening only for trail plans?
or in any other failure do we get it as null ?
will it be happening only for trail plans?
yes that's also possible, since trial will generate an invoice with a 0 amount
How do we differentiate invoice.paid event generated by webhook whether it was a trail plan or paid plan do we have any differentiator?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it has 2 values - subscription create,subscription cycle how does it differential it is a trail plan?
sorry my bad, I misunderstood your question
you need to look at the subscription and see if it's on trial or not
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it shows cancelled here
Can you help me understand the ask?
How do we differentiate invoice.paid event generated by webhook whether it was a trail plan or paid plan do we have any differentiator?
am trying to get the status of subscription it says cancelled it should actually show trailing
Well if a trial the amount_due would be zero and the items would likely have a description indicating a trial
other than this is their any strong differentialtor?
There's no specific field that says it's an invoice for a trial, no
This was suggested - https://stripe.com/docs/api/subscriptions/object#subscription_object-status (trialing)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it is not the proper way ?
Well that field is not on the Invoice object
Suppose you could use invoice.paid event and look up the Subscription separately
the current floe is like this - create subscription using https://api.stripe.com/v1/subscriptions and it generated invoice for both paid and trail plans later we call payinvoice api - for trail plans it says already paid see we need to have a differentiator here to make sure no payment was done for trail plan how do we differenriate to have a generic floe?
Why are you calling that endpoint? I would advise against that
/pay endpoint won't handle any scenarios where 3DS/auth is requested on a payment
We are speaking about apis i want assistance in differentiating for creating stripe subsriptions for plans with trial period and without trail period
Please advise
I understand, but calling the /pay endpoints is not recommended so just wanted to point that out
I think we've already told you all the way you can determine whether an Invoice was for a trial period or not
But equally it wouldn't matter if you weren't calling the /pay endpoint manually
I think we've already told you all the way you can determine whether an Invoice was for a trial period or not - how do we determine am not clear on this ?
Hey! Taking over for my colleague. Let me catch up.
for trail plans it says already paid see we need to have a differentiator
Can you share a sample requestId of this request ? in order to understand what call and on which invoice status you are making exactly ?
You can rely on the amount_due of the invoice (if it's 0), as my colleagues previously mentioned and there is no explicit field on the invoice object that says it's an invoice for a trial or not.