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:
| Endpoint | Was | Now |
|---|---|---|
POST /buy-tree | Buy trees, invoiced monthly | Donate at the Foundation |
POST /buy-trees | Buy products for a customer | Donate at the Foundation, then assign trees to a recipient with v2 |
POST /gift-tree | Gift a tree to a person | Assign trees to a recipient with v2 |
POST /buy-vouchers | Buy gift vouchers | Gift codes in v2 or in the Platform dashboard |
POST /cancel-order/{order_id} | Cancel an order within 30 days | Contact the Foundation |
GET /get-products | List products and prices | Products are Foundation domain |
POST /calculate-delivery-compentation | Trees needed for a delivery | Removed, 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.