API ReferenceWooCommerceSDKssoonWebhookssoon

Payments

Sync cashback settings (plugin)

PUT/pay/settings/cashback

Plugin-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_percentnumberrequired

Integer 0–10. 0 disables cashback.

PUT/pay/settings/cashback
curl --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 }'