kirha logo
Api Reference

POST Account Top-up

POST
/account/topup
typestring
Value in"crypto"
currency_idstring
creditsinteger
Formatint64

Response Body

curl -X POST "https://api.kirha.com/billing/v1/account/topup" \  -H "Content-Type: application/json" \  -d '{    "type": "crypto",    "currency_id": "eth",    "credits": 1000  }'
{
  "id": "tp_789",
  "account_id": "acc_123",
  "requested_at": 1712338123,
  "purchased_at": null,
  "status": "requested",
  "credits": 1000,
  "amount": "500000000000000000",
  "currency_id": "eth",
  "decimals": 18,
  "destination_address": "0xTreasury..."
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}