Everest Card — API reference
  • Credit
  • Debit
  • Prepaid
  • Common Methods
  • OAuth2
  • Delivery
Information
Platform
    Authentication
      authorizeposttokenpostrevokepostintrospectpost
    Platform operations
      healthCheckpost
SchemasError codes
powered by Zudoku
OAuth2 Security Token Service
OAuth2 Security Token Service

Authentication

Get a bearer token. Every other call on this portal needs one first.


authorize

POST
https://sandboxpub.cms.dgpays.com/SandBox
/oAuth2/sts/api/authorize

Initiates an OAuth/OpenAuth authorization request and returns the data required to continue the authorization flow. This operation validates the incoming authorization context (e.g., client identity, requested grant/response type, redirect URI, and scope) and, when applicable, issues an authorization code tied to the request. It also supports additional flow parameters such as state for CSRF protection and code_challange / PKCE-related inputs to harden public-client scenarios. On success, the response provides the redirect_uri, code, and state values needed by the client to complete the next step of the flow.

authorize › Headers

evrst-ptrnid
​string

Correlation id for this request. Echo it in your own logs to trace the call through the platform.

Default: x_request_id

authorize › Request Body

AuthorizeRequest
response_type
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

grant_type
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

client_id
​string · optional

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

client_secret
​string · optional

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

redirect_uri
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

scope
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

state
​string · optional

An OAuth2 parameter the client chooses and the server echoes; RFC 6749 sets no length and neither does any column here.

code_challenge
​string · optional

Code Challenge

A PKCE parameter, defined by RFC 7636 rather than by a column here.

code_challenge_method
​string · optional

Code Challenge Method

A PKCE parameter, defined by RFC 7636 rather than by a column here.

action_id
​string · optional

Chosen by the caller and echoed back; no column behind this API stores it.

authorize › Responses

Success

AuthorizeResponse
redirect_uri
​string · optional
code
​string · optional
state
​string · optional
POST/oAuth2/sts/api/authorize
curl https://sandboxpub.cms.dgpays.com/SandBox/oAuth2/sts/api/authorize \ --request POST \ --header 'Content-Type: application/json' \ --header 'evrst-ptrnid: x_request_id' \ --header 'Authorization: Bearer <access_token>' \ --data '{ "response_type": "response_type", "grant_type": "grant_type", "client_id": "client_id", "client_secret": "client_secret", "redirect_uri": "redirect_uri", "scope": "scope", "state": "state", "code_challenge": "code_challenge", "code_challenge_method": "code_challenge_method", "action_id": "action_id" }'
Example Request Body
{ "response_type": "response_type", "grant_type": "grant_type", "client_id": "client_id", "client_secret": "client_secret", "redirect_uri": "redirect_uri", "scope": "scope", "state": "state", "code_challenge": "code_challenge", "code_challenge_method": "code_challenge_method", "action_id": "action_id" }
json
application/json
Example Responses
{ "redirect_uri": "redirect_uri", "code": "code", "state": "state" }
json
application/json

token

POST
https://sandboxpub.cms.dgpays.com/SandBox
/oAuth2/sts/api/token

Exchanges valid credentials or artifacts for OAuth tokens according to the requested grant_type. Depending on the flow, the request can include user credentials, an authorization code, a refresh_token, or an assertion, alongside client_id / client_secret (and optionally code_verifier for PKCE). The service validates the client, verifies the grant-specific inputs, and enforces scope rules before issuing tokens. On success, it returns an access_token, token_type, expires_in, and optionally a refresh_token to enable session continuation without re-authentication.

Part of:

  • Journey 01 · Launching a new card product — step 1, Get an access token

  • Journey 01 · Launching a new card product — step 1, Get an access token

  • Journey 01 · Launching a new card product — step 1, Get an access token

token › Headers

evrst-ptrnid
​string

Correlation id for this request. Echo it in your own logs to trace the call through the platform.

Default: x_request_id

token › Request Body

TokenRequest
grant_type
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

scope
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

username
​string · optional

User Id

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

password
​object · optional

The resource owner's password, for the password grant only. Defined by RFC 6749 rather than by this platform, and ignored by every other grant type.

code
​string · optional

An OAuth2 authorisation code. Its form is the authorisation server's rather than a column's.

redirect_uri
​string · optional

An OAuth2 parameter, defined by RFC 6749 rather than by a column here.

refresh_token
​string · optional

An OAuth2 token, whose form is the authorisation server's rather than a column's.

assertion
​string · optional

An OAuth2 assertion, whose form is the issuing party's rather than a column's.

client_id
​string · optional

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

client_secret
​string · optional

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

code_verifier
​string · optional

A PKCE parameter, defined by RFC 7636 rather than by a column here.

attestation_token
​string · optional

Issued and checked by the attestation service; its form is that service's rather than a column's.

token › Responses

Success

TokenResponse
expires_in
​integer · int32 · required
access_token
​string · optional
token_type
​string · optional
refresh_token
​string · optional
scope
​string · optional
POST/oAuth2/sts/api/token
curl https://sandboxpub.cms.dgpays.com/SandBox/oAuth2/sts/api/token \ --request POST \ --header 'Content-Type: application/json' \ --header 'evrst-ptrnid: x_request_id' \ --data '{ "grant_type": "grant_type", "scope": "scope", "username": "username", "password": {}, "code": "code", "redirect_uri": "redirect_uri", "refresh_token": "refresh_token", "assertion": "assertion", "client_id": "client_id", "client_secret": "client_secret", "code_verifier": "code_verifier", "attestation_token": "attestation_token" }'
Example Request Body
{ "grant_type": "grant_type", "scope": "scope", "username": "username", "password": {}, "code": "code", "redirect_uri": "redirect_uri", "refresh_token": "refresh_token", "assertion": "assertion", "client_id": "client_id", "client_secret": "client_secret", "code_verifier": "code_verifier", "attestation_token": "attestation_token" }
json
application/json
Example Responses
{ "access_token": "access_token", "token_type": "token_type", "expires_in": 0, "refresh_token": "refresh_token", "scope": "scope" }
json
application/json

revoke

POST
https://sandboxpub.cms.dgpays.com/SandBox
/oAuth2/sts/api/revoke

Revoke Token

revoke › Headers

evrst-ptrnid
​string

Correlation id for this request. Echo it in your own logs to trace the call through the platform.

Default: x_request_id

revoke › Request Body

RevocationRequest
token
​string · optional

Token

An OAuth2 token, whose form is the authorisation server's rather than a column's.

token_type_hint
​string · optional

Token Type Hint

An OAuth2 parameter, defined by RFC 7009 rather than by a column here.

client_id
​string · optional

Client Id

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

client_secret
​string · optional

Client Secret

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

revoke › Responses

Success

RevocationResponse
POST/oAuth2/sts/api/revoke
curl https://sandboxpub.cms.dgpays.com/SandBox/oAuth2/sts/api/revoke \ --request POST \ --header 'Content-Type: application/json' \ --header 'evrst-ptrnid: x_request_id' \ --header 'Authorization: Bearer <access_token>' \ --data '{ "token": "token", "token_type_hint": "token_type_hint", "client_id": "client_id", "client_secret": "client_secret" }'
Example Request Body
{ "token": "token", "token_type_hint": "token_type_hint", "client_id": "client_id", "client_secret": "client_secret" }
json
application/json
Example Responses
{}
json
application/json

introspect

POST
https://sandboxpub.cms.dgpays.com/SandBox
/oAuth2/sts/api/introspect

Introspect Token

introspect › Headers

evrst-ptrnid
​string

Correlation id for this request. Echo it in your own logs to trace the call through the platform.

Default: x_request_id

introspect › Request Body

IntrospectionRequest
token
​string · optional

Token

An OAuth2 token, whose form is the authorisation server's rather than a column's.

token_type_hint
​string · optional

Token Type Hint

An OAuth2 parameter, defined by RFC 7009 rather than by a column here.

client_id
​string · optional

Client Id

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

client_secret
​string · optional

Client Secret

An OAuth2 parameter. Its form is the authorisation server's and is defined by RFC 6749 rather than by a column here.

introspect › Responses

Success

IntrospectionResponse
active
​boolean · required
scope
​string · optional
client_id
​string · optional
username
​string · optional
token_type
​string · optional
exp
​integer · int64 · optional
iat
​integer · int64 · optional
jti
​string · optional
iss
​string · optional
POST/oAuth2/sts/api/introspect
curl https://sandboxpub.cms.dgpays.com/SandBox/oAuth2/sts/api/introspect \ --request POST \ --header 'Content-Type: application/json' \ --header 'evrst-ptrnid: x_request_id' \ --header 'Authorization: Bearer <access_token>' \ --data '{ "token": "token", "token_type_hint": "token_type_hint", "client_id": "client_id", "client_secret": "client_secret" }'
Example Request Body
{ "token": "token", "token_type_hint": "token_type_hint", "client_id": "client_id", "client_secret": "client_secret" }
json
application/json
Example Responses
{ "active": true, "scope": "scope", "client_id": "client_id", "username": "username", "token_type": "token_type", "exp": 0, "iat": 0, "jti": "jti", "iss": "iss" }
json
application/json

Platform operations