GET
/
security
/
apiKeys
/
generate
cURL
curl -X GET "https://api.onekhusa.com/sandbox/v1/security/apiKeys/generate?merchantAccountNumber=35253486" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "accept: application/json" \
  --header "X-Organisation-Id: FYH0NTVW0DXK" \
  --header "X-Merchant-Account-Number: 35253486" \
  --header "Accept-Language: en"
{
  "key": "abcdefghijklmnopqrstuvwxyz1234",
  "secret": "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789012345"
}

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

Query Parameters

merchantAccountNumber
integer
required

The unique identifier of the merchant account

Response

200 - application/json

Success - API key and secret pair generated

Response containing the generated API key and secret pair

key
string
required

The generated client API key (30 characters)

Example:

"abcdefghijklmnopqrstuvwxyz1234"

secret
string
required

The generated client API secret (45 characters)

Example:

"ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789012345"