Success message.
Cancel the last pending operation if the payment has failed.
Works for subscription upgrade operations and not for recurring payment errors.
Success message.
Check if a coupon is valid by its promo code.
Customer-facing code for the coupon (promo code).
Edit the resource allocation for the profiles in an account.
The resource allocation array doesn't need to have an object for each of the account's profiles, as long as the sum of the allocated amounts for the services doesn't exceed the account's service limit.
The resource allocation object for a profile doesn't need to have all the services.
Array with the resource allocation
Success message.
Edit an account's billing information.
Data to be updated in the account's billing information.
Edit an account's payment method.
Token for the new payment method added via Stripe API.
Success or error message.
Edit an account's subscription to change plan, services or add-ons.
Only one of either plan
, services
, or addons
can be in subscription
.
Object with updates to subscription.
Get the resource allocation for all profiles in an account.
Get an account's billing information.
Get the payment history for an account.
The route uses pagination and the lastId
parameter should be the stripe_id
parameter from the last history entry.
Object to configure the amount of entries fetched and the ID of the history entry for pagination.
Array with payment history entries or an empty array when no entries are available.
Get information about the account's payment method credit card, credit balance, and the applied coupon.
Get pricing for plans, services and add-ons.
Get pricing for plans, services and add-ons with proration when applicable.
Get the account subscription information.
Get information for the account subscription schedule for downgrades.
In the response, subscription
reflects how the entire subscription will look
at the end of the billing cycle when the downgrade is applied. If there is a scheduled downgrade
for either plan, services or add-ons, everything is returned and not only the changes.
Get a summary for important information in an account's subscription.
The values returned by this route are cached.
Summary data for a subscription or undefined
when the account does not have a subscription.
Remove an account's payment method from the Stripe subscription.
Only removes the card if the account is on the Free plan or if it has enough credit balance.
Success or error message.
Retry payment for an operation where the payment was unsuccessful.
Works for payment errors in recurring payments or in subscription upgrade operations.
Success message.
Cancel a scheduled downgrade.
If the subscription has no schedule.