API Documentation

Purchases

The Purchases endpoint returns purchase summaries for the authenticated user — Stripe charges grouped by charge ID, with totals and links to impact certificates.

GET /api/purchases

GET/api/purchases

Authentication

Required. Use a team API token or legacy personal API token via Basic auth or Bearer token. Test tokens are not currently supported on this endpoint — use a live token.

Request

No body. No query parameters.

Success response

HTTP 200

  • totalAmountPaidByCustomer — Sum of amounts paid across all orders in this charge (USD cents)
  • totalTons — Sum of certified offset tons only
  • certificateUrl — Link to the impact certificate page for this purchase

Purchases are sorted by createdAt descending.

Error responses

  • 403 — Missing or invalid authentication

Wren Climate, PBC

Take real, effective climate action with Wren’s all-in-one climate platform.



Products

SubscriptionClimate actionsCarbon calculatorOffset flightsOffset anythingPurchase giftsWren APIWren for Business
One Percent for the Planet logoTreehugger Best of Green Tech 2021Product Hunt Social Impact Product of the Year
Wren Climate, PBC © 2026Privacy PolicyTerms of Use