- Keep record of the products they’ve purchased
- Track the features they’ve used
- Track the features they have access to
- Bill them through Stripe for the prices you’ve set
Creating a customer via API
Customers are automatically created when they interact with any core Autumn endpoint (attach, track, check), so explicitly creating them is optional depending on your use case.
Creating a customer via attach, track, or check
Creating a customer via attach, track, or check
Customers are automatically created when they interact with any Autumn’s core endpoints. The most common ways customers get created are:
Via checkout
When a customer goes through the checkout flow to purchase a product, a customer record is automatically created. You can provide customer data like name and email by including it in the/attach endpoint request:Via usage tracking
When tracking feature usage via thetrack endpoint, a customer record will be created if one doesn’t exist:Via feature access checks
Similarly, checking if a customer is allowed to use a feature via the/check endpoint will create a customer record:customers method.
id field is required - this should be your unique identifier for the customer that you’ll use to reference them in future API calls.
An Autumn customer does not map to a Stripe customer by default. A Stripe
customer will only be created when an
attach request is made.Creating a customer via the Autumn dashboard
You can also create a customer via the Autumn dashboard. This is useful if you want to “pre-create” a customer for a user who hasn’t interacted with your application yet.- Navigate to the Customers page
- Click the “Create Customer” button
- Fill in the customer’s details, such as name and email.
Leave theidfield blank, as this will come from your application. - Click “Create Customer”
email to the customer email you provided above.
You can enable a product and set their properties in advance, so that when they do interact with your application, they’re already have the right features available.
This is especially useful for larger or enterprise deals where payment happens separately via invoice.
Customer Properties
Customer ID
This is your unique identifier for the customer. You’ll use this ID in all future API calls to reference this customer. It could be:- Your database ID for the user
- Their email address
- Any other unique identifier in your system
Name and Email
Optional fields to help identify the customer in the Autumn dashboard and on invoices.Fingerprint
An optional unique identifier used to prevent free trial abuse. This could be:- Device ID
- Hardware serial number
- Browser fingerprint
- Any other unique identifier that represents the customer’s device or instance

