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>"
}
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}
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>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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}
The response is of type object
.