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 Token, Where accessToken is the access token used to authenticate the request.

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"