Getnet OAuth2 Token API — Functional Documentation

Overview

This API provides authentication via OAuth2 Client Credentials Flow for the Getnet staging environment. It issues access tokens required to authenticate all subsequent calls to Getnet APIs.

Environment

Endpoint

POST /token — Get Access Token

Generates a JWT access token using client credentials. The token must be included as a Bearer token in the Authorization header of all subsequent API requests.
Content-Type: application/x-www-form-urlencoded

Request Parameters

ParameterTypeRequiredDescription
grant_typestringYesMust be client_credentials
client_idstringYesUnique client identifier provided by Getnet
client_secretstringYesClient secret key provided by Getnet

Responses

CodeDescriptionKey Fields
200Token successfully generatedaccess_token, token_type (Bearer), expires_in (seconds), scope
400Bad request — missing or incorrect parameterserror, error_description
401Invalid credentialserror, error_description
500Internal server errorerror, error_description