PUT
/
security
/
apiKeys
/
activate
cURL
curl -X PUT "https://api.onekhusa.com/sandbox/v1/security/apiKeys/activate" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "X-Organisation-Id: FYH0NTVW0DXK" \
  --header "X-Merchant-Account-Number: 35253486" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 67485577,
    "clientKey": "abcdefghijklmnopqrstuvwxyz1234",
    "changedBy": "admin@example.com"
  }'
"API key has been activated 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 client API key

merchantAccountNumber
integer
required

The merchant account that owns the API key

Example:

67485577

clientKey
string
required

The client API key value to activate

Example:

"abcdefghijklmnopqrstuvwxyz1234"

changedBy
string
required

Email or identifier of the operator performing the activation

Example:

"admin@example.com"

Response

200 - application/json

Success - API key status has been changed successfully

The response is of type string.

Example:

"API key has been activated successfully"