Upcoming Invoice

426 views
Skip to first unread message

Pinky

unread,
Jul 7, 2015, 7:57:31 AM7/7/15
to api-d...@lists.stripe.com
Hi,


I am in Trial period and I want to fetch the upcoming invoice to show the customer how much he will be charged for next billing. I tried using Invoice.upcomingInvoice(params), but getting the following error:

com.stripe.exception.InvalidRequestException: Nothing to invoice for customer

Is there any other way to proceed?

Thanks in advance.

Remi J.

unread,
Jul 7, 2015, 8:04:37 AM7/7/15
to api-d...@lists.stripe.com
Hey,

Usually, it means that this customer does not have any active
subscription at the moment. I'd say that you're passing the wrong
customer id (cus_XXX) in the `customer` parameter and you should make
sure that this customer has an active subscription if you want to
retrieve their upcoming invoice.

Also for that type of questions it's better to contact our support
team directly. Simply log into the dashboard and then contact us from
our contact form here: https://support.stripe.com/email

All the best,
Remi
> --
> You received this message because you are subscribed to the Google Groups
> "Stripe API Discussion" group.
> To post to this group, send email to api-d...@lists.stripe.com.
> Visit this group at
> http://groups.google.com/a/lists.stripe.com/group/api-discuss/.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages