POST
/
customers
/
authorization
curl --request POST \
  --url https://api.sulu.sh/v0/customers/authorization \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "redirectUrl": "<string>",
  "planId": "<string>",
  "merchantId": "<string>"
}'
{
  "id": "<string>",
  "email": "<string>",
  "merchantId": "<string>",
  "merchantName": "<string>",
  "planId": "<string>",
  "planName": "<string>",
  "redirectUrl": "<string>",
  "status": "pending",
  "expiresAt": "2023-11-07T05:31:56Z",
  "customerId": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required

The email address of the consumer.

redirectUrl
string

The URL to redirect the consumer to after the subscription process is complete.

planId
string

The unique identifier for the plan.

merchantId
string

The unique identifier for the merchant organization.

Response

201
application/json
Authorization session created successfully
id
string
email
string
merchantId
string
merchantName
string
planId
string
planName
string
redirectUrl
string
status
enum<string>
Available options:
pending,
completed,
expired
expiresAt
string
customerId
string
url
string