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
  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
    • Subscription Members
      POST
    • Set Default Bank Account
      POST
    • Unsubscribe Bank Account
      POST
    • Subscription Histories
      POST
    • Subscription Verify
      POST
  1. Auto Direct Debit

Subscription Histories

POST
https://merchantapi-demo.bill24.io/direct_debit/subscription/histories
Biller will request to this endpoint to retrieve history of direct debit subscriptions via Bill24.

Request

Header Params

Body Params application/json

Example
{
    "consumer_code": "CON789"
}

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://merchantapi-demo.bill24.io/direct_debit/subscription/histories' \
--header 'Content-Type: application/json' \
--data-raw '{
    "consumer_code": "CON789"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "code": "000",
    "message": "Success",
    "message_kh": "ជោគជ័យ",
    "data": {
        "histories": [
            {
                "date": "2025-08-01T10:00:00Z",
                "account_no": "ACC123",
                "action": "Subscribed",
                "bank_name": "Bank ABC",
                "bank_name_kh": "ធនាគារ ABC",
                "bank_code": "BANK789",
                "bank_logo": "https://example.com/logo.png"
            }
        ]
    }
}
🟠404Record not found
🟠400Invalid input
Modified at 2025-08-14 03:09:45
Previous
Unsubscribe Bank Account
Next
Subscription Verify