# `Polarex.CustomerSessions`
[🔗](https://github.com/giusdp/polarex/blob/main/lib/polarex/operations/customer_sessions.ex#L1)

Provides API endpoint related to customer sessions

# `customer_sessions_create`

```elixir
@spec customer_sessions_create(
  body ::
    Polarex.CustomerSessionCustomerExternalIDCreate.t()
    | Polarex.CustomerSessionCustomerIDCreate.t(),
  opts :: keyword()
) ::
  {:ok, Polarex.CustomerSession.t()} | {:error, Polarex.HTTPValidationError.t()}
```

Create Customer Session

Create a customer session.

For organizations with `member_model_enabled`, this will automatically
create a member session for the owner member of the customer.

**Scopes**: `customer_sessions:write`

## Request Body

**Content Types**: `application/json`

---

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