Auto Direct Debit
Light Mode
Init Subscription
POST
{{bill24_domain}}/direct_debit/subscription/initBill24 Implement
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
Content-Type
string
required
Example:
application/json
Accept
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {token}
Body Params application/json
subscription_ref
string
required
redirect_url
object
required
web_url
string
required
deeplink_url
string
required
consumers
array [object {4}]
required
consumer_code
string
optional
consumer_name
string
optional
consumer_name_latin
string
optional
additional_information
string
optional
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
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
string
required
message
string
required
message_kh
string
required
data
object
required
subscription_no
string
required
subscription_link
string
required
Example
{
"code": "000",
"message": "success !",
"message_kh": "ជោគជ័យ! ",
"data": {
"subscription_no": "12353454",
"subscription_link": "https://staging.bill24.io:22034/checkoutv2/141C9AC362C7"
}
}
Last modified: 3 months ago