Skip to main content
POST
/
ppi
/
wallet
/
debit
Debit Wallet
curl --request POST \
  --url https://api.cashfree.com/ppi/wallet/debit \
  --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 '
{
  "debit_id": "DEBIT420984",
  "user_id": "USER827364",
  "wallet_id": "WALLET936721",
  "cf_sub_wallet_id": "35246543210987654321",
  "amount": 600,
  "remarks": "Purchase of electronics item"
}
'
{
"debit_id": "DEBIT420984",
"user_id": "USER827364",
"cf_debit_id": "8901234567890123456",
"wallet_id": "WALLET936721",
"sub_wallet": {
"cf_sub_wallet_id": "35246543210987654321",
"name": "Gift Wallet",
"type": "GIFT_PPI",
"status": "ACTIVE",
"balance": 1500.75
},
"applied_gift_codes": [
{
"code": "GHO-8900-HKDH-8899",
"amount_debited": 100,
"value": 100,
"expiry": "2026-07-28T10:30:00Z"
},
{
"code": "NMK-8454-JKJD-4224",
"amount_debited": 500,
"value": 600,
"expiry": "2026-07-28T10:30:00Z"
}
],
"status": "SUCCESS",
"amount": 600,
"remarks": "Purchase of electronics item",
"initiated_at": "2025-07-28T10:30:00Z",
"processed_at": "2025-07-28T10:30:00Z"
}

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

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

Required string length: 1 - 100
Example:

"DEBIT420984"

user_id
string
required

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

Required string length: 1 - 50
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 from which the amount will be debited.

Required string length: 1 - 100
Example:

"35246543210987654321"

amount
number<double>
required

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

Required range: x >= 1
Example:

100.5

remarks
string

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

Maximum string length: 500
Example:

"Payment for subscription service"

Response

Debit request processed successfully.

debit_id
string

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

Example:

"DEBIT420984"

user_id
string

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

Example:

"USER827364"

cf_debit_id
string

Unique identifier for the debit transaction, generated by Cashfree.

Example:

"8901234567890123456"

wallet_id
string

Primary wallet ID from which the amount was debited.

Example:

"WALLET936721"

sub_wallet
object

Sub-wallet details from which the amount was debited.

applied_gift_codes
object[]

List of gift codes used in the transaction are applicable for GIFT type wallets.

status
string

Status of the debit transaction.

Example:

"SUCCESS"

amount
number<double>

Amount that was debited.

Example:

600

remarks
string

Remarks for the debit transaction.

Example:

"Purchase of electronics item"

initiated_at
string<date-time>

Timestamp when the debit transaction was initiated.

Example:

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

processed_at
string<date-time>

Timestamp when the debit transaction was processed.

Example:

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