List refunds for a checkout
curl --request GET \
--url https://api.wizzgift.com/retailer/v1/refunds \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wizzgift.com/retailer/v1/refunds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/retailer/v1/refunds"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/retailer/v1/refunds",
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-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"refunds": [
{
"id": "<string>",
"checkoutId": "<string>",
"totalAmount": 123,
"currency": "<string>",
"status": "requested",
"createdAt": 1753142400000,
"email": "<string>",
"remainingAmount": 123,
"items": [
{
"checkoutItemId": "<string>",
"productName": "<string>",
"failedQuantity": 123,
"totalQuantity": 123,
"unitPrice": 123,
"refundAmount": 123
}
],
"autoRefunds": [
{
"paymentId": "<string>",
"provider": "<string>",
"amount": 123,
"status": "pending",
"providerRefundId": "<string>",
"errorMessage": "<string>",
"attemptedAt": 1753142400000
}
],
"method": "<string>",
"initiatedBy": "user",
"reason": "<string>",
"retryCount": 123,
"completedAt": 1753142400000,
"updatedAt": 1753142400000
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "NOT_FOUND",
"message": "Checkout not found"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}Retailer · Refunds
List refunds for a checkout
GET
/
retailer
/
v1
/
refunds
List refunds for a checkout
curl --request GET \
--url https://api.wizzgift.com/retailer/v1/refunds \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.wizzgift.com/retailer/v1/refunds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wizzgift.com/retailer/v1/refunds"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzgift.com/retailer/v1/refunds",
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-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"refunds": [
{
"id": "<string>",
"checkoutId": "<string>",
"totalAmount": 123,
"currency": "<string>",
"status": "requested",
"createdAt": 1753142400000,
"email": "<string>",
"remainingAmount": 123,
"items": [
{
"checkoutItemId": "<string>",
"productName": "<string>",
"failedQuantity": 123,
"totalQuantity": 123,
"unitPrice": 123,
"refundAmount": 123
}
],
"autoRefunds": [
{
"paymentId": "<string>",
"provider": "<string>",
"amount": 123,
"status": "pending",
"providerRefundId": "<string>",
"errorMessage": "<string>",
"attemptedAt": 1753142400000
}
],
"method": "<string>",
"initiatedBy": "user",
"reason": "<string>",
"retryCount": 123,
"completedAt": 1753142400000,
"updatedAt": 1753142400000
}
]
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
},
"requestId": "req_8f3k2"
}{
"error": {
"code": "NOT_FOUND",
"message": "Checkout not found"
},
"requestId": "req_8f3k2"
}{
"error": "Too many requests",
"message": "<string>"
}⌘I