ImpactPay calculator
POST: /impactpay/calculate
The ImpactPay Calculate endpoint can be used in an offline context, e.g. for receipts or emails. Use it when you want a no‑SDK, post‑purchase journey where customers complete their contribution on ekko‑hosted pages.
See the API reference for example payloads.
What it does
- calculates the carbon footprint and compensation amount for the input transaction
- returns a
calcReferenceto add to the base ImpactPay URL, so that the correct values are shown to your customer
Key fields explained
productId→ associates the calculation with your configured product and projectsamount→ object withvalueandcurrencyCodeused to calculate impact and contributionmerchant→ details includingmccand location to improve impact accuracycalcReference→ identifier returned by the API to build the hosted URLcompensation.compensationValue→ compensation required to balance this specific transaction (includes ImpactPay service fee)
Best practices
- Use in offline post‑purchase flows, such as emails or receipts
Updated 7 months ago
