What is recorded
Each payment is stored under Creem’s transaction id, so a sale reported by the checkout and the subscription is stored once. Every payment is read back from Creem’s API with your key before it counts as verified revenue.
Connect Creem
1
Open the Creem panel
In CrispStats, open the site’s Settings, then Integrations. Select Connect a payment provider and choose Creem.
2
Create the API key
Under Creem API key, select Open API keys in Creem. Then:
- Turn off Test mode in the sidebar, then open Developers.
- Create a new API key named CrispStats.
- Give it Read on every scope, and Write on Webhooks so sales show up the moment they happen.
- Copy the key and paste it here.
3
Paste the key and connect
Paste the key. CrispStats checks it with Creem at once. Select Connect Creem.With Write on Webhooks, CrispStats creates one webhook for this site, named CrispStats revenue attribution, and the row shows Connected. Live. Without it, the row says “Updates every 2 minutes. Add Write on Webhooks to the key to see sales the moment they happen.”
4
Pass the visitor id at checkout
See pass the visitor id at checkout below.
What the key can do
Give the key no other write access. CrispStats never moves money. The names of Creem’s scopes in the key dialog may differ slightly from the ones above; choose read access everywhere and write access on webhooks only.
How fresh the numbers are
With the webhook, Creem sends each sale within seconds, and CrispStats checks every 15 minutes as a safety net. Without it, CrispStats reads new transactions every 2 minutes. Refunds of older sales reach a connection without the webhook through a daily check, so they can take up to a day to appear.Past payments
When you connect, CrispStats imports every transaction since your first. Creem keeps no checkout metadata for past one-time sales, so those are imported without a visit: they count in revenue but not in the source breakdowns. Past subscription payments take the subscription’s metadata. See revenue history.Test mode
Creem keeps test and live keys apart, and a test key works only in test mode. A key that only Creem’s test environment accepts gets “This is a test key. Test payments show with a Test tag and never count as verified revenue.” and the choice of Connect in test mode or Use a live key.Pass the visitor id at checkout
Add the id fromcrispstats.id() to the checkout’s metadata as crispstats_visitor_id:
https://test-api.creem.io. Renewals and refunds read the id from the subscription, which carries the checkout’s metadata. The checkout’s request_id is read as the visitor id only when it is shaped like one, and the customer’s external_id is used as your user id when the metadata has none.
Disconnect
Select Disconnect on the Creem row. CrispStats deletes its webhook in Creem and destroys the saved key and signing secret. Payments already recorded stay. If Creem does not let CrispStats remove the webhook, delete the one named CrispStats revenue attribution in Creem, under Developers, then Webhooks.Connections made earlier by pasting a webhook secret keep working. They cannot import history or verify payments: connect again with a key to add both.
Next steps
Pass the visitor id
When there is no id, and attributing across days.
Refunds and renewals
How payment kinds are recorded across providers.
Revenue history
What the import reads and how it avoids counting twice.