API v1 is deprecated. It keeps working until the end date you receive from us. Build new integrations on API v2 and read the migration guide.
Developers

Removed endpoints

Everything that bought, gifted or cancelled trees answers 410 Gone.

The WoodYouCare Platform shows proof of the trees your company contributes to. It does not sell trees: that is the domain of the WoodYouCare Foundation. Every v1 endpoint that created or changed an order therefore answers 410 Gone:

EndpointWasNow
POST /buy-treeBuy trees, invoiced monthlyDonate at the Foundation
POST /buy-treesBuy products for a customerDonate at the Foundation, then assign trees to a recipient with v2
POST /gift-treeGift a tree to a personAssign trees to a recipient with v2
POST /buy-vouchersBuy gift vouchersGift codes in v2 or in the Platform dashboard
POST /cancel-order/{order_id}Cancel an order within 30 daysContact the Foundation
GET /get-productsList products and pricesProducts are Foundation domain
POST /calculate-delivery-compentationTrees needed for a deliveryRemoved, no successor

The 410 body:

{
  "message": "This endpoint has been retired. Trees are now donated through the WoodYouCare foundation.",
  "documentation": "https://developers.woodyou.care/docs/v1/migrating-to-v2"
}

Like every v1 response it also carries the deprecation headers.

What this means for your integration

  • Webshops that planted a tree per order no longer buy on the fly. Your company pledges trees at the Foundation in advance; the trees show up as an allocation. From v2 you assign one to each customer as a recipient, with a personal certificate.
  • Monthly invoices for trees bought through the API stop with the last order placed before the switch. Old invoices stay available in the Platform dashboard.
  • Certificates for old orders keep their URLs.

On this page