class

Polar::Api::CustomerSessions

Inherits Reference < Object

API client for customer_sessions operations

Constants

Log = ::Log.for(self)

Constructors

new(client : Client)

Creates a new CustomerSessions instance

@param client [Client] The Polar API client instance

Source

Instance methods

Create Customer Session

Create a customer session.

Scopes: customer_sessions:write

Endpoint: POST /v1/customer-sessions/

Parameters:

  • body (required): Request body as Polar::Models::CustomerSessionCustomerIDCreate

Returns: Polar::Models::CustomerSession

Raises:

  • ResourceNotFoundError on 404
  • NotPermittedError on 403
  • HTTPValidationError on 422
  • PolarError on other errors
Source