Collections List refunds
List refunds
Lists the refunds on a card collection, with each refund's status. Use it to check a `pending` refund or to find the `refund_id` of a failed one.
Api-Key
Path parameters
NameDescription
idThe collection's
transaction_idResponse
Returns 200 OK. The collection's refunds
NameDescription
dataShow 1 child attributesobject
itemsShow 9 child attributesobject[]
refund_idThe refund's ID
payment_idThe ID of the card payment the refund is for
amount_centsThe refunded amount, in cents
currencystatusPossible values:
pending, succeeded, failedcreated_atupdated_atfailure_codeWhy the refund failed. Only on a failed refund.
failure_messageA readable reason. Only on a failed refund.
errorErrors
| Status | Meaning |
|---|---|
| 200 | The collection's refunds |
| 400 | The request failed. An unknown ID returns transaction not found: resource not found. |
Was this page helpful? Yes No
Previous
Next
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/collections/07b655cc-3dbd-4f6c-a16c-4657946d2e08/refunds");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"items": [
{
"refund_id": "8c1e4b2a-7f3d-4a6e-b9c0-2d5f8e1a7b34",
"payment_id": "5d2c8e14-9a3b-4f6e-8c7d-1b0a2e3f4c56",
"amount_cents": 2500,
"currency": "USD",
"status": "succeeded",
"created_at": "2026-11-20T10:15:00Z",
"updated_at": "2026-11-20T10:16:30Z"
}
]
},
"error": null
}
{
"data": null,
"error": "transaction not found: resource not found"
}