Replaces Upcoming Invoice API methods with the Create Preview Invoice APIBreaking changes
What’s new
We’re removing the GET /v1/invoices/upcoming API in favor of the Create Preview Invoice API.
Additionally, you can no longer preview the next invoice for a customer across all their subscriptions on the Create Preview Invoice API.
Why is this a breaking change?
- The Upcoming Invoice API methods are no longer available.
- You must pass specific subscription details (
subscription,subscription_,details. items schedule,schedule_, ordetails. phases invoice_) along with theitems customerparameter to the Create Preview Invoice API.
Impact
Migrate your integration from GET /v1/invoices/upcoming or GET /v1/invoices/upcoming/lines API methods To use the Create Preview Invoice API. It offers equivalent functionality and parameters.