Authorization token

Request

POST

/oauth2/token

Body

application/x-www-form-urlencoded
{
  "client_id": "example",
  "client_secret": "example"
}

Name

Description

client_id

Type: string

Client ID

Example: example

client_secret

Type: string

secret key

Example: example

Responses

200 OK

OK

Body

application/json
{
  "access_token": "bqehYcfk7Tb2zKRkxQ-IaK9nHyntdYnlpJ7kwTNX3B6mIKPws",
  "expires_in": 120,
  "scope": "vendor_management",
  "token_type": "bearer"
}

Name

Description

access_token

Type: string

The auth token

Example: bqehYcfk7Tb2zKRkxQ-IaK9nHyntdYnlpJ7kwTNX3B6mIKPws

expires_in

Type: integer

Token lifetime

scope

Type: string

Example: vendor_management

token_type

Type: string

Token type

Example: bearer

401 Unauthorized

Authorization error

No longer supported, please use an alternative and newer version.