Skip to main content
POST
/
oauth
/
clients
/
accesstoken
Get Access Token
curl --request POST \
  --url https://staging-openapi.accountingplus.id/oauth/clients/accesstoken \
  --header 'Content-Type: application/json' \
  --data '{
  "client_id": "thepartner",
  "client_secret": "abcdefghijklmnopqrstuvwxyz"
}'
{
"status": "00",
"message": "Success",
"data": {
"organization_name": "PT. Test",
"client_id": "thepartner",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 172800
}
}

Body

application/json

Client credentials

client_id
string
required
Example:

"thepartner"

client_secret
string
required
Example:

"abcdefghijklmnopqrstuvwxyz"

Response

Access token generated successfully

status
string
Example:

"00"

message
string
Example:

"Success"

data
object