Create Recurring Billing
Create a recurring billing subscription for a customer
Headers
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
Body
Customer's email.
"abc@gmail.com"
Subscription plan id created from Create a Subscription Plan API. If you would like to create a subscription without a plan, plan_id should be null
Only set the value “true” if you wish to save the card and charge the customer later on. More details in “Save Card” section
true, false It's new field that will replace save_card field in the future. Only set the value “true” if you wish to save the payment method and charge the customer later on. More details in “Save Payment Method” section
true, false It's an optional field and only applicable when save_payment_method is true. By default, the start_date_method is null. Options are sign_up_date or no_initial_charge
sign_up_date, no_initial_charge It's is required when save card = true or plan_id = null. By default, the name from the subscription plan will be used.
255"Spotify Premium"
Required when save_card = true and plan_id = null for cards. By default, the amount from the subscription plan will be used. Optional when payment_methods contains only APMs (zalopay, shopee_pay, grabpay_direct, touch_n_go) and save_payment_method is true. Min: It depends on the currency, Max: 999999.99.
x <= 999999.999.9
It's is required when plan_id = null. By default, the cycle from the subscription plan will be used. Billing frequency (weekly / monthly / yearly / custom)
weekly, monthly, yearly, custom It is required field when cycle is custom. New cycle will only be affective at the end of the current cycle
1 <= x <= 999It is required field when the cycle is custom. For cycle = custom, set the frequency for cycle repeat field options [day, week, month, year]
day, week, month, year Customer's name.
255"Paul"
Required when save_card is not true. Billing start date (YYYY-MM-DD) in SGT. Must be today or a future date.
"2025-12-31"
URL where HitPay redirects the user after the users enters the card details and the subscription is active. Query arguments reference (subscription id) and status are sent along
255The active Payment methods to be used for the subscription: card, giro, shopee_recurring.
card, giro, shopee_recurring ["card"]HitPay to send email receipts to the customer. Default value is false
true, false It's time to be charged. Default value is 1
1 <= x <= 1001