APIs for Businesses
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct Debit
KHQR Integration Specification for APINotification APIPayment Method
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct Debit
KHQR Integration Specification for APINotification APIPayment Method
  1. Auto Direct Debit
  • Auto Direct Debit
    • Overview
    • FAQ
    • MOBILE SDKS
      • Flutter SDK
    • WEB SDKS
      • Web SDK
    • Authorization
      POST
    • Init Subscription
      POST
    • Inquiry Consumer validate
      POST
    • Consumer's Debt Update
      POST
    • Inquiry Consumer Debt
      POST
  1. Auto Direct Debit

Init Subscription

POST
{{bill24_domain}}/direct_debit/subscription/init
Bill24 Implement
NOTE
When customer need to subscribe biller need to call to this endpoint for init subscription and get back subscription no for use with sdk or URL for open web subscription page.

Request

Header Params

Body Params application/json

Example
{
    "subscription_ref": "DD000027",
    "redirect_url": {
        "web_url": "http://{merchant-domain}:3000",
        "deeplink_url": ""
    },
    "consumers": [
        {
            "consumer_code": "C0000001",
            "consumer_name": "នីម",
            "consumer_name_latin": "Nim",
            "additional_information": ""
        }
    ]
}

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 -g --request POST 'https://merchantapi-demo.bill24.io/notification/v1/notificationmessage/send{{bill24_domain}}/direct_debit/subscription/init' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "subscription_ref": "DD000027",
    "redirect_url": {
        "web_url": "http://{merchant-domain}:3000",
        "deeplink_url": ""
    },
    "consumers": [
        {
            "consumer_code": "C0000001",
            "consumer_name": "នីម",
            "consumer_name_latin": "Nim",
            "additional_information": ""
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "code": "000",
    "message": "success !",
    "message_kh": "ជោគជ័យ! ",
    "data": {
        "subscription_no": "12353454",
        "subscription_link": "https://staging.bill24.io:22034/checkoutv2/141C9AC362C7"
    }
}
Modified at 2025-03-06 07:16:45
Previous
Authorization
Next
Inquiry Consumer validate