Payments
Preview cashback for a price
GET
/pay/cashback/previewCalculate the cashback a customer would earn on a given fiat amount. Use this on product pages to display "you'd earn X sats".
Authentication
Requires an API key in the X-API-Key header.
Query parameters
amountnumberrequiredPurchase amount in fiat
currencyCHFUSDEURrequiredGET
/pay/cashback/previewcurl "https://api.trevi.cash/pay/cashback/preview?amount=49.99¤cy=CHF" \
--header "X-API-Key: $BTPAY_API_KEY"Was this page helpful?
