Performs a full or partial refund on an individual line item. The refunded amount is deducted from your integrator account and refunded to the payment method(s) originally charged.
NOTE: For invoices containing user_to_user
line items, funds are deducted from your integrator account, NOT the recipient user's wallet.
Successful completion triggers these notifications |
---|
Invoice complete |
Refund completed |
For more information about event notifications, visit Webhooks.
Line item refund
Successfully refunded line item
Invalid input
Unauthorized access.
Service unavailable or server error.
{- "line_item_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "amount": 100,
- "payment_methods": [
- "<payment_method_id_1>"
], - "reason": "billing",
- "sub_reason": "Charged twice",
- "note": "Flag account"
}
{- "status": "Success",
- "message": null,
- "codes": null,
- "payload": {
- "line_item_id": "d3da84e7-a203-4453-a016-407e91eeeeee",
- "refund_invoice_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "payment_methods": {
- "<payment_method_id_1>": {
- "is_successful": true,
- "display_string": "Visa ending in 1111",
- "amount": 105,
- "currency": "USD",
- "display_amount": "USD 1.05"
}
}, - "reason": "billing",
- "sub_reason": "Charged twice",
- "note": "Flag account"
}
}