POST
/
merchant
/
session
/
new_session
curl --request POST \
  --url https://api.unibee.top/merchant/session/new_session \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "<string>",
  "cancelUrl": "<string>",
  "email": "<string>",
  "externalUserId": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "password": "<string>",
  "phone": "<string>",
  "returnUrl": "<string>"
}'
{
  "code": 123,
  "data": {
    "clientSession": "<string>",
    "clientToken": "<string>",
    "email": "<string>",
    "externalUserId": "<string>",
    "url": "<string>",
    "userId": "<string>"
  },
  "message": "<string>",
  "redirect": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

New session for user portal or web component

email
string
required

Email

externalUserId
string
required

ExternalUserId

address
string

Address

cancelUrl
string

CancelUrl

firstName
string

First Name

lastName
string

Last Name

password
string

Password

phone
string

Phone

returnUrl
string

ReturnUrl

Response

200 - application/json
code
integer
data
object
message
string
redirect
string
requestId
string