Skip to main content
POST
/
api
/
v1
/
merchant
/
token
/
grant
Grant merchant token
curl --request POST \
  --url https://payments.oaknetwork.org/api/v1/merchant/token/grant \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_id": "app_abc123",
  "client_secret": "sk_live_xyz789",
  "grant_type": "client_credentials"
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "token_type": "Bearer",
  "expires_in": 3600000
}

Body

application/json
client_id
string
required

App ID from merchant creation

client_secret
string
required

Secret key (shown only at creation)

grant_type
enum<string>
required
Available options:
client_credentials

Response

Token granted

access_token
string
required

JWT access token for merchant API calls

token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required

Token expiry time in milliseconds