Ayolinx-Openapi
🇬🇧English
  • 🇬🇧English
  • 🇨🇳中文
  1. Snap APIS Need Merchant to provide
Ayolinx-Openapi
🇬🇧English
  • 🇬🇧English
  • 🇨🇳中文
  • Openapi-EN-US
    • Read before development
      • Introduction
      • Header Parameter Description
      • Signature generation rules
      • Channel description
      • Necessary parameter configuration
      • Error code description
      • Callback description
      • PartnerServiceId description
    • GetAccessToken
      • Access Token B2B
    • Qris
      • APIS Ayolinx Provided to Merchant
        • Generate Qris
        • Query Qris
        • Cancel Qris
      • Non-Snap APIS Need Merchant to Provide
        • Payment Notify
      • Snap APIS Need Merchant to provide
        • Access Token B2B
          POST
        • Payment Notify
          POST
    • 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
    • Convenient store
      • APIS Ayolinx Provided To Merchant
        • Create retail transaction
        • retail query
      • APIS Need Merchant to Provid Copy
        • Payment Notify
    • Payment Link
      • Callback introduction
      • Create payment link
  1. Snap APIS Need Merchant to provide

Access Token B2B

POST
/v1.0/access-token/b2b

Request

Header Params

Body Params application/json

Example
{
    "grant_type": "client_credentials",
    "additionalInfo": {
        "channel": 13,
        "client_id": "asuhfiahi"
    }
}

Request Code 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 'https://sandbox.ayolinx.id/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

Examples
{
    "responseCode": "2007300",
    "responseMessage": "Successful",
    "accessToken": "ecd15717c9ccdb08ce450daeab64267c",
    "tokenType": "Bearer",
    "expiresIn": "3600"
}
Modified at 2025-06-17 06:25:11
Previous
Payment Notify
Next
Payment Notify