import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.refunds.list({});
console.log(result);
}
run();{
"data": [
{
"id": "<string>",
"object": "<string>",
"amount": 123,
"currency": "<string>",
"reason": "<string>",
"status": "<string>",
"created_at": "<string>",
"provider": "<string>",
"metadata": {},
"order": "<string>"
}
],
"has_more": true,
"url": "<string>"
}Returns a list of refunds for the current account
import { Crevio } from "@crevio/sdk";
const crevio = new Crevio({
apiKey: process.env["CREVIO_API_KEY"] ?? "",
});
async function run() {
const result = await crevio.refunds.list({});
console.log(result);
}
run();{
"data": [
{
"id": "<string>",
"object": "<string>",
"amount": 123,
"currency": "<string>",
"reason": "<string>",
"status": "<string>",
"created_at": "<string>",
"provider": "<string>",
"metadata": {},
"order": "<string>"
}
],
"has_more": true,
"url": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.crevio.co/llms.txt
Use this file to discover all available pages before exploring further.
API key in the format: Bearer {api_token}
Filter by order ID
Cursor for pagination — the ID of the last item in the previous page
Items per page
1 <= x <= 100Was this page helpful?