API Reference
Once the card is saved you can charged the card anytime using the charge API
cURL
curl --request POST \ --url https://api.sandbox.hit-pay.com/v1/charge/recurring-billing/{recurring_billing_id} \ --header 'Content-Type: application/json' \ --header 'X-BUSINESS-API-KEY: <x-business-api-key>' \ --data '{ "amount": 100, "currency": "SGD" }'
"{\n \"payment_id\": \"9746f906-bdbb-4064-8372-642cf5877e0c\",\n \"recurring_billing_id\": \"9746f8c2-2b7c-4c78-8832-012f203ae687\",\n \"amount\": 100,\n \"currency\": \"usd\",\n \"status\": \"succeeded\"\n}"
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
id value from the create recurring billing API
200
The response is of type object.
object
Was this page helpful?