Revenue attribution

Send payments from any provider

Using Gumroad, your own billing or another provider? Send each payment, renewal and refund from your server with a website API key and the visitor id.

Using Gumroad, your own billing or anything else? Send each payment from your server with a website API key (Settings → API). Include the visitor id from the supr_visitor_id cookie, saved when the customer checked out.

curl -X POST https://supranalytics.app/api/v1/payments \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 29.99,
    "currency": "USD",
    "transaction_id": "order_123",
    "visitor_id": "<supr_visitor_id cookie>",
    "email": "ada@example.com"
  }'

amount is in major units (29.99, not cents) and transaction_id is required. Every field, the refund call and the responses are in the API reference.

Refunds

Send the same transaction_id with "refunded": true.

Renewals

Send "renewal": true, with the same customer_id as the first payment: SuprAnalytics credits it to that customer's visitor even without a visitor id.

AI agent or LLM? Read this page as Markdown