Skip to content
Maple

Core concepts

How Maple versions the Developer API: dated versions, the version each webhook endpoint keeps, the Maple-Version header, and what counts as a breaking change.

The Developer API has dated versions inside the /v1 path, as Stripe does. A version names the shape of the objects Maple returns and sends. When Maple makes a breaking change, it ships a new version, and an integration built against an older one keeps getting the shape it was built for.

The current version is 2026-11-27. It is the only version today. Changes the changelog marks Breaking before that date changed the API in place, before versions existed.

Webhook endpoints keep their version

Each webhook endpoint has an api_version, set when you create it and fixed for its life. Maple sends the endpoint its events in that version. Name a version with api_version on POST /v1/webhook_endpoints, or leave it out for the current one:

curl -X POST $MAPLE_BASE/webhook_endpoints \
-H "Authorization: Bearer $MAPLE_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-app.example.com/maple/webhooks",
"enabled_events": ["order.submitted"],
"api_version": "2026-11-27"
}'

A version Maple does not serve answers 400 invalid_request with param set to api_version. To move an endpoint to a newer version, create a new endpoint with that version, run both while you check your handler (events carry the same id, so dedupe on it), then delete the old one.

Events carry their version

Every event has an api_version: the version its data.object is in. Deliveries carry it, and so do GET /v1/events, GET /v1/events/{eventId}, replays and POST /v1/orders/{orderId}/resend. A delivery is in the version of the endpoint it goes to.

Two kinds of body predate the field, for a day at most: a retry of a delivery Maple first tried before this release, and a response replayed for an Idempotency-Key sent before it. Both are sent as they were first made, without api_version. Read a missing api_version as 2026-11-27.

{
"object": "event",
"id": "evt_...",
"type": "order.submitted",
"api_version": "2026-11-27",
"created": 1765432100,
"livemode": false,
"data": { "object": { "object": "order", "id": "ord_...", "...": "the rest of the order" } }
}

The Maple-Version header

Every Developer API response carries a Maple-Version header with the version it is in.

You may send Maple-Version on a request to name the version your code expects. Maple checks it: a version it does not serve answers 400 invalid_request with param set to Maple-Version. With one version, the header changes nothing else. Sending it now means your requests already say which version they expect when a second one ships.

What counts as a breaking change

These changes ship in a new version:

  • Removing or renaming a field, an object, an endpoint or an event type.
  • Changing a field’s type or format, or what its value means.
  • Making an optional request field required, or refusing a request that worked before.
  • Removing a value from an enum you send to Maple.

These changes can ship in the current version, so build your code to accept them:

  • New endpoints, event types, objects and optional request fields.
  • New fields on objects and events. Ignore fields you do not know.
  • New values in an enum Maple sends you, such as a status or an error code. Handle a value you do not know.
  • New error codes, and changes to error message text.
  • Changes to the order of fields, and to the format of ids, other than their prefix.

The changelog records every change, and marks breaking ones Breaking.