POST
/
security
/
apiKeys
/
delete
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/security/apiKeys/delete" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  --data '{
    "merchantAccountNumber": "67485577",
    "clientKey": "abcdefghijklmnopqrstuvwxyz1234",
    "deletedBy": "admin@example.com"
  }'
"API key has been deleted successfully"

Authorizations

Authorization
string
header
required

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

Headers

Accept-Language
string
default:en

Preferred language for the response

Body

application/json

Request payload for deleting a client API key

merchantAccountNumber
integer
required

The unique identifier of the merchant account

Required range: 10000000 <= x <= 99999999
Example:

67485577

clientKey
string
required

The client API key to delete

Example:

"abcdefghijklmnopqrstuvwxyz1234"

deletedBy
string<email>
required

Email address of the user performing the deletion

Example:

"admin@example.com"

Response

200 - application/json

Success - API key deleted successfully

The response is of type string.

Example:

"API key has been deleted successfully"