Create a new account
Create a new billing account for your user that you can then collect payment from our push events to.
If you leave off any Stripe information on the account, Fermata will create a Stripe customer ID for them.
You can pass a credit card token to add a payment method to that account.
If you already created a Stripe customer for them, then pass in the ID and we will attach to it.
We can generate a page to collect credit card information and bill them for the given plan
if you specify the enable_card_collector
option
Authorizations
To authenticate against the API, use HTTP Basic Authentication with your customer ID as the username and API key as the password.
Path Parameters
Body
Generate a URL that can be used to attach payment method to account. This URL will come back in the response
Pass in anything you want here. You can use this to tie an account back to an internal ID or track other data
Attach account to a plan. This will create all appropriate treasury balances for that plan on the account and start billing them for the plan immediately.
If the plan does have a charge, then the account must have payment information or the call will fail.
If you call with enable_card_collector
then the plan
won't be attached until the user fills out their payment information on the form.
If the plan supports variable billing where you can change the amount of a given balance which changes the amount billed, then you can use this object to specify what those amounts are.
Example:
"plan_variable_amounts": {
"credits": 100,
"seats": 5
},
If a Stripe customer ID already exists for this account, pass it in here, otherwise we'll make one.
Response
Accounts are the customers of Companies. They are what are actually generating events and being billed