Ayolinx-Openapi
🇨🇳中文
  • 🇬🇧English
  • 🇨🇳中文
  1. 需要商户提供的接口
Ayolinx-Openapi
🇨🇳中文
  • 🇬🇧English
  • 🇨🇳中文
  • Openapi-ZH-CN
    • 开发须知
      • 简介
      • Header参数说明
      • 渠道说明
      • 回调说明
      • 错误码说明
      • 必要参数配置
      • Signature生成规则
      • PartnerServiceId说明
    • GetAccessToken
      • Access Token B2B
    • EWallet
      • Ayolinx提供给商户的接口
        • Get Payment Url
        • Inquiry Status
      • 需要商户提供的回调地址
        • Payment Notify
    • Qris
      • Ayolinx提供给商户的接口
        • Generate Qris
        • Query Qris
        • Cancel Qris
      • 需要商户提供的非snap回调地址
        • Payment Notify
      • 商户提供的snap回调地址
        • Access Token B2B
        • Payment Notify
    • VirtualAccount
      • 时序图
      • Ayolinx提供给商户的接口
        • Error Codes
        • Create VA
        • Inquiry Va
      • 需要商户提供的接口
        • 回调说明
        • Access Token B2B
          POST
        • Payment
          POST
      • 非snap回调接口
        • Payment Notify
    • Convenience Store
      • Ayolinx提供给商户的接口
        • Create retail transaction
        • retail query
      • 需要商户提供的回调地址
        • Payment Notify
    • Payment Link
      • 回调说明
      • create payment link
  1. 需要商户提供的接口

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-154dc98b-f8ea-4a68-a9f7-6f4e8963b86c' \
--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:24:38
Previous
回调说明
Next
Payment