EarnedStats Docs

Revenue

Creem

Send Creem sales to EarnedStats.

1. Add the webhook

Creem, Developers, Webhooks, add the address below.

Endpoint
https://earnedstats.com/api/webhooks/creem/YOUR_SITE_ID

Events: checkout.completed, refund.created.

2. The secret

Copy the signing secret Creem shows. Save it in Settings, Revenue, Creem.

3. The visitor id

Add the visitor id to the checkout metadata when your server creates it.

Code
metadata: { es_visitor_id: body.es_visitor_id }