From eb1a2377eb75a451e185a84d997aa5be3d3c8d2f Mon Sep 17 00:00:00 2001 From: Sander van Hooft <7265703+sandervanhooft@users.noreply.github.com> Date: Tue, 1 Dec 2026 11:08:06 +0000 Subject: [PATCH] Sync openapi.yaml with the published docs Amp-Thread-ID: https://ampcode.com/threads/T-0410b2c8-0b76-4f5f-9f15-fb4da0561ffe Co-authored-by: Amp --- CHANGELOG.md | 2 ++ docs/Development.md | 4 ++-- openapi.yaml | 9 ++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea1d581..d4f8296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Sync `openapi.yaml` with the production specification: `DELETE /subscriptions/{subscriptionId}` documents a repeated cancel as a `204` no-op, and its `422` as a validation error. The generated models are unchanged. + ## 0.1.0a5 — 2026-11-30 - Sync `openapi.yaml` with the production specification (discounts). diff --git a/docs/Development.md b/docs/Development.md index bb31d0e..9db19c6 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -72,14 +72,14 @@ logging response bodies that may contain personal data. | Source | Revision | | --- | --- | -| Production OpenAPI, retrieved 2026-11-30 | [vatly-docs specification](https://github.com/vatly/vatly-docs/blob/0caf974016352f9aabb1910a01e3002ecd882d68/public/openapi.yaml) | +| Production OpenAPI, retrieved 2026-12-01 | [vatly-docs specification](https://github.com/vatly/vatly-docs/blob/90c44f87cccb5beca117464ee161437577e05640/public/openapi.yaml) | | Original JS design reference | [SDK revision](https://github.com/vatly/vatly-api-js/commit/8b0b920c29f7e7b30bf71b9e379ec0a8a1a22028) | The checked-in specification is byte-identical to that source, which docs.vatly.com serves. Its SHA-256 is: ```text -75c539cd33a5d3f5629ae5c806b9e0158ebcd48c1ff5d2a96f95a4ca47ed167c +658a9b4715267c930943e3b0a7f3e5a31641b33f3a1e8326b4f5114642522a24 ``` The specification's generated-at date is not its retrieval date. diff --git a/openapi.yaml b/openapi.yaml index 3e0714a..f6256b5 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -4055,6 +4055,9 @@ paths: - A subscription that was canceled with a grace period (the default) can be resumed via `POST /subscriptions/{subscriptionId}/resume` while its `status` is `on_grace_period` - A subscription that was canceled immediately cannot be reactivated; create a new subscription instead + - Canceling a subscription that has already ended, or canceling with a grace period while it is + already on its grace period, changes nothing: the response is still `204` and no webhook is sent. + Canceling immediately while on the grace period ends the subscription now. - Customers retain access until `renewedUntil` date (unless canceled immediately) - No refunds are issued automatically; use the Refunds API if needed tags: @@ -4087,11 +4090,7 @@ paths: '409': $ref: '#/components/responses/Conflict' '422': - description: Subscription cannot be canceled (already canceled or ended) - content: - application/json: - schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/responses/ValidationFailed' default: $ref: '#/components/responses/UnexpectedError' /subscriptions/{subscriptionId}/billing-update-link: