POST
/
merchant
/
session
/
user_sub_update_url
curl --request POST \
  --url https://api.unibee.top/merchant/session/user_sub_update_url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cancelUrl": "<string>",
  "email": "<string>",
  "externalUserId": "<string>",
  "planId": 123,
  "productId": 123,
  "returnUrl": "<string>",
  "userId": 123,
  "vatCountryCode": "<string>"
}'
{
  "code": 123,
  "data": {
    "url": "<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
cancelUrl
string

CancelUrl

email
string

Email, unique, either ExternalUserId&Email or UserId needed

externalUserId
string

ExternalUserId, unique, either ExternalUserId&Email or UserId needed

planId
integer

Id of plan to update

productId
integer

default product will use if productId not specified

returnUrl
string

ReturnUrl

userId
integer

UserId, unique, either ExternalUserId&Email or UserId needed

vatCountryCode
string

Vat Country Code

Response

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