Wallet
Disconnect a wallet
POST
/api/v2/wallet/disconnectStop Trevi sending instructions to the wallet. This does not revoke anything inside the wallet itself — only the merchant can do that, and they can do it without Trevi.
- Dashboard-only (merchant JWT).
- Revoking the connection INSIDE the wallet app is the authoritative action. This endpoint only stops Trevi from using the credential it holds; for a full revocation, remove the app connection in the wallet.
- Disconnecting moves no money and forfeits nothing. Cashback already reserved is resolved or released by the normal sweeps.
- Cashback offers stop, because a payout can no longer be instructed. New sales will fail with
409 no_connectionuntil a wallet is connected again.
Authentication
Requires a dashboard session JWT in the Authorization: Bearer … header.
POST
/api/v2/wallet/disconnectcurl --request POST "https://api.trevi.cash/api/v2/wallet/disconnect" \
--header "Authorization: Bearer $TREVI_JWT"Was this page helpful?
