Skip to main content
POST

Authorizations

Authorization
string
header
required

OAuth2 client_credentials authorization. Obtain a new access_token when it expires.

Body

application/json

Creates and immediately activates a DDR from the merchant server. customer must contain either an existing customer reference or new customer details. At least one of plan.recurring and plan.one_off must be nonempty; templates are not supported. recurring_type=5 creates a By agreement debit authorization only; 1/2/3/4 create recurring payment schedules. one_off alone is a one-off payment; combined with recurring it is a deposit. payment is required; 3DS is not supported. Currency is fixed to AUD.

merchant_id
string
required

Business identifier assigned by BillBuddy.

Required string length: 1 - 20
subscription_number
string
required

Merchant subscription number. Must be unique within the same merchant and business. A previously used number cannot be reused; duplicates fail instead of returning the existing subscription.

Required string length: 1 - 64
customer
object
required

Customer information. Supply either an existing customer identifier or new customer details.

plan
object
required

DDR subscription definition, including the subscription name, debit rules and fee options.

payment
object
required

Payment method and agreement acceptance timestamps for creation and activation. Each card/bank schema defines its accepted fields.

notify_email

Whether to allow email notifications for this transaction or subscription. false prohibits them; true allows them. Omission or null uses the business's API email notification setting, which defaults to off. Actual delivery depends on notification preferences and applicable rules. Also accepts 0/1 and the strings "0"/"1".

notify_sms

Whether to allow SMS notifications for this transaction or subscription. false prohibits them; true allows them. Omission or null uses the business's API SMS notification setting, which defaults to off. Actual delivery depends on notification preferences and applicable rules. Also accepts 0/1 and the strings "0"/"1".

Response

HTTP 200. Distinguish success, business errors, validation errors and business authentication errors using the response body code.

Success response.

code
enum<integer>
required

0 means the DDR was created and activated. Does not indicate a completed charge.

Available options:
0
message
string
required

Response message.

data
object
required

Activated DDR without a hosted activation link.