API ReferenceWooCommerceSDKssoonWebhookssoon

Dashboard

Live BTC prices

GET/api/merchants/prices

Current BTC price in every supported fiat currency. Cached server-side. No auth. Use it to convert a cart total to amount_sats before creating a payment.

  • Responds { success, prices, currencies, cached, cache_age_seconds, timestamp }. prices maps currency code to the BTC price in that currency.

Authentication

No authentication required.

GET/api/merchants/prices
curl "https://api.trevi.cash/api/merchants/prices"