cURL
curl --request GET \
--url https://uat-api.clinkbill.com/api/refund/{id} \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/api/refund/{id}")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/refund/{id}"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/refund/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success",
"data": {
"createTime": 1754819711382,
"refundId": "rfd_abc123xyz",
"refundMerchantOrderId": "refund_ref_10001",
"orderId": "order_def456uvw",
"customerId": "cus_ghi789rst",
"refundAmount": 19.99,
"refundCurrency": "USD",
"status": "success",
"failureCode": "already_refunded",
"failureMessage": "This payment has already been fully refunded. Check order status in your account's transaction history.",
"refundReason": "Customer Initiated Refund",
"metadata": {
"arn": "8377252556170253",
"merchantReferenceId": "sample_id"
},
"paymentInstrumentId": "<string>"
}
}Refund
Get Refund
Get detailed information about a specific refund
GET
/
refund
/
{id}
cURL
curl --request GET \
--url https://uat-api.clinkbill.com/api/refund/{id} \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.get("https://uat-api.clinkbill.com/api/refund/{id}")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/refund/{id}"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/refund/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success",
"data": {
"createTime": 1754819711382,
"refundId": "rfd_abc123xyz",
"refundMerchantOrderId": "refund_ref_10001",
"orderId": "order_def456uvw",
"customerId": "cus_ghi789rst",
"refundAmount": 19.99,
"refundCurrency": "USD",
"status": "success",
"failureCode": "already_refunded",
"failureMessage": "This payment has already been fully refunded. Check order status in your account's transaction history.",
"refundReason": "Customer Initiated Refund",
"metadata": {
"arn": "8377252556170253",
"merchantReferenceId": "sample_id"
},
"paymentInstrumentId": "<string>"
}
}Authorizations
Your secret API key obtained from the Clink dashboard (Developers section)
Headers
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Path Parameters
Unique identifier of the refund