curl --request GET \
--url https://api-test.paiera.com/v1/refund/retrieve \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-test.paiera.com/v1/refund/retrieve"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-test.paiera.com/v1/refund/retrieve', 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-test.paiera.com/v1/refund/retrieve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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-test.paiera.com/v1/refund/retrieve"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-test.paiera.com/v1/refund/retrieve")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.paiera.com/v1/refund/retrieve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": "success",
"message": "success",
"trace_id": "00000000000000000000000000000001",
"timestamp": 1789349610318,
"data": {
"refund_id": "rfd_example_001",
"refund_reference_id": "merchant-refund-202609170001",
"payment_reference_id": "merchant-order-202609170001",
"transaction_id": "acq_example_001",
"status": "PROCESSING",
"refund_amount": "1.2",
"refund_currency": "USDT",
"refund_reason": "Customer requested a refund",
"receive_address": "REFUND_RECEIVING_ADDRESS",
"network": "TRC20",
"created_at": "2026-09-17T10:00:00Z"
},
"success": true
}Retrieve Refund
curl --request GET \
--url https://api-test.paiera.com/v1/refund/retrieve \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api-test.paiera.com/v1/refund/retrieve"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api-test.paiera.com/v1/refund/retrieve', 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-test.paiera.com/v1/refund/retrieve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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-test.paiera.com/v1/refund/retrieve"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
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-test.paiera.com/v1/refund/retrieve")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-test.paiera.com/v1/refund/retrieve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": "success",
"message": "success",
"trace_id": "00000000000000000000000000000001",
"timestamp": 1789349610318,
"data": {
"refund_id": "rfd_example_001",
"refund_reference_id": "merchant-refund-202609170001",
"payment_reference_id": "merchant-order-202609170001",
"transaction_id": "acq_example_001",
"status": "PROCESSING",
"refund_amount": "1.2",
"refund_currency": "USDT",
"refund_reason": "Customer requested a refund",
"receive_address": "REFUND_RECEIVING_ADDRESS",
"network": "TRC20",
"created_at": "2026-09-17T10:00:00Z"
},
"success": true
}tx_hash_url and the detail timeline.
See response objects.Authorizations
Use HTTP Basic authentication with api_key as username and api_secret as password. Obtain credentials in Portal > Settings > Developer.
Query Parameters
Paiera refund ID. Provide at least one identifier; both identifiers may be provided, but they must identify the same refund.
Merchant refund reference. Provide at least one identifier; both identifiers may be provided, but they must identify the same refund.
Response
Query Refund successful
Business result code; success indicates a successful request
"success"Result message; success indicates a successful request
"success"Response time as a Unix timestamp in milliseconds
Declared response fields; null values may be omitted. Supply at least one identifier; if both are supplied they must identify the same refund. OpenAPI removes tx_hash_url and the detail timeline.
Show child attributes
Show child attributes
Whether the request succeeded
Trace ID used for troubleshooting
