# `PolarExpress.Schemas.SubscriptionCreateCustomer`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/schemas/subscription_create_customer.ex#L2)

SubscriptionCreateCustomer

Create a subscription for an existing customer.

# `t`

```elixir
@type t() :: %PolarExpress.Schemas.SubscriptionCreateCustomer{
  customer_id: String.t() | nil,
  metadata:
    %{
      required(String.t()) =&gt; String.t() | integer() | float() | boolean() | nil
    }
    | nil,
  product_id: String.t() | nil
}
```

* `customer_id` - The ID of the customer to create the subscription for. Format: uuid4.
* `metadata` - Key-value object allowing you to store additional information.

The key must be a string with a maximum length of **40 characters**.
The value must be either:

* A string with a maximum length of **500 characters**
* An integer
* A floating-point number
* A boolean

You can store up to **50 key-value pairs**.
* `product_id` - The ID of the recurring product to subscribe to. Must be a free product, otherwise the customer should go through a checkout flow. Format: uuid4.

# `schema_name`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
