Description Usage Arguments Details Value See Also
Create a customer
1 2 3 4 |
idempotency |
A random string to ensure no repeat charges |
account_balance |
Integer amount in pence |
coupon |
A discount on recurring charges |
description |
Arbitary string |
email |
customer's email address |
metadata |
A named list |
plan |
ID of the plan to subscribe customer to |
quantity |
Quantity to apply to subscription. Needs plan. |
shipping |
Optional dictionary |
source |
A token from get_token |
tax_percent |
A positive decimal. Percentage added as tax. |
trial_end |
Unix timestamp when trial period ends. Needs plan. |
Setting account_balance
to negative means the customer will have a credit.
A positive amount means it will be added to the next invoice.
description, email, metadata
will be set to empty if you POST an empty value.
List object
Other customers: delete_customer
,
get_customer
, list_customers
,
update_customer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.