Simple guide for initiating payouts using HitPay API
This API is currently in beta. Please use with caution and expect potential changes.
This guide shows how to initiate payouts using HitPay’s transfer API. It’s an essential tool for platforms and businesses that need to pay suppliers or other entities.
These APIs are designed for a variety of payment scenarios, including:
When you initiate a transfer, funds are deducted from your HitPay wallet balance. Your wallet can hold balances in multiple currencies such as SGD, USD, etc. The API uses the source_currency
field to deduct from the corresponding wallet.
Funds can be added to your wallet through:
The diagram below illustrates how funds are deducted during a PayNow transfer:
You can also initiate transfers from other balances like USD if supported for the payout method.
Field | Description |
---|---|
beneficiary | Inline object or beneficiary_id |
source_currency | Currency to deduct from (e.g., sgd ) |
payment_amount | Amount to transfer |
Below is a sample request body to initiate a transfer using FAST (SGD).
Upon successfully initiating a transfer, the API returns a JSON object containing the details of the transfer. Below is a sample response:
While using the POST /v1/transfers
endpoint is the simplest way to get started with payouts, your integration may require more flexibility. HitPay provides additional APIs to support advanced use cases:
Create Beneficiary
If you intend to save a beneficiary and reuse them for multiple payouts, this API allows you to create and manage stored beneficiaries.
Webhook Events
Some transfer types may not be completed instantly. Use webhook notifications to track changes in transfer status and trigger downstream actions when a transfer is successful or fails.
Estimate Fees
Before initiating a transfer, you can use this API to estimate the transfer fee. This is particularly helpful when the transfer involves currency conversion or if you’d like to display fee information to the user in advance.