Get OAuth2 token

​

Get an OAuth2 access token via Client Credentials flow

Headers

  • Optional client-generated UUID used to correlate this request with support and logs.

Body·

required
application/json

What the client sends (V1 shape).

  • Client ID of the API key issued for this environment.

  • Client secret of the API key issued for this environment.

  • The grant_type value.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/oauth/token
curl https://ar.jomeinvoice.my/oauth/token \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "client_id",
  "client_secret": "client_secret",
  "grant_type": "client_credentials"
}'
{
  "access_token": "...",
  "expires_in": 900,
  "token_type": "Bearer"
}