Headers
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
Body
Customer's email.
"abc@gmail.com"
Customer's name.
255
"Paul"
The start date must be a date after or equal to today and Billing start date (YYYY-MM-DD) in SGT, only possible to change start date for recurring billing ID with status = scheduled or active
"2025-12-31"
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 is required when save card = true or plan_id = null. By default, the name from the subscription plan will be used.
255
"Spotify Premium"
It's is required when save card = true and plan_id = null. This is an optional value. By default, the amount from the subscription plan will be used. You can use this parameter for discounts for specific customers. Min: It depends on the currency, Max: 999999.99.
x <= 999999.99
9.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 <= 999
It 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
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
255
The active Payment methods to be used for the subscription: card, giro, shopee_recurring.
["card"]
Optional URL value to which HitPay will send a POST request when there is a new charge or if there is an error charging the card
"https://webhook.site/test"
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 <= 100
1