Skip to main content
POST
/
ppi
/
wallet
/
credit
Credit Wallet
curl --request POST \
  --url https://api.cashfree.com/ppi/wallet/credit \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '
{
  "credit_id": "CREDIT126345",
  "user_id": "USER827364",
  "wallet_id": "WALLET936721",
  "cf_sub_wallet_id": "35246543210987654321",
  "amount": 100.5,
  "remarks": "Refund for order 123"
}
'
{
"credit_id": "CREDIT126345",
"cf_credit_id": "8901234567890123456",
"wallet_id": "WALLET936721",
"user_id": "USER827364",
"amount": 100.5,
"sub_wallet": {
"cf_sub_wallet_id": "35246543210987654321",
"name": "Gift Wallet",
"type": "GIFT_PPI",
"status": "ACTIVE",
"balance": 1500.75
},
"issued_gift_code": {
"code": "GIFT-2025-XYZ123",
"value": 100.5,
"expiry": "2025-12-31T23:59:59Z"
},
"status": "SUCCESS",
"remarks": "Refund for order 123",
"initiated_at": "2025-09-02T10:15:30Z",
"processed_at": "2025-09-02T10:20:45Z"
}

Authorizations

x-client-id
string
header
required

Your unique client identifier issued by Cashfree.

x-client-secret
string
header
required

The secret key associated with your client ID.

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
credit_id
string
required

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

Example:

"CREDIT126345"

user_id
string
required

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

Example:

"USER827364"

wallet_id
string
required

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

Example:

"WALLET936721"

cf_sub_wallet_id
string
required

Unique identifier of the sub-wallet to which the amount will be credited.

Example:

"35246543210987654321"

amount
number<double>
required

Amount to credit. Decimal values are allowed. The minimum value should be equal to or greater than 1.00 (>= 1.00).

Example:

100.5

remarks
string

Alphanumeric and whitespaces are allowed. The maximum character limit is 60.

Example:

"Refund for order #123"

Response

Credit transaction was processed as successful.

credit_id
string

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

Example:

"CREDIT126345"

cf_credit_id
string

Unique identifier for the credit transaction, generated by Cashfree.

Example:

"8901234567890123456"

wallet_id
string

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

Example:

"WALLET936721"

user_id
string

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

Example:

"USER827364"

amount
number<double>

Amount that was credited.

Example:

100.5

sub_wallet
object

Sub-wallet details to which the amount will be credited.

issued_gift_code
object

Gift code details are present when sub-wallet is of gift type.

status
string

Status of the credit operation.

Example:

"SUCCESS"

remarks
string

Remarks for the credit transaction.

Example:

"Refund for order 123"

initiated_at
string<date-time>

Timestamp when the credit transaction was initiated.

Example:

"2025-09-02T10:15:30Z"

processed_at
string<date-time>

Timestamp when the credit transaction was processed.

Example:

"2025-09-02T10:20:45Z"