Create a new customer entity. A successful result will return the customer object which includes the id of the customer. In the Admin UI, this is referred to as a customer's Stax Bill ID. This unique ID should be stored in order to quickly recall a customer's information. To store an internal reference id of sorts across platforms, reference is the typical field to use. It is possible to create a blank customer with no information, although it is strongly recommended to use at least some combination of firstName, lastName, companyName, and primaryEmail.
If your account is configured to use more than one currency, you must specify the currency of the customer at the time of creation.
- If no value is set, the account default will be used.
- This value can not be edited after the customer has been created.
- A customer can only have one currency.
More information on customers can be found in the general documentation .
Additional behaviours of note:
- Customers will be created with a 'status' of 'Draft'
- Customers cannot have their currency changed or be deleted once they have transacted or left the
Draft - In order for automated billing to occur, a customer must have a
statusofactiveand at least oneActiveSubscription Object with an included, recurring, Subscription Products Object - In order to create an invoice, at least either a Subscription Object with a Subscription Products Object or a Purchase Object must be created on a customer and moved to a
statusofactiveon a customer with astatusofactive. - A customer will also need a payment method, such as Create Credit Card Payment Method or Create ACH Payment Methodin order to automatically collect as part of automated billing.
