Skip to main content
POST
Create a customer portal session

Authorizations

Authorization
string
header
default:easner_sk_test_…
required

A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization: Bearer. Each key has one business, one mode and fixed scopes. Transfer routes also accept a transfer's easner_ta_… secret for the customer.

Body

application/json
customer
string

A checkout customer id (UUID). Send this or customer_email.

customer_email
string<email>

The customer's email. Send this or customer.

return_url
string<uri>

Where the customer goes back to. Must be on an allowed website.

Response

The portal session.

object
any
required
url
string<uri>
required

A signed link valid for one hour.

customer
string<uuid>
required
return_url
string<uri> | null
required
expires_at
string<date-time>
required
livemode
boolean
required