Update User Profile
User
Update User Profile
POST
Update User Profile
Endpoint Overview
POSThttps://api.unibee.dev/merchant/user/update
Update User Profile
Authorization
All UniBee Merchant API requests require authentication via API key.| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <your_api_key> |
Content-Type | Yes | application/json (for request body) |
Parameters
Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.Request body
| Name | Type | Required | Description |
|---|---|---|---|
LinkedIn | string | No | |
address | string | No | Billing Address |
city | string | No | city |
companyName | string | No | Company Name |
countryCode | string | No | Country Code |
countryName | string | No | Country Name |
email | string | No | The email of user, either Email or UserId needed |
externalUserId | string | No | ExternalUserId |
facebook | string | No | |
firstName | string | No | First name |
gatewayId | integer | No | GatewayId |
gatewayPaymentType | string | No | Gateway Payment Type |
language | string | No | User Language, en|ru|cn|vi|bp |
lastName | string | No | Last Name |
metadata | object | No | Metadata,Map |
otherSocialInfo | string | No | Other Social Info |
paymentMethodId | string | No | PaymentMethodId of gateway, available for card type gateway, payment automatic will enable if set |
phone | string | No | Phone |
registrationNumber | string | No | RegistrationNumber |
state | string | No | State |
telegram | string | No | Telegram |
tiktok | string | No | Tiktok |
type | integer | No | User type, 1-Individual|2-Business |
userId | integer | No | The id of user, either Email or UserId needed |
vATNumber | string | No | VAT Number |
weChat | string | No | |
whatsApp | string | No | |
zipCode | string | No | zip_code |
Request examples
cURL
Sandbox
Response
Success responses return a JSON envelope withcode, data, message, redirect, and requestId. code 0 indicates success.
| Field | Type | Description |
|---|---|---|
code | integer | Response code. 0 = success |
data | object | Response payload |
data.user | object | |
message | string | Human-readable message |
requestId | string | Request ID for support |
Error handling
| HTTP status | Meaning |
|---|---|
| 400 | Bad request — invalid or missing parameters. Check message in the body. |
| 401 | Unauthorized — missing or invalid API key. |
| 404 | Not found — invalid path or resource. |
| 500 | Server error — retry with backoff. |
code in the response body is non-zero, check message for details. Use requestId when contacting support.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Billing Address
city
Company Name
Country Code
Country Name
The email of user, either Email or UserId needed
ExternalUserId
First name
GatewayId
Gateway Payment Type
User Language, en|ru|cn|vi|bp
Last Name
Metadata,Map
Other Social Info
PaymentMethodId of gateway, available for card type gateway, payment automatic will enable if set
Phone
RegistrationNumber
State
Telegram
Tiktok
User type, 1-Individual|2-Business
The id of user, either Email or UserId needed
VAT Number
zip_code

