Ayolinx-Openapi
🇬🇧English
  • 🇬🇧English
  • 🇨🇳中文
  1. APIS Need Merchant To Provide
Ayolinx-Openapi
🇬🇧English
  • 🇬🇧English
  • 🇨🇳中文
  • Openapi-EN-US
    • Read before development
      • Introduction
      • Header Parameter Description
      • Signature generation rules
      • Channel description
      • Error code description
      • Callback description
      • PartnerServiceId description
    • GetAccessToken
      • Access Token B2B
    • Qris
      • APIS Ayolinx Provided to Merchant
        • Generate Qris
        • Query Qris
        • Cancel Qris
      • APIS Need Merchant to Provide
        • Payment Notify
    • EWallet
      • APIS Ayolinx Provided to Merchant
        • Get Payment Url
        • Inquiry Status
      • APIS Need Merchant to Provid
        • Payment Notify
    • VirtualAccount
      • APIS Ayolinx Provided To Merchant
        • Error Codes
        • Create VA
        • Inquiry Va
      • APIS Need Merchant To Provide
        • Callback introduction
        • Access Token B2B
          POST
        • Payment
          POST
      • Non-snap callback interface
        • Payment Notify
  1. APIS Need Merchant To Provide

Access Token B2B

Developing
POST
/v1.0/access-token/b2b
VirtualAccount/Transfer Va Conmmon

Request

Header Params
Content-Type
string 
required
Example:
application/json
X-TIMESTAMP
string 
required
Client's current local time in yyyy-MM-ddTHH:mm:ssXXX format
Example:
2024-09-18T06:36:36+00:00
X-CLIENT-KEY
string 
required
Client’s client_key (PJP Name) (given at
completion registration process )
Example:
CKSandbox-100dc9aa-f8ee-4a00-a933-6f4e8963b666
X-SIGNATURE
string 
required
Non-Repudiation & Integrity checking
X-Signature: dengan algoritma
asymmetric signature SHA256withRSA
(Private_Key, stringToSign) and convert to base64.
stringToSign = client_ID + “|” + XTIMESTAMP
Example:
Ugzra35T6fPuiZ1qrbJoJaX6Cn3sOYgwpdLOAZ0IOykVFk+XhEMCpFTg5PyCgeXw5dEcosk/ml+vPBLIEWowbAEzpJnoFMAnrn49PpwD73w2xRE1s5m1zqBb9/wEHoxaQjghdiBCPL3O/37iMPFOWT2NqfDyGObAATdl6vzXLVWZt8lR/GM4uPR1RvHYpJNVbzdGANOc/FomaxOlgGd2Uj6m6UlH5N0B4oBfp6ZjC6SR+x17nwniioVKgstPKvzzmvdHYgGrNbTrMkklkpPxEt0P239gQMigepCVkHUH/uszAFOWayRMJ3YuIyc5xsnOnncrqG1LeWyEuqgr7uqYfg==
Body Params application/json
grantType
string 
required
additionalInfo
object 
optional
channel
integer 
optional
client_id
string 
optional
Example
{
  "grant_type": "client_credentials",
  "additionalInfo": {
    "channel": 13,
    "client_id": "asuhfiahi"
  }
}

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://sandbox.dev.ayolinx.id:9080/v1.0/access-token/b2b' \
--header 'X-TIMESTAMP: 2024-09-18T06:36:36+00:00' \
--header 'X-CLIENT-KEY: CKSandbox-100dc9aa-f8ee-4a00-a933-6f4e8963b666' \
--header 'X-SIGNATURE: Ugzra35T6fPuiZ1qrbJoJaX6Cn3sOYgwpdLOAZ0IOykVFk+XhEMCpFTg5PyCgeXw5dEcosk/ml+vPBLIEWowbAEzpJnoFMAnrn49PpwD73w2xRE1s5m1zqBb9/wEHoxaQjghdiBCPL3O/37iMPFOWT2NqfDyGObAATdl6vzXLVWZt8lR/GM4uPR1RvHYpJNVbzdGANOc/FomaxOlgGd2Uj6m6UlH5N0B4oBfp6ZjC6SR+x17nwniioVKgstPKvzzmvdHYgGrNbTrMkklkpPxEt0P239gQMigepCVkHUH/uszAFOWayRMJ3YuIyc5xsnOnncrqG1LeWyEuqgr7uqYfg==' \
--header 'Content-Type:  application/json' \
--data-raw '{
    "grant_type": "client_credentials",
    "additionalInfo": {
        "channel": 13,
        "client_id": "asuhfiahi"
    }
}'

Responses

🟢200OK
application/json
Body
responseCode
string 
required
responseMessage
string 
required
accessToken
string 
required
tokenType
string 
required
expiresIn
string 
required
Examples
{
  "responseCode": "2007300",
  "responseMessage": "Successful",
  "accessToken": "ecd15717c9ccdb08ce450daeab64267c",
  "tokenType": "Bearer",
  "expiresIn": "3600"
}
Modified at 2025-01-17 06:01:21
Previous
Callback introduction
Next
Payment