17 lines
4.7 KiB
Markdown
17 lines
4.7 KiB
Markdown
# GetOrCreateCustomerParams
|
|
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
| `customer_id` | *Nullable[str]* | :heavy_check_mark: | N/A |
|
|
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Customer's name |
|
|
| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Customer's email address |
|
|
| `fingerprint` | *OptionalNullable[str]* | :heavy_minus_sign: | Unique identifier (eg, serial number) to detect duplicate customers and prevent free trial abuse |
|
|
| `metadata` | Dict[str, *Any*] | :heavy_minus_sign: | Additional metadata for the customer |
|
|
| `stripe_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Stripe customer ID if you already have one |
|
|
| `create_in_stripe` | *Optional[bool]* | :heavy_minus_sign: | Whether to create the customer in Stripe |
|
|
| `auto_enable_plan_id` | *Optional[str]* | :heavy_minus_sign: | The ID of the free plan to auto-enable for the customer |
|
|
| `send_email_receipts` | *Optional[bool]* | :heavy_minus_sign: | Whether to send email receipts to this customer |
|
|
| `expand` | List[[models.CustomerExpand](../models/customerexpand.md)] | :heavy_minus_sign: | Customer expand options | |