Palbase Payments · API
POST
/payments/walletsCreate or update wallet definition
Creates or updates a closed-loop wallet definition (currency, top-up bounds, expiry policy).
Called by your server, with the project's secret key.
Request body
activeboolean · requiredTrue when customers can top up and spend from this wallet.currencystring · required3-letter ISO 4217 currency code.expires_daysinteger (int32) · optionalOptional default lot expiry in days.keystring · requiredStable wallet key (e.g. try, usd, store_credit).kind"fiat" | "points" · requiredWallet kind (fiat or points).namestring · requiredHuman-readable wallet name.topup_maxinteger (int64) · requiredMaximum top-up amount in minor units.topup_mininteger (int64) · requiredMinimum top-up amount in minor units.curl
curl -X POST "https://<your-ref>.palbase.studio/payments/wallets" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"active":false,"currency":"string","key":"string","kind":"fiat","name":"string","topup_max":0,"topup_min":0}'Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation UpsertWallet of payments's contract.