Charges
Get Charge Detail
Retrieve details of a specific charge by ID
GET
/
v1
/
charges
/
{charge_id}
Get Charge Details
curl --request GET \
--url https://api.hit-pay.com/v1/charges/{charge_id} \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'import requests
url = "https://api.hit-pay.com/v1/charges/{charge_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/charges/{charge_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/charges/{charge_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/charges/{charge_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/charges/{charge_id}")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/charges/{charge_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": "9cecc92d-9d93-49d6-bd3f-2bb74dcbb283",
"currency": "sgd",
"home_currency": "sgd",
"exchange_rate": null,
"amount": 100,
"amount_without_fees": 95.85,
"refunded_amount": 0,
"fixed_fee": 0.5,
"discount_fee": 3.65,
"discount_fee_rate": 3.65,
"remark": "NEWUI from 2024-08-31 To 2024-08-31",
"status": "succeeded",
"payment_method": {
"code": "stripe_sg",
"display_logo": {
"sm": "https://api.sandbox.hit-pay.com/icons/methods/sm/visa.png",
"md": "https://api.sandbox.hit-pay.com/icons/methods/md/visa.png",
"lg": "https://api.sandbox.hit-pay.com/icons/methods/lg/visa.png",
"svg": "https://api.sandbox.hit-pay.com/icons/methods/svg/visa.svg",
"svg_square": "https://api.sandbox.hit-pay.com/icons/methods/svg_square/visa.svg",
"png_square": "https://api.sandbox.hit-pay.com/icons/methods/png_square/visa.png",
"method": "visa",
"iconName": "visa",
"displayName": "Visa"
},
"provider_reference": "ch_3Pv6duAMHowMCIhZ2P9NCA6j",
"type": "charge",
"name": "card",
"method_logo": {
"sm": "https://api.sandbox.hit-pay.com/icons/methods/sm/card.png",
"md": "https://api.sandbox.hit-pay.com/icons/methods/md/card.png",
"lg": "https://api.sandbox.hit-pay.com/icons/methods/lg/card.png",
"svg": "https://api.sandbox.hit-pay.com/icons/methods/svg/card.svg",
"svg_square": "https://api.sandbox.hit-pay.com/icons/methods/svg_square/card.svg",
"png_square": "https://api.sandbox.hit-pay.com/icons/methods/png_square/card.png",
"method": "card",
"iconName": "card",
"displayName": "Cards"
},
"data": {
"brand": "Visa",
"last4": "4242",
"country_code": "US",
"country": "United States of America"
}
},
"customer_id": "9a659602-eafd-4731-972d-424aef24fb2f",
"customer": {
"name": "KimC",
"email": "[email protected]",
"phone_number": "993348342"
},
"payment_request_id": null,
"webhook_status": false,
"order_reference_number": null,
"target_id": "9c0fd92e-1cc8-478f-8b2e-71ee8a218ec5",
"target_type": "business_recurring_plan",
"executor": null,
"location": null,
"channel": "api_recurring_dashboard",
"admin_fee": false,
"refunds": [],
"webhook_logs": [],
"terminal_id": null,
"closed_at": "2024-09-04T08:00:16+08:00",
"created_at": "2024-09-04T08:00:17+08:00",
"updated_at": "2024-09-04T08:01:19+08:00"
}Headers
Response
200 - application/json
Successful payment
Last modified on February 25, 2026
Was this page helpful?
⌘I
Get Charge Details
curl --request GET \
--url https://api.hit-pay.com/v1/charges/{charge_id} \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'import requests
url = "https://api.hit-pay.com/v1/charges/{charge_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/charges/{charge_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/charges/{charge_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/charges/{charge_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/charges/{charge_id}")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/charges/{charge_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": "9cecc92d-9d93-49d6-bd3f-2bb74dcbb283",
"currency": "sgd",
"home_currency": "sgd",
"exchange_rate": null,
"amount": 100,
"amount_without_fees": 95.85,
"refunded_amount": 0,
"fixed_fee": 0.5,
"discount_fee": 3.65,
"discount_fee_rate": 3.65,
"remark": "NEWUI from 2024-08-31 To 2024-08-31",
"status": "succeeded",
"payment_method": {
"code": "stripe_sg",
"display_logo": {
"sm": "https://api.sandbox.hit-pay.com/icons/methods/sm/visa.png",
"md": "https://api.sandbox.hit-pay.com/icons/methods/md/visa.png",
"lg": "https://api.sandbox.hit-pay.com/icons/methods/lg/visa.png",
"svg": "https://api.sandbox.hit-pay.com/icons/methods/svg/visa.svg",
"svg_square": "https://api.sandbox.hit-pay.com/icons/methods/svg_square/visa.svg",
"png_square": "https://api.sandbox.hit-pay.com/icons/methods/png_square/visa.png",
"method": "visa",
"iconName": "visa",
"displayName": "Visa"
},
"provider_reference": "ch_3Pv6duAMHowMCIhZ2P9NCA6j",
"type": "charge",
"name": "card",
"method_logo": {
"sm": "https://api.sandbox.hit-pay.com/icons/methods/sm/card.png",
"md": "https://api.sandbox.hit-pay.com/icons/methods/md/card.png",
"lg": "https://api.sandbox.hit-pay.com/icons/methods/lg/card.png",
"svg": "https://api.sandbox.hit-pay.com/icons/methods/svg/card.svg",
"svg_square": "https://api.sandbox.hit-pay.com/icons/methods/svg_square/card.svg",
"png_square": "https://api.sandbox.hit-pay.com/icons/methods/png_square/card.png",
"method": "card",
"iconName": "card",
"displayName": "Cards"
},
"data": {
"brand": "Visa",
"last4": "4242",
"country_code": "US",
"country": "United States of America"
}
},
"customer_id": "9a659602-eafd-4731-972d-424aef24fb2f",
"customer": {
"name": "KimC",
"email": "[email protected]",
"phone_number": "993348342"
},
"payment_request_id": null,
"webhook_status": false,
"order_reference_number": null,
"target_id": "9c0fd92e-1cc8-478f-8b2e-71ee8a218ec5",
"target_type": "business_recurring_plan",
"executor": null,
"location": null,
"channel": "api_recurring_dashboard",
"admin_fee": false,
"refunds": [],
"webhook_logs": [],
"terminal_id": null,
"closed_at": "2024-09-04T08:00:16+08:00",
"created_at": "2024-09-04T08:00:17+08:00",
"updated_at": "2024-09-04T08:01:19+08:00"
}