Skip to main content
POST
Refund Debit Wallet

Refund Status Descriptions

The following table outlines the possible status values returned in the refund response:

Authorizations

x-client-id
string
header
required

Your unique client identifier issued by Cashfree. You can find this in your Merchant Dashboard.

x-client-secret
string
header
required

The secret key associated with your client ID. Use this to authenticate your API requests. You can find this in your Merchant Dashboard.

Headers

x-api-version
string
default:2025-11-01
required

API version to be used. Format is in YYYY-MM-DD.

Example:

"2025-11-01"

Body

application/json

Request parameters to refund a previous debit transaction back to the user's wallet.

refund_id
string
required

Unique identifier that you create to identify the refund transaction in your system. Only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.

Required string length: 1 - 50
Example:

"REFUND420984"

debit_id
string
required

Unique identifier of the original debit transaction for which the refund is being initiated. Only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.

Required string length: 1 - 50
Example:

"DEBIT1244"

user_id
string
required

Unique identifier for the user, as provided by you during PPI user creation. Only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.

Required string length: 1 - 50
Example:

"USER827364"

wallet_id
string
required

Unique identifier for the wallet, as provided by you during wallet creation. Only alphanumeric characters, periods (.), hyphens (-), and underscores (_) are allowed.

Required string length: 1 - 50
Example:

"WALLET936721"

cf_sub_wallet_id
string
required

Unique identifier of the sub-wallet from which the original debit was made and to which the refund will be credited. Only numeric characters are allowed.

Required string length: 1 - 19
Example:

"35246543210987654321"

amount
number<double>
required

Amount to refund. Decimal values are allowed. The amount should be greater than 0 and cannot exceed the original debit amount or the remaining refundable amount.

Required range: x >= 0.01
Example:

100.5

remarks
string

Additional remarks for the refund request. Alphanumeric and whitespaces are allowed. The maximum character limit is 500.

Maximum string length: 500
Example:

"Wallet Refund"

notes
object

Optional key-value pairs for any extra information. Keys and values must be strings. The following constraints apply:

  • Maximum 10 entries.
  • Keys: maximum 50 characters. Alphanumeric characters, underscores (_), periods (.), commas (,), single quotes ('), ampersands (&), hyphens (-), and spaces are allowed.
  • Values: maximum 200 characters. Same character set as keys.

Response

Success response for refunding a wallet debit.

refund_id
string

Unique identifier for the refund transaction, as provided by you during the refund request.

Example:

"REFUND420984"

debit_id
string

Unique identifier of the original debit transaction for which this refund was initiated.

Example:

"DEBIT1244"

cf_refund_id
string

Unique identifier for the refund transaction, generated by Cashfree.

Example:

"8901234567890123456"

user_id
string

Unique identifier for the user, as provided by you during PPI user creation.

Example:

"USER827364"

wallet_id
string

Primary wallet ID to which the refund amount has been credited.

Example:

"WALLET936721"

sub_wallet
object
status
enum<string>

Status of the refund operation:

  • SUCCESS: Refund has been processed successfully and amount credited to wallet
  • PENDING: Refund is being processed and will be credited shortly
Available options:
SUCCESS,
PENDING
Example:

"SUCCESS"

refunded_gift_codes
object[]

List of gift codes that were refunded in the transaction. This is applicable only for GIFT_PPI type wallets and when the refund is successful.

amount
number<double>

Amount that was refunded to the wallet.

Example:

100.5

remarks
string

Remarks for the refund transaction.

Example:

"Wallet Refund"

notes
object

Optional key-value pairs for any extra information. Keys and values must be strings. The following constraints apply:

  • Maximum 10 entries.
  • Keys: maximum 50 characters. Alphanumeric characters, underscores (_), periods (.), commas (,), single quotes ('), ampersands (&), hyphens (-), and spaces are allowed.
  • Values: maximum 200 characters. Same character set as keys.
initiated_at
string<date-time>

Timestamp when the refund transaction was initiated.

Example:

"2025-07-28T10:30:00Z"

processed_at
string<date-time> | null

Timestamp when the refund transaction was processed. Will be null if status is PENDING.

Example:

"2025-07-28T10:30:00Z"