Skip to main content

Refunds API

Refunds return funds to a customer's original payment method. See the Refunds guide for a full walkthrough.

The Refund object​

{
"id": "re_3NqX2B4eHqLMHCmD",
"object": "refund",
"amount": 2000,
"currency": "usd",
"charge": "ch_3NqX2B4eHqLMHCmD",
"payment_intent": "pi_3NqX2B4eHqLMHCmD",
"reason": "customer_request",
"status": "succeeded",
"created": 1748476800
}

Create a Refund​

POST /v1/refunds

ParameterTypeDescription
chargestringID of the charge to refund.
payment_intentstringID of the PaymentIntent to refund.
amountintegerAmount to refund in cents. Omit for a full refund.
reasonstringcustomer_request, duplicate, or fraudulent.
curl https://api.meridian.dev/v1/refunds \
-u sk_test_4eC39HqL...: \
-d charge=ch_3NqX2B4eHqLMHCmD \
-d amount=500 \
-d reason=customer_request

Retrieve a Refund​

GET /v1/refunds/:id

curl https://api.meridian.dev/v1/refunds/re_3NqX2B4e \
-u sk_test_4eC39HqL...:

List all Refunds​

GET /v1/refunds

curl "https://api.meridian.dev/v1/refunds?charge=ch_3NqX2B4eHqLMHCmD" \
-u sk_test_4eC39HqL...: