API ReferenceWooCommerceSDKssoonWebhookssoon

Cashback

Update treasury config

PUT/api/merchants/treasury/config

Set the percentage of each completed payment that's auto-allocated to your treasury reserve. Enable/disable the feature entirely.

Authentication

Accepts either an API key (X-API-Key) or a dashboard JWT (Authorization: Bearer …).

Body parameters

enabledbooleanoptional
percentagenumberoptional

0 – 0.95 (fraction)

PUT/api/merchants/treasury/config
curl --request PUT "https://api.trevi.cash/api/merchants/treasury/config" \
  --header "Content-Type: application/json" \
  --header "X-API-Key: $BTPAY_API_KEY" \
  --data '{ "enabled": true, "percentage": 0.1 }'