Authorizations
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret in the Merchant Dashboard.
Headers
API version to be used. Format is in YYYY-MM-DD
Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
Idempotency works by saving the resulting status code and body of the first request made for any given idempotency key, regardless of whether it succeeded or failed. Subsequent requests with the same key return the same result, including 500 errors.
Currently supported on all POST calls that uses x-client-id & x-client-secret. To use enable, pass x-idempotency-key in the request header. The value of this header must be unique to each operation you are trying to do. One example can be to use the same order_id that you pass while creating orders
Path Parameters
The id which uniquely identifies your order
Response
OK
Cashfree Payments ID of the payment for which refund is initiated
Cashfree Payments ID for a refund
Merchantās order Id of the order for which refund is initiated
Merchantās refund ID of the refund
Type of object
refund
Amount that is refunded
Currency of the refund amount
Note added by merchant for the refund
This can be one of ["SUCCESS", "PENDING", "CANCELLED", "ONHOLD", "FAILED"]
SUCCESS
, PENDING
, CANCELLED
, ONHOLD
The bank reference number for refund
Charges in INR for processing refund
Description of refund status
Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs
This can be one of ["PAYMENT_AUTO_REFUND", "MERCHANT_INITIATED", "UNRECONCILED_AUTO_REFUND"]
PAYMENT_AUTO_REFUND
, MERCHANT_INITIATED
, UNRECONCILED_AUTO_REFUND
Method or speed of processing refund
STANDARD
, INSTANT
Time of refund creation
Time when refund was processed successfully
How fast refund has to be proecessed
{
"requested": "STANDARD",
"accepted": "STANDARD",
"processed": "STANDARD",
"message": "Error message, if any"
}