Docs menu
Docs/Creem

Creem integration setup

Use signed Creem webhooks to send checkout and subscription payments into Metrivo. Payment attribution stays confidence-labeled and does not invent matches.

Creem revenue is signed-webhook evidence only. Metrivo does not request a charge-capable Creem key, and a payment is never marked connected until a signed event is accepted.

Signed inbound webhooks

Metrivo only needs the webhook secret. It is encrypted before storage and never rendered back after save. Creem signs each delivery with HMAC-SHA256 in the creem-signature header, and Metrivo verifies it against the raw body before recording anything.

Setup steps

  1. 1. Open Metrivo Data Connections and generate the Creem webhook URL.
  2. 2. In Creem, open Developers → Webhook and create an endpoint with the Metrivo URL.
  3. 3. Select checkout.completed, subscription.paid, subscription.past_due and refund.created.
  4. 4. Copy the webhook secret Creem shows and save it in Metrivo.
  5. 5. Make a test-mode checkout. Metrivo marks the provider active only after a signed payment event is accepted.

Metadata for attribution

Pass Metrivo visitor and session identifiers as checkout metadata. Creem returns them on the checkout.completed event and on the subscription's later events. Without them Metrivo may fall back to customer email or leave the payment unattributed.

// Client: send this object to your checkout endpoint
const metadata = window.Metrivo.getAttributionMetadata()

// Server
await creem.checkouts.create({
  productId: "<product_id>",
  customer: { email: "customer@example.com" },
  metadata,
})

How Metrivo reads Creem events

  • checkout.completed records the first payment from the paid order.
  • subscription.paid records each renewal from its last transaction. On a first subscription payment Creem sends both events for the same transaction, and Metrivo keys the payment on the transaction id so it is counted once.
  • refund.created updates the existing payment instead of creating a new row. A refund smaller than the charge is recorded as partially refunded.
  • subscription.past_due is recorded as a failed payment so it appears in recovery reporting. subscription.unpaid is handled the same way.
  • Other subscription events are stored as lifecycle evidence and carry no money.

Contract read from the Creem documentation, checked 2026-10-28.