Skip to navigation

Refund a payment

Reverse a captured payment in full or in part.

Create a refund against the PaymentIntent (or a charge). Omit amount for a full refund; pass amount (smallest currency unit) for a partial one. The refund shows up in balance transactions as type: "refund".

curl
curl https://api.devfluveo.com/v1/refunds \
-u sk_test_123: \
-d payment_intent=pi_1A9e8AzB2xQRH9Jf \
-d reason=requested_by_customer

For a partial refund, add amount:

curl
curl https://api.devfluveo.com/v1/refunds \
-u sk_test_123: \
-d payment_intent=pi_1A9e8AzB2xQRH9Jf \
-d amount=2000

reason accepts duplicate, fraudulent, or requested_by_customer. See the API Reference for the full Refund object and its statuses.