post https://cac-api.cashfree.com/cac/v1/refunds
Use this API to initiate refunds.
URLs
- Production/Live: https://cac-api.cashfree.com/cac/v1/refunds
- Sandbox/Test: <https://cac-gamma.cashfree.com/cac/v1/refunds
Click to view the response parameters.
Response Description
Subcode | Status | Message |
---|---|---|
400 | ERROR | Amount cannot be null. |
400 | ERROR | MerchantRefId cannot be blank |
400 | ERROR | ReferenceId cannot be null |
400 | ERROR | MerchantRefId must be less than or equal to 50 characters. |
400 | ERROR | Note must be less than or equal to 150 characters. |
400 | ERROR | Refund amount should be equal to the transaction amount. |
400 | ERROR | Amount is not valid, can have decimal only upto two digits. |
400 | ERROR | Refund already exists on this transaction. |
400 | ERROR | Can't process this refund. Transaction is more than 90 days old. |
400 | ERROR | Refund can not be created for disputed transaction. |
404 | ERROR | Transaction not found {referenceId}. |
409 | ERROR | Duplicate Merchant Ref Id. |