customer-sessions
public

Create Customer Session

Changed on

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

post/v1/customer-sessions/

Request

  • Base URL
    https://api.polar.sh
  • URL
    https://api.polar.sh/v1/customer-sessions/
  • Auth
    • OpenID Connect (/.well-known/openid-configuration, scopes: customer_sessions:write)
    • or HTTP bearer
    • or HTTP bearer

Request body

OR

Example request

{
  "return_url": "https://example.com/account"
}

Response

Customer session created.

created_atstring date-time required

Creation timestamp of the object.

modified_atstring date-time nullable required

Last modification timestamp of the object.

idstring uuid4 required

The ID of the object.

tokenstring required
expires_atstring date-time required
return_urlstring nullable required
customer_portal_urlstring required
customer_idstring uuid4 required
customerCustomer required(unresolved $ref)

Changes

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status