Vatly
Api Reference

Refunds

On this page, we'll dive into the global refund endpoints for managing refunds across your entire account.

The refund model

The refund model contains all the information about refunds, including the refund lines, amounts, and tax information.

Properties

NameTypeDescription
idstringUnique identifier for the refund (starts with ref_).
resourcestringThe resource type. Always refund.
orderIdstring | nullID of the credit note order created for this refund. Only present after the refund is processed.
merchantIdstringID of the merchant.
customerIdstringID of the customer receiving the refund.
testmodebooleanWhether this refund is in test mode.
statusstringThe current status of the refund. Can be pending, completed, failed, or canceled.
originalOrderIdstringID of the original order being refunded.
totalMoneyTotal refund amount including taxes. A Money object with value (decimal string) and currency (ISO 4217 code).
subtotalMoneyRefund subtotal before taxes.
taxSummaryMoneyTotal tax amount being refunded.
linesarrayArray of refund line items. Each line includes id, resource, description, quantity, basePrice, total, subtotal, and taxes.
createdAtstringWhen this refund was created (ISO 8601 format).
linksobjectHATEOAS links to related resources. Contains self, originalOrder, and optionally order (the credit note).

List all refunds

GET /v1/refunds

This endpoint allows you to retrieve a paginated list of all refunds across your account.

Optional parameters

NameTypeDescription
limitintegerThe number of refunds to return (default: 10, max: 100).
startingAfterstringA cursor for use in pagination. Returns results after this refund ID.
endingBeforestringA cursor for use in pagination. Returns results before this refund ID.
curl -G https://api.vatly.com/v1/refunds \
  -H "Authorization: Bearer live_your_api_key_here" \
  -d limit=10

Get a refund

GET /v1/refunds/:refundId

This endpoint allows you to retrieve details of a specific refund.

Parameters

NameTypeDescription
refundIdstringThe unique identifier of the refund.
curl https://api.vatly.com/v1/refunds/ref_abc123def456 \
  -H "Authorization: Bearer live_your_api_key_here"
Copyright © 2026