Ojire Payment Gateway
  1. Auth
Ojire Payment Gateway
  • Registrasi SNAP di OJIRE Payment Gateway
  • Otentikasi API
    • Public Key dan Private Key
    • Bearer Token
    • Signature
  • Auth
    • Get Token API
      POST
  • Virtual Account
    • Create VA
      POST
    • Update VA
      PUT
    • Inquiry VA
      POST
    • Delete VA
      DELETE
    • Callback VA
      POST
  • QRIS
    • Generate QR MPM
      POST
  • Payment Link
    • Create Payment Link
      POST
    • Inquiry Payment Link
      POST
    • Method Payment Link
      POST
  • Account
  1. Auth

Get Token API

Developing
SANDBOX
https://dev.your-api-server.com
SANDBOX
https://dev.your-api-server.com
POST
https://dev.your-api-server.com
/v1.0/access-token/b2b
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/v1.0/access-token/b2b' \
--header 'X-TIMESTAMP: 2022-09-16T13:00:00+07:00' \
--header 'X-SIGNATURE;' \
--header 'X-CLIENT-KEY: OPGXXXXXXXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
    "grantType": "client_credentials"
}'
Response Response Example
200 - Success
{
    "responseCode": "2007300",
    "responseMessage": "Successful",
    "accessToken": "ZGMyNDA3NWQtNmM4Ny00NGNiLTQ2NTAtMDhkYWMxNTAzNzY0",
    "tokenType": "Bearer",
    "expiresIn": "900"
}

Request

Header Params
X-TIMESTAMP
string 
required
ISO-8601
Example:
2022-09-16T13:00:00+07:00
X-SIGNATURE
string 
required
Pemeriksaan Non-Repudiasi & Integritas X-Signature dengan algoritma asimetris.
Formula:
stringToSign = Client Key + “|” + Timestamp
signature = SHA256withRSA(Private_Key, stringToSign)
X-CLIENT-KEY
string 
required
Id Proyek disediakan oleh OJIRE Payment Gateway.
Example:
OPGXXXXXXXXX
Body Params application/json
grantType
string 
required
Examples

Responses

🟢200Success
application/json
Body
responseCode
string 
required
responseMessage
string 
required
accessToken
string 
required
tokenType
string 
required
expiresIn
string 
required
🟠400Invalid input
Previous
Signature
Next
Create VA