POST
/
merchant
/
session
/
new_session
New Checkout 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 hosted checkout or client portal. You can create user and get ClientSession from here, then append it to the checkout link (copied from Admin Portal Plan) as a query parameter, e.g. https://cs.unibee.dev/hosted/checkout?planId=253&env=prod&session=${clientSession}

Response

200 - application/json

The response is of type object.