Vatly
Api Reference

Chargebacks

On this page, we'll dive into the different chargeback endpoints you can use to query chargebacks programmatically.

The chargeback model

The chargeback model contains all the information about payment disputes, including the disputed amount, settlement amount, reason, and related order information.

Chargebacks are created automatically when a payment provider initiates a dispute. They are read-only resources.

Properties

NameTypeDescription
idstringUnique identifier for the chargeback (starts with chb_).
resourcestringThe resource type. Always chargeback.
merchantIdstringID of the merchant.
testmodebooleanWhether this chargeback is in test mode.
amountMoneyAmount of the chargeback. A Money object with value (decimal string) and currency (ISO 4217 code).
settlementAmountMoneyAmount that was deducted from the merchant's settlement. May differ from amount due to currency conversion or fees.
reasonstringReason code or description for the chargeback. Common reasons include fraud, product_not_received, product_unacceptable, duplicate, or subscription_canceled.
originalOrderIdstringID of the original order that was charged back.
orderIdstring | nullID of the credit note order created for this chargeback. Only present after the chargeback is processed.
createdAtstringWhen this chargeback was created (ISO 8601 format).
linksobjectHATEOAS links to related resources. Contains self, originalOrder, and optionally order (the credit note).

List all chargebacks

GET /v1/chargebacks

This endpoint allows you to retrieve a paginated list of all chargebacks across all orders.

Optional parameters

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

Get a chargeback

GET /v1/chargebacks/:chargebackId

This endpoint allows you to retrieve a specific chargeback by its ID.

Parameters

NameTypeDescription
chargebackIdstringThe unique identifier of the chargeback.
curl https://api.vatly.com/v1/chargebacks/chb_abc123def456 \
  -H "Authorization: Bearer live_your_api_key_here"

List order chargebacks

GET /v1/orders/:orderId/chargebacks

This endpoint allows you to retrieve a paginated list of chargebacks for a specific order.

Parameters

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

Get an order chargeback

GET /v1/orders/:orderId/chargebacks/:chargebackId

This endpoint allows you to retrieve a specific chargeback within an order context.

Parameters

NameTypeDescription
orderIdstringThe unique identifier of the order.
chargebackIdstringThe unique identifier of the chargeback.
curl https://api.vatly.com/v1/orders/ord_original123/chargebacks/chb_abc123def456 \
  -H "Authorization: Bearer live_your_api_key_here"
Copyright © 2026