Skip to content

Reference

Versioning and changes ​

How the Stage Fleet Services API changes over time, what you can rely on, and how you hear about changes before they reach your integration.

API versions ​

The path names the API and its major version: /fleet is the Fleet Services API and v1 its version.

text
https://fleet.parkingmgt.com/fleet/v1

/fleet/v1 is the current version. Within a major version, Stage only makes backward-compatible changes, so an integration built today keeps working without code changes. A breaking change gets a new major version (/fleet/v2), and the old version keeps running next to it until its announced sunset date. Other Stage APIs, for example one for service providers, get their own namespace next to /fleet.

Webhook payloads also carry an api_version date (see Webhooks); it names the payload format and follows the same compatibility rules.

Backward-compatible changes ​

These changes ship within v1 at any time and are listed in the changelog. Build your integration so it tolerates all of them:

ChangeWhat your integration should do
New endpointsNothing; use them when you need them.
New optional request parameters and body fieldsNothing; existing requests behave the same without them.
New fields in responses and webhook payloadsIgnore fields you don't know. Don't use strict deserialization that rejects unknown fields.
New enum values, such as a new reservation status, access method, or event source, and new servicesHandle unknown values with a safe default, for example skip a service_id you don't support.
New webhook event typesReturn 2xx for events you don't handle. Endpoints only receive the types they subscribe to, but plan for new ones.
New error codes for new situationsBranch on the error code first, then fall back on the HTTP status.
Changes to the format or length of IDs and other opaque strings, up to 255 charactersTreat them as opaque, don't parse them, and store them in a column that fits 255 characters.
Changes to the order of fields in a response, or to human-readable title and detail textDon't depend on field order or on message text.

Breaking changes ​

A breaking change is one that could stop a correctly built integration from working: removing or renaming an endpoint, field, or enum value; adding a new required parameter; changing a field's type or meaning; or changing an existing error's code or status.

Breaking changes only ship in a new major version. When there is one:

  • Both versions run side by side, on the same base URL with a different path (/fleet/v1 and /fleet/v2), with the same keys and workspaces.
  • The new version is documented, with a migration guide, before the old one is deprecated.
  • You move at your own pace until the old version's sunset date.

Before general availability

While Stage is in early access, PMC may still make breaking changes to v1. Each one is listed in the changelog and shared with your team in advance.

Deprecation and sunset ​

When PMC retires an endpoint, a field, or a whole version:

  1. Announcement. The deprecation is published in the changelog and emailed to the owners and admins of every organization. The notice names the replacement and the sunset date.
  2. Deprecation headers. From the announcement on, responses from a deprecated endpoint include standard headers, so you can detect them in logs and monitoring.
  3. Sandbox first. Removals reach the sandbox workspace before production, so you can verify your integration before the sunset date.
  4. Sunset. On the sunset date the endpoint stops working. For v1, there are at least 12 months between the deprecation notice and the sunset date.
http
HTTP/1.1 200 OK
Deprecation: @1798761600
Sunset: Sat, 01 Jan 2028 00:00:00 GMT
Link: <https://fleet.parkingmgt.com/docs/changelog>; rel="deprecation"; type="text/html"
HeaderMeaning
DeprecationWhen the endpoint was deprecated, as a Unix timestamp prefixed with @ (RFC 9745). @1798761600 is 2027-01-01 00:00 UTC.
SunsetWhen the endpoint stops working, as an HTTP date (RFC 8594).
Link with rel="deprecation"Where the deprecation is explained, usually the changelog entry with migration steps.

Log a warning whenever a response carries a Deprecation header, so a deprecation shows up in your monitoring long before the sunset date.

Webhooks ​

Webhook payloads follow the same rules as API responses. New fields and new event types can appear at any time, so your receiver must ignore fields it doesn't know and acknowledge event types it doesn't handle with a 2xx response. A breaking change to a payload only ships with a new api_version, announced in the changelog like any other deprecation.

SDKs ​

Official SDKs use semantic versioning. Minor and patch releases add support for backward-compatible API changes and fix bugs. A new SDK major version can contain breaking changes to the SDK itself, and SDK majors track API majors: the SDK that targets /fleet/v2 is a new major release. Upgrade within a major version whenever you like.

Stay informed ​

  • Read the changelog: every API change is listed there, newest first.
  • Keep the email addresses of your organization's owners and admins current in the Fleet Console; deprecation notices go to them.
  • Watch for Deprecation and Sunset headers in your logs.
  • Questions about an upcoming change go to your PMC contact.