Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
API Reference
Retrieve a single payout by ID
cURL
curl --request GET \ --url https://api.hit-pay.com/v1/payouts/{payout_id} \ --header 'X-BUSINESS-API-KEY: <x-business-api-key>'
import requests url = "https://api.hit-pay.com/v1/payouts/{payout_id}" headers = {"X-BUSINESS-API-KEY": "<x-business-api-key>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {'X-BUSINESS-API-KEY': '<x-business-api-key>'}}; fetch('https://api.hit-pay.com/v1/payouts/{payout_id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://api.hit-pay.com/v1/payouts/{payout_id}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "X-BUSINESS-API-KEY: <x-business-api-key>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hit-pay.com/v1/payouts/{payout_id}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("X-BUSINESS-API-KEY", "<x-business-api-key>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.get("https://api.hit-pay.com/v1/payouts/{payout_id}") .header("X-BUSINESS-API-KEY", "<x-business-api-key>") .asString();
require 'uri' require 'net/http' url = URI("https://api.hit-pay.com/v1/payouts/{payout_id}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-BUSINESS-API-KEY"] = '<x-business-api-key>' response = http.request(request) puts response.read_body
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "scheduled", "currency": "sgd", "amount": 123, "source_currency": "sgd", "source_amount": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "bank_name": "<string>", "bank_account": "<string>", "remark": "<string>", "reference": "<string>", "failure_code": "<string>", "failure_message": "<string>", "arrival_date": "2023-12-25" }
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
Payout ID
Payout
Settlement of the business's available balance to its linked bank account.
scheduled
processing
paid
failed
canceled
pending
"sgd"
Payout amount in major units
Masked bank account number
Present when status is failed
Was this page helpful?