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

Response

201
application/json
Authorization session created successfully

The response is of type object.