IHELA OFFICIAL DOCS
  1. Basics
IHELA OFFICIAL DOCS
  • iHela Ryanje Official Docs
  • Merchant Services
    • Introduction
    • Basics
      • oAuth2 Authentication
        POST
      • Cashin Payment banks
        GET
      • Cashout Payment banks
        GET
      • Account Lookup
        GET
    • Bills Payment
      • Bills operations flow
      • Bills Init
      • Bill Status Check
      • Account Cashin
  • Banking Services
    • Introduction
    • Ping
      GET
    • Token Refresh
      POST
    • Token request
      POST
    • Account Lookup
      POST
    • Account Balance
      POST
    • Statement
      GET
    • Withdrawal
      POST
    • Deposit
      POST
    • Transaction Status
      POST
    • Transaction fees
      POST
  • Agent Services
    • Introduction
    • Ping
      GET
    • Token Refresh
      POST
    • Token request
      POST
    • Account Lookup
      POST
    • Deposit
      POST
    • Withdrawal Validation
      POST
    • Operation Lookup
      POST
    • Transaction Status
      POST
  1. Basics

oAuth2 Authentication

Testing
POST
/oAuth2/token/
Last modified:2025-06-17 12:08:02
NB : This endpoint only accepts multipart/form-data as request body Content-Type header.
Make sure you send the request as form, adding the grant_type parameter with value client_credentials.
The successful response body is a JSON object.

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params multipart/form-data
grant_type
string 
optional
Example:
client_credentials

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:8081/oAuth2/token/' \
--header 'Authorization: Basic Og==' \
--form 'grant_type="client_credentials"'

Responses

🟢200OK
application/json
Body
access_token
string 
required
expires_in
integer 
required
token_type
string 
required
scope
string 
required
Example
{
    "access_token": "wCF4SEwaXrVdXqGsWlJEMPGylaSXzD",
    "expires_in": 36000,
    "token_type": "Bearer",
    "scope": "read user bank pay bill"
}
Modified at 2025-06-17 12:08:02
Previous
Introduction
Next
Cashin Payment banks
Built with