Payments
Sync cashback settings (plugin)
PUT
/pay/settings/cashbackPlugin-side write. Sets the cashback percentage so the storefront stays in sync with the dashboard. Range 0–10.
Authentication
Requires an API key in the X-API-Key header.
Body parameters
cashback_percentnumberrequiredInteger 0–10. 0 disables cashback.
PUT
/pay/settings/cashbackcurl --request PUT "https://api.trevi.cash/pay/settings/cashback" \
--header "Content-Type: application/json" \
--header "X-API-Key: $BTPAY_API_KEY" \
--data '{ "cashback_percent": 3 }'Was this page helpful?
