Docs/REST API/api_spend_wallet
POST/api/v1/wallet/spendwallet:spend (X-Api-Key / Bearer Token)

Spend Wallet Funds

Purchase an asset directly using wallet credits.

Description

Debits the asset price from wallet balance and grants immediate ownership.

Parameters

1 parameters
ParameterTypeRequiredDefaultDescription
assetIdstringRequiredAsset identifier to purchase.

Request Example

curl -X POST https://api.trykrafto.xyz/api/v1/wallet/spend \
  -H "X-Api-Key: kr_live_981..." \
  -H "Content-Type: application/json" \
  -d '{"assetId": "ast_neon_matrix"}'

Response Example

application/json (200 OK)
{
  "success": true,
  "orderId": "ord_krafto_98210",
  "debitedINR": 499,
  "newBalanceINR": 1951
}