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.

Authentication

Requires an API key in the X-API-Key header.

Path parameters

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