Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
TypeScript
import { Crevio } from "@crevio/sdk"; const crevio = new Crevio({ apiKey: process.env["CREVIO_API_KEY"] ?? "", }); async function run() { const result = await crevio.refunds.create({}); console.log(result); } run();
{ "id": "<string>", "object": "<string>", "amount": 123, "currency": "<string>", "reason": "<string>", "status": "<string>", "created_at": "<string>", "provider": "<string>", "metadata": {}, "order": "<string>" }
Creates a new refund for an order
API key in the format: Bearer {api_token}
Order ID to refund
Amount to refund in cents (omit for full refund)
Reason for the refund
Internal notes about the refund
Refund created
Was this page helpful?