Charges
Get Payment Attempt
Retrieve one payment attempt by ID, with its failure reason and 3D Secure result
GET
/
v1
/
payment-attempts
/
{payment_attempt_id}
Get Payment Attempt
curl --request GET \
--url https://api.hit-pay.com/v1/payment-attempts/{payment_attempt_id} \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'import requests
url = "https://api.hit-pay.com/v1/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_id}")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/payment-attempts/{payment_attempt_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{
"data": {
"id": "9f6a1c2e-4b7d-4f0a-9c3e-2d5b8a7e6f10",
"charge_id": "9f6a1b7d-0c2a-4e5f-8b1d-3a4c5d6e7f80",
"payment_request_id": "9f6a1b7c-9a8b-4c7d-8e6f-5a4b3c2d1e0f",
"status": "failed",
"payment_method": "card",
"amount": 129.9,
"currency": "sgd",
"card": {
"brand": "visa",
"last4": "9995",
"country_code": "SG",
"funding": "credit"
},
"three_d_secure": {
"status": "successful",
"authentication_flow": "frictionless",
"version": "2.2.0",
"eci": "05"
},
"failure": {
"code": "insufficient_funds",
"message": "The card has insufficient funds."
},
"client": {
"ip_country": "SG"
},
"created_at": "2026-11-26T14:02:11+08:00",
"updated_at": "2026-11-26T14:02:14+08:00"
}
}Headers
Last modified on November 26, 2026
Was this page helpful?
⌘I
Get Payment Attempt
curl --request GET \
--url https://api.hit-pay.com/v1/payment-attempts/{payment_attempt_id} \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>'import requests
url = "https://api.hit-pay.com/v1/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_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/payment-attempts/{payment_attempt_id}")
.header("X-BUSINESS-API-KEY", "<x-business-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hit-pay.com/v1/payment-attempts/{payment_attempt_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{
"data": {
"id": "9f6a1c2e-4b7d-4f0a-9c3e-2d5b8a7e6f10",
"charge_id": "9f6a1b7d-0c2a-4e5f-8b1d-3a4c5d6e7f80",
"payment_request_id": "9f6a1b7c-9a8b-4c7d-8e6f-5a4b3c2d1e0f",
"status": "failed",
"payment_method": "card",
"amount": 129.9,
"currency": "sgd",
"card": {
"brand": "visa",
"last4": "9995",
"country_code": "SG",
"funding": "credit"
},
"three_d_secure": {
"status": "successful",
"authentication_flow": "frictionless",
"version": "2.2.0",
"eci": "05"
},
"failure": {
"code": "insufficient_funds",
"message": "The card has insufficient funds."
},
"client": {
"ip_country": "SG"
},
"created_at": "2026-11-26T14:02:11+08:00",
"updated_at": "2026-11-26T14:02:14+08:00"
}
}