{
  "_endpoint": "POST https://api.crmsolid.com/public/v1/revenue/events",
  "_headers": {
    "Authorization": "Bearer rsk_live_…",
    "Content-Type": "application/json"
  },
  "_readme": [
    "A sale event with every optional field filled in, so you can see the full",
    "shape and delete what you do not have. Only externalId, amount and",
    "occurredAt are required; customer.email is what makes contact matching work.",
    "",
    "externalId is your idempotency key. Post the same externalId twice and the",
    "second call UPDATES the first event rather than creating a duplicate - which",
    "is exactly what you want when a webhook retries.",
    "",
    "The rsk_ key is shown once at creation and stored only as a hash. If you lose",
    "it, generate a new one; it cannot be recovered."
  ],
  "externalId": "order-2026-000481",
  "type": "sale",
  "amount": 149.9,
  "currency": "USD",
  "occurredAt": "2026-08-31T14:22:05Z",
  "status": "completed",
  "product": {
    "sku": "PLAN-PRO-MONTHLY",
    "name": "Pro plan, monthly",
    "quantity": 1,
    "unitPrice": 149.9
  },
  "customer": {
    "email": "buyer@example.com",
    "name": "Ada Lovelace",
    "phone": "+441234567890",
    "country": "GB",
    "externalId": "cust_8812"
  },
  "fees": {
    "payment": 4.65,
    "platform": 0.0,
    "shipping": 0.0,
    "tax": 24.98
  },
  "attribution": {
    "utmSource": "google",
    "utmMedium": "cpc",
    "utmCampaign": "brand-defense",
    "gclid": "Cj0KCQjw…"
  },
  "metadata": {
    "storefront": "uk",
    "couponCode": "LAUNCH10",
    "note": "Anything you put here is stored verbatim and returned unchanged."
  }
}
