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

Get Payment Url

POST
/direct-debit/core/v1/debit/payment-host-to-host
获取支付链接

Request

Header Params

Body Params application/json

Example
{
    "partnerReferenceNo": "fd3f5af0-af57-4513-95a8-77df45721edw",
    "validUpTo": "1746249942",
    "amount": {
        "currency": "IDR",
        "value":"30.00"
    },
    "urlParams":[
        {
            "type":"PAY_RETURN",
            "url":"https://dev-payment.ayolinx.id/status?h=f13ce04d-34c5-4a03-ac46-d608cab468a2"
        },
        {
            "type":"NOTIFICATION",
            "url":"https://dev-payment.ayolinx.id/status?h=f13ce04d-34c5-4a03-ac46-d608cab468a2"
        }
    ],
    "additionalInfo":{
        "channel":"EMONEY_DANA_SNAP"
    }
   
}

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/direct-debit/core/v1/debit/payment-host-to-host' \
--header 'X-TIMESTAMP: 2024-09-12T12:55:00+07:00' \
--header 'X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5' \
--header 'X-PARTNER-ID: CK-11111abc-0000-2222-bbcc-dd55555ee666' \
--header 'X-EXTERNAL-ID: 418075533589' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE2OTgwNTA3NDMsImlzcyI6IkRPS1UiLCJjbGllbnRJZCI6IkJSTi0wMjExLTE2OTY5MTk2NTE5MTgifQ.x-D5VlK6TlVZbLPUSCr-Gbfgh4tnp0QDJmedYFHJGHFjg1c4x39pszU4sLvRhr0Jk0vKdMIzxUZeNhKoesWqDJitnG3kfrNZNsMb_WYUC0tJW91onXzYOKXiTgsHwRNFoWPQHlXIEtT3RQm-SRlCpk_E0gsavgkQn2-kbJEBnPhIs4eKg5IUY9GYi4hRr-_GHsudDl8sd2B5UBB_ 3EPXdbqb45N4ciQ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "partnerReferenceNo": "fd3f5af0-af57-4513-95a8-77df45721edw",
    "validUpTo": "1746249942",
    "amount": {
        "currency": "IDR",
        "value":"30.00"
    },
    "urlParams":[
        {
            "type":"PAY_RETURN",
            "url":"https://dev-payment.ayolinx.id/status?h=f13ce04d-34c5-4a03-ac46-d608cab468a2"
        },
        {
            "type":"NOTIFICATION",
            "url":"https://dev-payment.ayolinx.id/status?h=f13ce04d-34c5-4a03-ac46-d608cab468a2"
        }
    ],
    "additionalInfo":{
        "channel":"EMONEY_DANA_SNAP"
    }
   
}'

Responses

🟢200Success
application/json
Body

Example
{
    "responseCode": "2005400",
    "responseMessage": "Success",
    "webRedirectUrl": "https://m.sandbox.dana.id/m/portal/cashier/checkout?bizNo=20250110111212800110166288701912477&timestamp=1736479628052&originSourcePlatform=IPG&mid=216620020030015007074&sign=aRAz%2FmuDkP3bXBtjobQ7VRJIRjhjX352T4r4Ggq%2FBZVrhokXPw8f1urdleeNQe8if3TDD6yD%2FVTP%2FImqT%2BEVNQ3WatV1fdUYkZ6mTaI9%2B%2BKLEHzXZiziapD971C0Zopa1zogEFw2UfanfMeYSyngaDwozLTOf5zGVBNqtIozFZMU5twcnpLtbDTdYkGX%2FLgwzqh3dKGirPQD7MrEqJrpF%2Foi34uNStgpwQUx6%2BRVBB9fu5M%2Fp65D8QfCgyztzr7p5xgKouLsu5sz1QiqHRJoFpRCFenqnNUZgwV%2FSbOWsBiDJBBhoxjcMzUNCISJubrj4Gt6gURwODVnWzHO2SIa8g%3D%3D&forceToH5=false",
    "partnerReferenceNo": "fd3f5af0-af57-4513-95a8-77df45721edx"
}
Modified at 2025-06-20 09:38:58
Previous
Access Token B2B
Next
Inquiry Status