API ReferenceWooCommerceSDKssoonWebhookssoon

Referrals

Validate a referral code

GET/beltempo/referral/validate/:code

Lightweight existence check. Returns { valid: true } only if the code exists, is active, and belongs to your merchant.

  • Authenticated: API key or merchant JWT. An unauthenticated call returns 401.

Authentication

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

Path parameters

codestringrequired
GET/beltempo/referral/validate/:code
curl "https://api.trevi.cash/beltempo/referral/validate/alice2026" --header "X-API-Key: $TREVI_API_KEY"