Ayolinx-Openapi
🇬🇧English
  • 🇬🇧English
  • 🇨🇳中文
  1. GetAccessToken
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
        POST
    • 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
        • Payment
      • Non-snap callback interface
        • Payment Notify
  1. GetAccessToken

Access Token B2B

Developing
POST
/v1.0/access-token/b2b
Get access token

Request

Header Params
Content-Type
string 
required
Example:
application/json
X-TIMESTAMP
string 
required
Client's current local time in yyyy-MMddTHH:mm:ssXXX format
Example:
2024-09-18T06:36:36+00:00
X-CLIENT-KEY
string 
required
Client’s client_id
Example:
CKSandbox-100dc9aa-f8ee-4a00-a933-6f4e8963b666
X-SIGNATURE
string 
required
StringToSign = client_ID + "|" + X-TIMESTAMP. It is encrypted using SHA256withRSA(Private_Key, stringToSign) and converted into a base64 string.
Example:
Ugzra35T6fPuiZ1qrbJoJaX6Cn3sOYgwpdLOAZ0IOykVFk+XhEMCpFTg5PyCgeXw5dEcosk/ml+vPBLIEWowbAEzpJnoFMAnrn49PpwD73w2xRE1s5m1zqBb9/wEHoxaQjghdiBCPL3O/37iMPFOWT2NqfDyGObAATdl6vzXLVWZt8lR/GM4uPR1RvHYpJNVbzdGANOc/FomaxOlgGd2Uj6m6UlH5N0B4oBfp6ZjC6SR+x17nwniioVKgstPKvzzmvdHYgGrNbTrMkklkpPxEt0P239gQMigepCVkHUH/uszAFOWayRMJ3YuIyc5xsnOnncrqG1LeWyEuqgr7uqYfg==
Body Params application/json
grantType
string 
optional
client_credentials
Example
{
  "grantType": "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://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 '{
    "grantType":"client_credentials"
}'

Responses

🟢200Success
application/json
Body
responseCode
string 
required
responseMessage
string 
required
accessToken
string 
required
tokenType
string 
required
expiresIn
string 
required
Example
{
  "responseCode": "2007300",
  "responseMessage": "Successful",
  "accessToken": "91838ba37d8f14bfc72345fd54132e6d",
  "tokenType": "Bearer",
  "expiresIn": "3600"
}
Modified at 2025-02-08 03:27:38
Previous
PartnerServiceId description
Next
Generate Qris