Refunds
Refund a payment in full or in part. Refunds go back to the original payment method and usually take 5–10 business days to appear.
Create a refund
- curl
- Node.js
curl https://api.ledgerline.dev/v2/refunds \
-u "sk_test_51Kx…:" \
-d payment_intent=pi_3Mtw… \
-d amount=1000const refund = await ledgerline.refunds.create({
payment_intent: 'pi_3Mtw…',
amount: 1000,
});Refund statuses
Status | Meaning |
|---|---|
| The refund has been submitted to the network. |
| The funds have been returned. |
| The refund couldn't be processed; the funds return to your balance. |
| You cancelled the refund before it was submitted. |
You can't refund more than the original charge, and some payment methods (vouchers) can't be refunded at all.
Updated
Was this page helpful?