Create Recurring Billing
Once your customer has decided to start the subscription this endpoint will create the recurring billing request. Since this is a server-to-server communication, if you have a mobile or Web client that communicates with your REST API, you must have a new endpoint E.g. /create-subscription or reuse an existing endpoint. This endpoint will be responsible for making the recurring billing API call to HitPay.
Headers
Body
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.
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.
It's is required when plan_id = null. By default, the cycle from the subscription plan will be used.
Customer email. It's required field
It's optional field. Customer name
Billing start date (YYYY-MM-DD).
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
Payment methods to be used for the subscription. Options: [card, giro]
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
HitPay to send email receipts to the customer. Default value is false
true
, false
It's optional field. if you wish to save the card.
Was this page helpful?