Palbase Payments · API
/payments/wallets/test-balances/closeClose test balances
Closes the wallets' test balances before the environment goes live: each wallet's balance and any debt of test money goes to a closed test account, with a closing line in the ledger, and the answer names what was closed, wallet by wallet. What reset_test_balances: true does on a live channel's connect, for a path that has none (the Stripe App, an environment token's link). Asked again, it closes nothing. Refused with 409 already_live once the environment has gone live, and with 409 test_money_open — its open lists what — while a payment, a hold, a scheduled credit or an owed credit is open. Closed to environment tokens.
Called by your server, with the project's secret key.
curl -X POST "https://<your-ref>.palbase.studio/payments/wallets/test-balances/close" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200Test balances closed
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation CloseTestBalances of payments's contract.