Direct API integration
If you want full control over the customer experience, you can integrate directly with the ekko API. This lets you calculate impact, create contributions, and manage reversals at any point in your journey.
Step-by-step flow
-
Create a brand. Use
POST /organisations/brand/onboardingto create a brand and receive aproductId. -
Calculate impact. Use
POST /impact_calculatorwith the transaction details. The response gives you:carbonImpact.gramsor.ounces(raw footprint)carbonImpact.equivalents(real-world comparisons)compensation.compensationValue(the suggested amount, includes service fee)roundUpvalues for simple contribution flowscalcReferenceto track conversion from calculation to compensation/ contribution
-
Make a contribution. Use
POST /projects/fundswith either:- the
compensationValuefrom the calculator - or a custom
contributionamount chosen by the customer. The response includes areferenceyou’ll use for reconciliation.
- the
-
Reverse a contribution. If a transaction is refunded or cancelled, call
POST /reversalwith the originalreference. This creates a negative record linked back to the original contribution.
Best practices
- Always store the
productIdandreferencevalues for reconciliation - Display equivalents alongside raw carbon values to keep the data relatable
- Use
roundUpfor frictionless customer contributions - Trigger reversals only after the underlying payment has been refunded
- Check your records in
POST /impact_recordsfor a full ledger of contributions and reversals
Updated 7 months ago
