PUT
/
security
/
merchantUsers
/
activate
cURL
curl -X PUT "https://api.onekhusa.com/sandbox/v1/security/merchantUsers/activate" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "X-Organisation-Id: FYH0NTVW0DXK" \
  --header "X-Merchant-Account-Number: 67485577" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 67485577,
    "userId": "4f5c00c2-6d19-4fd5-9f25-989bb1d6e9ef",
    "changedBy": "ops.admin@example.com",
    "reasonId": 101,
    "comments": "Restoring account after security review"
  }'
"User account status has been changed successfully"

Authorizations

Authorization
string
header
required

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

Headers

X-Organisation-Id
string
required

The organization identifier

X-Merchant-Account-Number
string
required

The merchant account number

Accept-Language
string
default:en

Preferred language for the response

Body

application/json

Request payload for activating a merchant user

merchantAccountNumber
integer
required

Merchant account that owns the user

Example:

67485577

userId
string
required

Identifier of the merchant user account to activate

Example:

"4f5c00c2-6d19-4fd5-9f25-989bb1d6e9ef"

changedBy
string
required

Email or identifier of the operator performing the activation

Example:

"ops.admin@example.com"

reasonId
integer | null

Reference ID explaining why the status changed

Example:

101

comments
string | null

Free-form notes to include in the status change audit trail

Example:

"Restoring account after security review"

Response

200 - application/json

Success - Merchant user activated

The response is of type string.

Example:

"User account status has been changed successfully"