POST
stripe_customers_create.py
from charter.packs import stripe
result = await stripe.customers_create.ainvoke({})
Body
| Field | Type | Description |
|---|---|---|
email | string | Customer’s email address. Displayed alongside the customer in the dashboard and useful for searching and tracking. max length 512 |
name | string | The customer’s full name or business name. max length 256 |
description | string | An arbitrary string attached to the customer. Displayed alongside the customer in the dashboard. |
phone | string | The customer’s phone number. max length 20 |
address | Address | The customer’s address. Required if calculating taxes. |
metadata | map of string | Set of key-value pairs attached to the object, for storing additional information in a structured format. |
preferredLocales | string[] | Customer’s preferred languages, ordered by preference. |
taxExempt | TaxExempt | The customer’s tax exemption. One of ‘none’, ‘exempt’, or ‘reverse’. |
balance | integer | An integer amount in the smallest currency unit representing the customer’s starting balance. A negative amount is a credit. Cents, not dollars: $15.00 is 1500, and 15 is a fifteen-cent balance. Multiply a decimal amount by 100. |
paymentMethod | string | The ID of the PaymentMethod to attach to the customer. Accepted only when creating; use the Stripe dashboard or the PaymentMethods API to change one later. |