@commet/node 9.7.0 → 9.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -199,7 +199,7 @@ The following Commet-specific tools remain available:
199
199
  | `get_current_organization` | Get the organization used by API tools |
200
200
  | `search_docs` | Search the live Commet documentation by semantic query |
201
201
 
202
- The previous MCP endpoint remains available at `https://commet.co/mcp` with its original tools and behavior. New connections should use v2.
202
+ The previous endpoint, `https://commet.co/mcp`, is retired. It no longer exposes tools: it tells the connected agent to reconnect at `https://commet.co/mcp/v2`. Replace the URL in your client configuration and sign in again.
203
203
 
204
204
  > **Warning**
205
205
  >
@@ -213,11 +213,12 @@ Update a customer's name, external ID, or metadata.
213
213
 
214
214
  `POST /customers/batch` · operation `batch-create-customers`
215
215
 
216
- Create up to 100 customers in a single request.
216
+ Create up to 100 customers in a single request. With planGroupId, each customer without an open subscription starts on that group's starting plan (see planGroupId), and the entry of a deleted customer fails with customer_deleted.
217
217
 
218
218
  ### Parameters
219
219
 
220
220
  - `customers` (`Array<{ email: string; id?: string; externalId?: string; fullName?: string; taxDocument?: string; timezone?: Timezone; metadata?: Record<string, unknown>; address?: { line1: string; line2?: string; city: string; state?: string; postalCode: string; country: string; region?: string } }>`, required)
221
+ - `planGroupId` (`string`, optional) — Plan group whose starting plan the customer starts on when it has no open subscription: its signup trial, a trial without a payment method, when the group has one and the customer never had that plan, otherwise its default plan. A customer who already had the signup trial plan in a group without a default plan starts on none. Without it, no plan is assigned.
221
222
 
222
223
  ### Request options
223
224
 
@@ -251,7 +252,7 @@ List customers with cursor-based pagination.
251
252
 
252
253
  `POST /customers` · operation `create-customer`
253
254
 
254
- Create a new customer. Idempotent when customerId is provided.
255
+ Create a new customer. Idempotent when customerId is provided. With planGroupId, a customer without an open subscription starts on that group's starting plan (see planGroupId), and the externalId of a deleted customer is rejected.
255
256
 
256
257
  ### Parameters
257
258
 
@@ -264,6 +265,7 @@ Create a new customer. Idempotent when customerId is provided.
264
265
  - `email` (`string`, required)
265
266
  - `timezone` (`Timezone`, optional)
266
267
  - `metadata` (`Record<string, unknown>`, optional)
268
+ - `planGroupId` (`string`, optional) — Plan group whose starting plan the customer starts on when it has no open subscription: its signup trial, a trial without a payment method, when the group has one and the customer never had that plan, otherwise its default plan. A customer who already had the signup trial plan in a group without a default plan starts on none. Without it, no plan is assigned.
267
269
 
268
270
  ### Request options
269
271
 
@@ -5,7 +5,7 @@ Generated from Commet API version `2026-08-27`.
5
5
  Use this reference for the exact resources, methods, parameters, and return types available in the installed SDK.
6
6
 
7
7
  - [Schemas](../schemas.md) — generated models and enums
8
- - [API errors](../errors/index.md) — 83 version-matched error references
8
+ - [API errors](../errors/index.md) — 87 version-matched error references
9
9
  - [Addons](./addons.md) — 6 operations
10
10
  - [Api Keys](./api-keys.md) — 3 operations
11
11
  - [Provisioning](./provisioning.md) — 1 operations
@@ -23,7 +23,7 @@ Use this reference for the exact resources, methods, parameters, and return type
23
23
  - [Portal](./portal.md) — 1 operations
24
24
  - [Promo Codes](./promo-codes.md) — 4 operations
25
25
  - [Seats](./seats.md) — 6 operations
26
- - [Subscriptions](./subscriptions.md) — 23 operations
26
+ - [Subscriptions](./subscriptions.md) — 26 operations
27
27
  - [Test Clock](./test-clock.md) — 3 operations
28
28
  - [Transactions](./transactions.md) — 4 operations
29
29
  - [Usage](./usage.md) — 3 operations
@@ -30,7 +30,7 @@ Replace reusable offer terms. Existing applications keep their immutable accepte
30
30
 
31
31
  - `id` (`string`, required)
32
32
  - `name` (`string`, required)
33
- - `phases` (`Array<{ type: "free_trial"; durationDays: number } | { type: "percentage"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; amounts: Array<{ currency: string; amount: number }> } | { type: "fixed_price"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; prices: Array<{ currency: string; amount: number }> }>`, required)
33
+ - `phases` (`Array<{ type: "percentage"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; amounts: Array<{ currency: string; amount: number }> } | { type: "fixed_price"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; prices: Array<{ currency: string; amount: number }> }>`, required)
34
34
  - `metadata` (`Record<string, unknown>`, optional)
35
35
  - `startsAt` (`string | null`, optional)
36
36
  - `endsAt` (`string | null`, optional)
@@ -89,7 +89,7 @@ Create reusable offer terms without assigning a plan, price, eligibility rule, o
89
89
  ### Parameters
90
90
 
91
91
  - `name` (`string`, required)
92
- - `phases` (`Array<{ type: "free_trial"; durationDays: number } | { type: "percentage"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; amounts: Array<{ currency: string; amount: number }> } | { type: "fixed_price"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; prices: Array<{ currency: string; amount: number }> }>`, required)
92
+ - `phases` (`Array<{ type: "percentage"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; percentage: number } | { type: "amount_off"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; amounts: Array<{ currency: string; amount: number }> } | { type: "fixed_price"; durationCycles: number | null; durationInterval?: "weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | null; prices: Array<{ currency: string; amount: number }> }>`, required)
93
93
  - `metadata` (`Record<string, unknown>`, optional)
94
94
  - `startsAt` (`string | null`, optional)
95
95
  - `endsAt` (`string | null`, optional)
@@ -148,6 +148,7 @@ Update a base price or market price variant. Removing a base market override is
148
148
  - `price` (`number`, optional)
149
149
  - `isDefault` (`boolean`, optional)
150
150
  - `trialDays` (`number`, optional)
151
+ - `trialRequiresPaymentMethod` (`boolean`, optional) — Set to false so the price's free trial starts without a payment method. Requires trialDays on the price.
151
152
  - `includedBalance` (`number | null`, optional)
152
153
  - `includedCredits` (`number | null`, optional)
153
154
  - `metadata` (`Record<string, unknown>`, optional) — Metadata keys to merge into the existing price metadata.
@@ -193,6 +194,7 @@ Add a base price or a selectable market price variant. Variants inherit their ba
193
194
  - `metadata` (`Record<string, unknown>`, optional)
194
195
  - `price` (`number`, optional)
195
196
  - `trialDays` (`number`, optional)
197
+ - `trialRequiresPaymentMethod` (`boolean`, optional) — Set to false so the price's free trial starts without a payment method. Requires trialDays on the price.
196
198
  - `isDefault` (`boolean`, optional)
197
199
  - `includedBalance` (`number | null`, optional)
198
200
  - `includedCredits` (`number | null`, optional)
@@ -258,7 +260,7 @@ Get a plan with public price IDs and their automatic introductory offer IDs.
258
260
 
259
261
  `PATCH /plans/{id}` · operation `update-plan`
260
262
 
261
- Update a plan's name, description, visibility, or metadata.
263
+ Update a plan's name, description, visibility, default status, metadata, what happens to its unused plan credits, or its plan credit limit.
262
264
 
263
265
  ### Parameters
264
266
 
@@ -267,6 +269,9 @@ Update a plan's name, description, visibility, or metadata.
267
269
  - `description` (`string | null`, optional)
268
270
  - `metadata` (`Record<string, unknown>`, optional)
269
271
  - `isPublic` (`boolean`, optional)
272
+ - `unusedPlanCredits` (`{ type: "expire" } | { type: "roll_over"; maxPlanCredits: number | null }`, optional) — Credits plans only. What happens to unused plan credits at each reset. Existing subscriptions apply it from their next reset.
273
+ - `planCreditLimit` (`{ credits: number; interval: "day" | "week" } | null`, optional) — Credits plans only. The most plan credits a subscription spends per day or per week; null removes the limit. Raising or removing it applies to existing subscriptions at once; lowering it, adding it or changing its interval applies from their next period.
274
+ - `isDefault` (`boolean`, optional) — Make this plan the default plan of its plan group: customers created with that planGroupId start on it, and a paid plan of the group that ends from the customer portal, a revoked payment authorization or exhausted dunning moves to it instead of canceling. Requires a free plan in a plan group; replaces the group's previous default plan. false unmarks it.
270
275
 
271
276
  ### Request options
272
277
 
@@ -346,7 +351,10 @@ Create a new plan with optional consumption model, visibility, and plan group as
346
351
  - `isPublic` (`boolean`, optional)
347
352
  - `isFree` (`boolean`, optional)
348
353
  - `blockOnExhaustion` (`boolean`, optional)
354
+ - `unusedPlanCredits` (`{ type: "expire" } | { type: "roll_over"; maxPlanCredits: number | null }`, optional) — Credits plans only. What happens to unused plan credits at each reset; omitted means they expire.
355
+ - `planCreditLimit` (`{ credits: number; interval: "day" | "week" } | null`, optional) — Credits plans only. The most plan credits a subscription spends per day or per week; omitted or null means no limit.
349
356
  - `planGroupId` (`string`, optional)
357
+ - `isDefault` (`boolean`, optional) — Make this plan the default plan of its plan group: customers created with that planGroupId start on it, and a paid plan of the group that ends from the customer portal, a revoked payment authorization or exhausted dunning moves to it instead of canceling. Requires a free plan with a planGroupId; replaces the group's previous default plan.
350
358
  - `metadata` (`Record<string, unknown>`, optional)
351
359
 
352
360
  ### Request options
@@ -34,6 +34,7 @@ Update a promo code's billing interval, redemption limits, expiration, active st
34
34
  - `expiresAt` (`string | null`, optional)
35
35
  - `active` (`boolean`, optional)
36
36
  - `planIds` (`Array<string>`, optional)
37
+ - `firstPurchaseOnly` (`boolean`, optional) — Whether the code only applies to a customer's first purchase: one with no paid invoice above zero and no paid subscription.
37
38
 
38
39
  ### Request options
39
40
 
@@ -66,7 +67,7 @@ List promo codes with cursor-based pagination.
66
67
 
67
68
  `POST /promo-codes` · operation `create-promo-code`
68
69
 
69
- Create a distribution code for an existing Offer with one or more sequential discount phases and an optional leading trial. The code owns redemption restrictions.
70
+ Create a distribution code for an existing Offer with one or more sequential discount phases. The code owns redemption restrictions.
70
71
 
71
72
  ### Parameters
72
73
 
@@ -76,6 +77,7 @@ Create a distribution code for an existing Offer with one or more sequential dis
76
77
  - `maxRedemptions` (`number`, optional)
77
78
  - `expiresAt` (`string`, optional)
78
79
  - `planIds` (`Array<string>`, optional)
80
+ - `firstPurchaseOnly` (`boolean`, optional) — Whether the code only applies to a customer's first purchase: one with no paid invoice above zero and no paid subscription. Defaults to false.
79
81
 
80
82
  ### Request options
81
83
 
@@ -40,6 +40,46 @@ Activate an add-on on a subscription. Charges a prorated amount for the current
40
40
 
41
41
  `SubscriptionAddon`
42
42
 
43
+ ## getAutoTopUp
44
+
45
+ `commet.subscriptions.getAutoTopUp(params)`
46
+
47
+ `GET /subscriptions/{id}/auto-top-up` · operation `get-subscription-auto-top-up`
48
+
49
+ Read whether the subscription buys credits automatically with its saved payment method when credits reach a threshold, with the top-ups used this period and the last failure.
50
+
51
+ ### Parameters
52
+
53
+ - `id` (`string`, required)
54
+
55
+ ### Returns
56
+
57
+ `SubscriptionAutoTopUp`
58
+
59
+ ## updateAutoTopUp
60
+
61
+ `commet.subscriptions.updateAutoTopUp(params, options?)`
62
+
63
+ `PATCH /subscriptions/{id}/auto-top-up` · operation `update-subscription-auto-top-up`
64
+
65
+ Turn automatic credit purchases on or off and set the threshold, the credits each top-up buys and the maximum top-ups per period. Send only the fields that change. Enabling requires a plan that sells credits. The quantity must be at least the plan's purchase minimum when auto top-up is enabled or when the quantity changes, so turning it off keeps working after the minimum rises. Saving it enabled resumes a paused auto top-up.
66
+
67
+ ### Parameters
68
+
69
+ - `id` (`string`, required)
70
+ - `enabled` (`boolean`, optional)
71
+ - `threshold` (`number`, optional)
72
+ - `quantity` (`number`, optional)
73
+ - `maxPerPeriod` (`number`, optional)
74
+
75
+ ### Request options
76
+
77
+ - `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
78
+
79
+ ### Returns
80
+
81
+ `SubscriptionAutoTopUp`
82
+
43
83
  ## adjustBalance
44
84
 
45
85
  `commet.subscriptions.adjustBalance(params, options?)`
@@ -112,7 +152,7 @@ Cancel immediately or at period end and return the updated subscription.
112
152
 
113
153
  `POST /subscriptions/{id}/change-plan` · operation `change-plan`
114
154
 
115
- Upgrade or change billing interval immediately, optionally applying an Offer. Scheduled changes do not accept offers.
155
+ Upgrade or change billing interval immediately, optionally applying an Offer by offerId or the Offer of a promoCode. Scheduled changes accept neither offerId nor promoCode. From a free plan, a promoCode opens the checkout with the code applied and counts its use when the checkout is paid; without offerId or promoCode, a destination price whose free trial requires no payment method starts that trial right away without checkout. During a trial without a payment method, an immediate change returns 409 no_payment_method; scheduled changes still apply.
116
156
 
117
157
  ### Parameters
118
158
 
@@ -121,6 +161,11 @@ Upgrade or change billing interval immediately, optionally applying an Offer. Sc
121
161
  - `newBillingInterval` (`"weekly" | "monthly" | "quarterly" | "semiannual" | "yearly"`, optional)
122
162
  - `successUrl` (`string`, optional)
123
163
  - `offerId` (`string`, optional)
164
+ - `promoCode` (`string`, optional)
165
+
166
+ ### Valid parameter combinations
167
+
168
+ - `promoCode`
124
169
 
125
170
  ### Request options
126
171
 
@@ -136,12 +181,18 @@ Upgrade or change billing interval immediately, optionally applying an Offer. Sc
136
181
 
137
182
  `POST /subscriptions/{id}/credits` · operation `purchase-credits`
138
183
 
139
- Purchase a credit pack for a subscription. Charges the customer and adds credits to their balance.
184
+ Purchase a fixed credit pack or choose a whole credit quantity at the subscription plan price and minimum. Charges the saved payment method and adds purchased credits.
140
185
 
141
186
  ### Parameters
142
187
 
143
188
  - `id` (`string`, required)
144
- - `creditPackId` (`string`, required)
189
+ - `creditPackId` (`string`, optional)
190
+ - `quantity` (`number`, optional)
191
+
192
+ ### Valid parameter combinations
193
+
194
+ - `creditPackId`
195
+ - `quantity`
145
196
 
146
197
  ### Request options
147
198
 
@@ -157,7 +208,7 @@ Purchase a credit pack for a subscription. Charges the customer and adds credits
157
208
 
158
209
  `PUT /subscriptions/{id}/offer` · operation `apply-subscription-offer`
159
210
 
160
- Apply a direct Offer to a subscription. On a pending payment checkout it quotes or replaces the checkout discount and the existing checkout URL remains unchanged. On an active subscription it applies the Offer immediately with its discount phases starting at the next billing cycle; the call is rejected while another applied Offer still has active or upcoming discount phases. Offers with a free trial phase cannot be applied after checkout creation.
211
+ Apply a direct Offer to a subscription. On a pending checkout it quotes or replaces the checkout discount, which starts after the plan price trial when there is one, and the existing checkout URL remains unchanged. On an active subscription it applies the Offer immediately with its discount phases starting at the next billing cycle; the call is rejected while another applied Offer still has active or upcoming discount phases.
161
212
 
162
213
  ### Parameters
163
214
 
@@ -298,7 +349,7 @@ Creates a hosted checkout to pay billing periods of a recurring subscription in
298
349
 
299
350
  `POST /subscriptions/{id}/preview-change` · operation `preview-change-plan`
300
351
 
301
- Preview proration details for an immediate plan change without applying it. Free-to-paid changes are never scheduled and the change-plan endpoint always returns hosted checkout for them. For paid plans, interval direction takes precedence: a longer interval is immediate and a shorter interval is scheduled. When the interval is unchanged, a higher-sort-order plan is immediate and a lower-sort-order plan is scheduled. A paid-to-free change is always scheduled. Returns credit, charge, and net amount. The target plan must belong to the same plan group as the current plan, otherwise a 400 with code `plans_not_in_same_group` is returned. A change between two free plans has nothing to prorate and returns a zero-amount estimate. Scheduled changes return a 400 with code `plan_change_scheduled`; apply those via the change-plan endpoint. Pass offerId to quote the destination plan with an Offer.
352
+ Preview proration details for an immediate plan change without applying it. Free-to-paid changes are never scheduled and the change-plan endpoint returns hosted checkout for them, except a change without offerId or promoCode to a price whose free trial needs no payment method, for a customer who never had that plan: it starts the trial at once, so the preview reports nothing due today. For paid plans, interval direction takes precedence: a longer interval is immediate and a shorter interval is scheduled. When the interval is unchanged, a higher-sort-order plan is immediate and a lower-sort-order plan is scheduled. A paid-to-free change is always scheduled. Returns credit, charge, and net amount. The target plan must belong to the same plan group as the current plan, otherwise a 400 with code `plans_not_in_same_group` is returned. A change between two free plans has nothing to prorate and returns a zero-amount estimate. Scheduled changes return a 400 with code `plan_change_scheduled`; apply those via the change-plan endpoint. Pass offerId to quote the destination plan with an Offer, or promoCode to quote it with the Offer of a promo code validated with the checkout's rules.
302
353
 
303
354
  ### Parameters
304
355
 
@@ -306,6 +357,12 @@ Preview proration details for an immediate plan change without applying it. Free
306
357
  - `planId` (`string`, required)
307
358
  - `billingInterval` (`"weekly" | "monthly" | "quarterly" | "semiannual" | "yearly" | "one_time"`, optional)
308
359
  - `offerId` (`string`, optional)
360
+ - `promoCode` (`string`, optional)
361
+
362
+ ### Valid parameter combinations
363
+
364
+ - `planId`
365
+ - `planId` + `promoCode`
309
366
 
310
367
  ### Request options
311
368
 
@@ -392,6 +449,22 @@ Get a subscription by its public ID, regardless of status (including pending_pay
392
449
 
393
450
  `Subscription`
394
451
 
452
+ ## revokeScheduledPlanChange
453
+
454
+ `commet.subscriptions.revokeScheduledPlanChange(params, options?)`
455
+
456
+ `DELETE /subscriptions/{id}/scheduled-plan-change` · operation `revoke-scheduled-plan-change`
457
+
458
+ Revoke the plan or interval change scheduled for the end of the period, so the subscription stays on its current plan. Returns the updated subscription.
459
+
460
+ ### Parameters
461
+
462
+ - `id` (`string`, required)
463
+
464
+ ### Returns
465
+
466
+ `Subscription`
467
+
395
468
  ## uncancel
396
469
 
397
470
  `commet.subscriptions.uncancel(params, options?)`
@@ -451,7 +524,7 @@ List all subscriptions. Filter by customer ID or status.
451
524
 
452
525
  `POST /subscriptions` · operation `create-subscription`
453
526
 
454
- Create a subscription for a customer. Commet selects the default price when priceId is omitted. The subscription starts at the base USD price; market and currency are resolved from the buyer's request country when the checkout opens. Without an offer override, Commet applies the price's automatic introductory Offer. Pass offerId to apply an active compatible Offer directly, or cardPromotionId to preselect a card-eligible Promotional Offer for the initial checkout when card promotions are enabled for the organization. For the initial checkout, provider accepts either a processor name or an exact payment connection ID.
527
+ Create a subscription for a customer. Commet selects the default price when priceId is omitted. The subscription starts at the base USD price; market and currency are resolved from the buyer's request country when the checkout opens. Without an offer override, Commet applies the price's automatic introductory Offer. Pass offerId to apply an active compatible Offer directly, or cardPromotionId to preselect a card-eligible Promotional Offer for the initial checkout when card promotions are enabled for the organization. For the initial checkout, provider accepts either a processor name or an exact payment connection ID. When the price's free trial requires no payment method, the subscription starts trialing right away with no checkout (checkoutUrl null, hasPaymentMethod false); it cannot be combined with offerId, promoCode, cardPromotionId or provider, and an organization that cannot charge yet receives 403.
455
528
 
456
529
  ### Parameters
457
530
 
@@ -467,7 +540,7 @@ Create a subscription for a customer. Commet selects the default price when pric
467
540
  - `cancelAtPeriodEnd` (`boolean`, optional) — Schedules the cancellation from creation so the subscription ends after its last paid period and never renews with any payment method.
468
541
  - `offerId` (`string`, optional)
469
542
  - `promoCode` (`string`, optional)
470
- - `customTrialDays` (`number`, optional)
543
+ - `customTrialDays` (`number`, optional) — Trial length in days, replacing the price's trial. A customer who already had this plan, in a trial or paying, gets no trial and goes through the regular checkout.
471
544
  - `skipTrial` (`boolean`, optional)
472
545
  - `planId` (`string`, optional)
473
546
  - `planCode` (`string`, optional)
@@ -16,10 +16,6 @@ Check if a customer can consume a feature before actual consumption. Returns ava
16
16
  - `featureCode` (`string`, required)
17
17
  - `quantity` (`number`, optional)
18
18
 
19
- ### Request options
20
-
21
- - `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
22
-
23
19
  ### Returns
24
20
 
25
21
  `UsageCheck`
@@ -0,0 +1,22 @@
1
+ # customer_deleted
2
+
3
+ The externalId belongs to a deleted customer, so the plan group's default plan cannot start for it.
4
+
5
+ - **Error type:** `conflict_error`
6
+ - **`code`:** `customer_deleted`
7
+ - **API version:** `2026-08-27`
8
+
9
+
10
+ ## What to do
11
+
12
+ Create the customer with a different externalId, or send the request without planGroupId.
13
+
14
+ The response `message`, `param`, and `details` fields describe the condition observed by the specific operation.
15
+
16
+ ## Retry behavior
17
+
18
+ Do not retry the same request.
19
+
20
+ ## Correlate the request
21
+
22
+ Keep the `x-request-id` response header when reporting or investigating this error. Platform records the same identifier in its request event, so Commet can locate the exact execution without customer data or credentials.
@@ -12,6 +12,7 @@ Use the response `code` to open the matching local reference. Preserve `x-reques
12
12
  - [`payouts_not_available_in_sandbox`](./payouts_not_available_in_sandbox.md) — Payout operations are not available in sandbox mode.
13
13
  - [`not_found`](./not_found.md) — The requested endpoint or resource could not be found in the current organization, mode, or API version.
14
14
  - [`customer_not_found`](./customer_not_found.md) — The requested customer does not exist in this organization.
15
+ - [`customer_deleted`](./customer_deleted.md) — The externalId belongs to a deleted customer, so the plan group's default plan cannot start for it.
15
16
  - [`feature_not_found`](./feature_not_found.md) — The requested feature, seat feature, or quota feature does not exist in this organization.
16
17
  - [`plan_not_found`](./plan_not_found.md) — The requested plan does not exist or is not available in this organization.
17
18
  - [`subscription_not_found`](./subscription_not_found.md) — The requested subscription does not exist in this organization.
@@ -31,6 +32,7 @@ Use the response `code` to open the matching local reference. Preserve `x-reques
31
32
  - [`insufficient_credits`](./insufficient_credits.md) — The subscription does not have enough credits for the usage event.
32
33
  - [`insufficient_seats`](./insufficient_seats.md) — The requested seat removal exceeds the subscription's available seat balance.
33
34
  - [`included_limit_reached`](./included_limit_reached.md) — The requested usage exceeds the plan's included usage limit.
35
+ - [`plan_credit_limit_reached`](./plan_credit_limit_reached.md) — The usage event would spend more plan credits than the plan's credit limit allows in the current day or week, and purchased credits do not cover the rest.
34
36
  - [`missing_regional_price`](./missing_regional_price.md) — The plan has no price for the subscription's currency or resolved market.
35
37
  - [`payment_failed`](./payment_failed.md) — The operation could not complete its payment or required tax calculation.
36
38
  - [`payment_not_found`](./payment_not_found.md) — The requested payment does not exist in this organization.
@@ -56,6 +58,7 @@ Use the response `code` to open the matching local reference. Preserve `x-reques
56
58
  - [`plans_not_in_same_group`](./plans_not_in_same_group.md) — The current and target plans do not belong to the same plan group.
57
59
  - [`free_plan_change_not_supported`](./free_plan_change_not_supported.md) — This plan-change operation does not support the selected free plan.
58
60
  - [`plan_change_scheduled`](./plan_change_scheduled.md) — The requested plan change takes effect at the end of the current billing period instead of being prorated immediately.
61
+ - [`no_scheduled_plan_change`](./no_scheduled_plan_change.md) — The subscription has no scheduled plan change to revoke.
59
62
  - [`addon_not_found`](./addon_not_found.md) — The requested add-on does not exist in this organization.
60
63
  - [`addon_already_active`](./addon_already_active.md) — The add-on is already active on this subscription.
61
64
  - [`addon_not_active`](./addon_not_active.md) — The add-on is not active on this subscription.
@@ -77,6 +80,7 @@ Use the response `code` to open the matching local reference. Preserve `x-reques
77
80
  - [`transaction_not_found`](./transaction_not_found.md) — The requested transaction does not exist in this organization.
78
81
  - [`price_not_found`](./price_not_found.md) — The requested price does not exist on the selected plan or no price matches the operation.
79
82
  - [`price_in_use`](./price_in_use.md) — The price cannot be removed or changed while it is in use.
83
+ - [`managed_by_integration`](./managed_by_integration.md) — The record is managed by an integration (its managedBy field), so its terms change only in that integration.
80
84
  - [`market_not_found`](./market_not_found.md) — The requested market does not exist in this organization.
81
85
  - [`market_in_use`](./market_in_use.md) — The market cannot be deleted while a price or subscription uses it.
82
86
  - [`market_group_not_found`](./market_group_not_found.md) — The requested market group does not exist in this organization.
@@ -0,0 +1,22 @@
1
+ # managed_by_integration
2
+
3
+ The record is managed by an integration (its managedBy field), so its terms change only in that integration.
4
+
5
+ - **Error type:** `conflict_error`
6
+ - **`code`:** `managed_by_integration`
7
+ - **API version:** `2026-08-27`
8
+
9
+
10
+ ## What to do
11
+
12
+ Make the change in the integration, such as Dub. Here you can still rename an Offer and activate or deactivate a promo code.
13
+
14
+ The response `message`, `param`, and `details` fields describe the condition observed by the specific operation.
15
+
16
+ ## Retry behavior
17
+
18
+ Do not retry the same change; it is rejected while the integration manages the record.
19
+
20
+ ## Correlate the request
21
+
22
+ Keep the `x-request-id` response header when reporting or investigating this error. Platform records the same identifier in its request event, so Commet can locate the exact execution without customer data or credentials.
@@ -0,0 +1,22 @@
1
+ # no_scheduled_plan_change
2
+
3
+ The subscription has no scheduled plan change to revoke.
4
+
5
+ - **Error type:** `conflict_error`
6
+ - **`code`:** `no_scheduled_plan_change`
7
+ - **API version:** `2026-08-27`
8
+
9
+
10
+ ## What to do
11
+
12
+ Read the subscription's scheduledPlanChange before revoking a plan change.
13
+
14
+ The response `message`, `param`, and `details` fields describe the condition observed by the specific operation.
15
+
16
+ ## Retry behavior
17
+
18
+ Do not retry unless a plan change is scheduled first.
19
+
20
+ ## Correlate the request
21
+
22
+ Keep the `x-request-id` response header when reporting or investigating this error. Platform records the same identifier in its request event, so Commet can locate the exact execution without customer data or credentials.
@@ -0,0 +1,22 @@
1
+ # plan_credit_limit_reached
2
+
3
+ The usage event would spend more plan credits than the plan's credit limit allows in the current day or week, and purchased credits do not cover the rest.
4
+
5
+ - **Error type:** `billing_error`
6
+ - **`code`:** `plan_credit_limit_reached`
7
+ - **API version:** `2026-08-27`
8
+
9
+
10
+ ## What to do
11
+
12
+ Use the planCreditLimit details to show what remains and when the window resets, or let the customer buy credits, which the limit never caps.
13
+
14
+ The response `message`, `param`, and `details` fields describe the condition observed by the specific operation.
15
+
16
+ ## Retry behavior
17
+
18
+ Retry after planCreditLimit.resetsAt or once purchased credits cover the usage.
19
+
20
+ ## Correlate the request
21
+
22
+ Keep the `x-request-id` response header when reporting or investigating this error. Platform records the same identifier in its request event, so Commet can locate the exact execution without customer data or credentials.
@@ -114,7 +114,7 @@
114
114
  },
115
115
  "errorReferences": {
116
116
  "index": "errors/index.md",
117
- "count": 83,
117
+ "count": 87,
118
118
  "entries": [
119
119
  {
120
120
  "code": "validation_error",
@@ -164,6 +164,12 @@
164
164
  "documentation": "errors/customer_not_found.md",
165
165
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/customer_not_found.md"
166
166
  },
167
+ {
168
+ "code": "customer_deleted",
169
+ "type": "conflict_error",
170
+ "documentation": "errors/customer_deleted.md",
171
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/customer_deleted.md"
172
+ },
167
173
  {
168
174
  "code": "feature_not_found",
169
175
  "type": "not_found_error",
@@ -278,6 +284,12 @@
278
284
  "documentation": "errors/included_limit_reached.md",
279
285
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/included_limit_reached.md"
280
286
  },
287
+ {
288
+ "code": "plan_credit_limit_reached",
289
+ "type": "billing_error",
290
+ "documentation": "errors/plan_credit_limit_reached.md",
291
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/plan_credit_limit_reached.md"
292
+ },
281
293
  {
282
294
  "code": "missing_regional_price",
283
295
  "type": "billing_error",
@@ -428,6 +440,12 @@
428
440
  "documentation": "errors/plan_change_scheduled.md",
429
441
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/plan_change_scheduled.md"
430
442
  },
443
+ {
444
+ "code": "no_scheduled_plan_change",
445
+ "type": "conflict_error",
446
+ "documentation": "errors/no_scheduled_plan_change.md",
447
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/no_scheduled_plan_change.md"
448
+ },
431
449
  {
432
450
  "code": "addon_not_found",
433
451
  "type": "not_found_error",
@@ -554,6 +572,12 @@
554
572
  "documentation": "errors/price_in_use.md",
555
573
  "canonicalUrl": "/docs/api-reference/2026-08-27/errors/price_in_use.md"
556
574
  },
575
+ {
576
+ "code": "managed_by_integration",
577
+ "type": "conflict_error",
578
+ "documentation": "errors/managed_by_integration.md",
579
+ "canonicalUrl": "/docs/api-reference/2026-08-27/errors/managed_by_integration.md"
580
+ },
557
581
  {
558
582
  "code": "market_not_found",
559
583
  "type": "not_found_error",
@@ -1287,6 +1311,18 @@
1287
1311
  "method": "POST",
1288
1312
  "path": "/subscriptions/{id}/addons"
1289
1313
  },
1314
+ {
1315
+ "name": "getAutoTopUp",
1316
+ "operationId": "get-subscription-auto-top-up",
1317
+ "method": "GET",
1318
+ "path": "/subscriptions/{id}/auto-top-up"
1319
+ },
1320
+ {
1321
+ "name": "updateAutoTopUp",
1322
+ "operationId": "update-subscription-auto-top-up",
1323
+ "method": "PATCH",
1324
+ "path": "/subscriptions/{id}/auto-top-up"
1325
+ },
1290
1326
  {
1291
1327
  "name": "adjustBalance",
1292
1328
  "operationId": "adjust-balance",
@@ -1389,6 +1425,12 @@
1389
1425
  "method": "GET",
1390
1426
  "path": "/subscriptions/{id}"
1391
1427
  },
1428
+ {
1429
+ "name": "revokeScheduledPlanChange",
1430
+ "operationId": "revoke-scheduled-plan-change",
1431
+ "method": "DELETE",
1432
+ "path": "/subscriptions/{id}/scheduled-plan-change"
1433
+ },
1392
1434
  {
1393
1435
  "name": "uncancel",
1394
1436
  "operationId": "uncancel-subscription",