Islamic Payment Gateway
  1. Authentication
Islamic Payment Gateway
  • Passive Client API
    • Inquiry
      POST
    • Payment
      POST
    • Reversal
      POST
    • Check Status
      POST
  • Active Client API
    • Bill
      • Create New Bill
      • Get Bill List
      • Get Bill Information
      • Revoke Bill
      • Get Bill Payments
      • Fake/Mock Payment & Reversal
    • Payment
      • Get Payment List
    • Account
      • Get Account Mutations
    • Institution
      • Institution Account List
      • Institution List
      • Institution Detail
    • Webhook
      • Webhook Call
  • Payment Channel API
    • Inquiry
      POST
    • Payment
      POST
    • Reversal
      POST
  • Authentication
    • OAuth 2.0
      POST
    • Signature
      VIEW
  1. Authentication

OAuth 2.0

POST
/oauth/token
Get AccessToken to gain access to the Islamic Pay resources

Request

Body Params application/json
grant_type
string 
required
Default:
client_credentials
client_id
string 
required
Example:
95f3cc16-8f8b-4141-b52f-7502bdde05bb
client_secret
string 
required
Example:
PhI5Ud84ITNlZxMSVyyqUaMSbEyjGWss4mYuUi9y
scope
string 
required
Default:
*
Example
{
    "grant_type": "client_credentials",
    "client_id": "95f3cc16-8f8b-4141-b52f-7502bdde05bb",
    "client_secret": "PhI5Ud84ITNlZxMSVyyqUaMSbEyjGWss4mYuUi9y",
    "scope": "*"
}

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 '/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "grant_type": "client_credentials",
    "client_id": "95f3cc16-8f8b-4141-b52f-7502bdde05bb",
    "client_secret": "PhI5Ud84ITNlZxMSVyyqUaMSbEyjGWss4mYuUi9y",
    "scope": "*"
}'

Responses

🟢200OK
application/json
Body
token_type
string 
optional
Default:
Bearer
expires_in
string 
optional
Example:
49740
access_token
string 
optional
Example:
eyJ0eXAiOiJKV1QiLCJhbG
Example
{
    "token_type": "Bearer",
    "expires_in": "49740",
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbG"
}
🟠401401
Previous
Authentication
Next
Signature
Built with