Get or create a customer
get_or_create_customerMUTATES Autumn billing data — fetches a customer by id, creating them if they do not exist. Autumn API: POST /v1/customers.get_or_create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Customer's name. | |
| No | Customer's email address. | ||
| expand | No | Related data to expand, e.g. invoices, entities, subscriptions.plan, purchases.plan, balances.feature. | |
| currency | No | Currency to bill this customer in (e.g. usd, eur). | |
| metadata | No | Arbitrary key/value metadata for the customer. | |
| stripe_id | No | Existing Stripe customer id, if any. | |
| customer_id | Yes | Your unique identifier for the customer (null to create an anonymous customer). | |
| fingerprint | No | Unique identifier to detect duplicate customers / prevent free-trial abuse. | |
| create_in_stripe | No | Whether to create the customer in Stripe. |