API ReferenceWooCommerceSDKssoonWebhookssoon

On-chain

Disconnect the xpub

POST/api/v2/onchain/disconnect

Stop issuing new receiving addresses. Addresses already given out still belong to the merchant and keep working.

  • Dashboard-only (merchant JWT).
  • Nothing is forfeited. Trevi could never spend from the xpub, so removing it takes nothing away — coins already sent to derived addresses are, and always were, the merchant's.

Authentication

Requires a dashboard session JWT in the Authorization: Bearer … header.

POST/api/v2/onchain/disconnect
curl --request POST "https://api.trevi.cash/api/v2/onchain/disconnect" \
  --header "Authorization: Bearer $TREVI_JWT"