Get OAuth2 token
Get an OAuth2 access token via Client Credentials flow
Headers
- Type: stringFormat: uuidX
- Request - I D Optional client-generated UUID used to correlate this request with support and logs.
Body·
required
application/json
What the client sends (V1 shape).
- Type: stringclient
_id requiredClient ID of the API key issued for this environment.
- Type: stringclient
_secret requiredClient secret of the API key issued for this environment.
- Type: stringgrant
_type The
grant_typevalue.
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"
}