@commet/node 9.8.0 → 9.10.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.
Files changed (75) hide show
  1. package/dist/index.d.mts +1021 -30
  2. package/dist/index.d.ts +1021 -30
  3. package/dist/index.js +204 -11
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +204 -11
  6. package/dist/index.mjs.map +1 -1
  7. package/docs/ai-onboarding/mcp-server.md +2 -0
  8. package/docs/api-reference/addons.md +3 -1
  9. package/docs/api-reference/credit-packs.md +3 -1
  10. package/docs/api-reference/customers.md +2 -0
  11. package/docs/api-reference/generated-webhooks.md +2 -2
  12. package/docs/api-reference/index.md +3 -3
  13. package/docs/api-reference/plans.md +488 -6
  14. package/docs/api-reference/subscriptions.md +50 -8
  15. package/docs/documentation/api-versioning.md +8 -2
  16. package/docs/documentation/cli.md +64 -49
  17. package/docs/documentation/create-api-key.md +3 -1
  18. package/docs/documentation/customers/customer-portal.md +10 -2
  19. package/docs/documentation/customers/manage-customers.md +2 -1
  20. package/docs/documentation/finance/payouts.md +11 -0
  21. package/docs/documentation/finance/supported-countries.md +5 -5
  22. package/docs/documentation/invoicing/handle-failed-payments.md +9 -9
  23. package/docs/documentation/payments/accept-one-time-payments.md +1 -1
  24. package/docs/documentation/payments/payment-orchestration.md +2 -0
  25. package/docs/documentation/payments/payment-providers.md +46 -0
  26. package/docs/documentation/payments/transactions-refunds-and-retries.md +1 -1
  27. package/docs/documentation/plans/add-ons.md +15 -4
  28. package/docs/documentation/plans/consumption-models.md +44 -9
  29. package/docs/documentation/plans/create-plans.md +5 -1
  30. package/docs/documentation/plans/credit-packs.md +61 -3
  31. package/docs/documentation/plans/one-time-payments.md +3 -3
  32. package/docs/documentation/plans/plan-groups.md +46 -10
  33. package/docs/documentation/plans/plan-versions.md +265 -0
  34. package/docs/documentation/platform/dashboard-metrics-and-events.md +40 -9
  35. package/docs/documentation/sales/connect-dub-affiliates.md +52 -0
  36. package/docs/documentation/sales/introductory-offers.md +7 -13
  37. package/docs/documentation/sales/offers.md +10 -6
  38. package/docs/documentation/sales/promo-codes.md +47 -17
  39. package/docs/documentation/sales/promotional-offers.md +6 -7
  40. package/docs/documentation/sales/regional-prices.md +38 -8
  41. package/docs/documentation/sales/trial-periods.md +67 -40
  42. package/docs/documentation/subscriptions/manage-subscriptions.md +114 -14
  43. package/docs/documentation/subscriptions/pay-in-advance.md +4 -7
  44. package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +22 -2
  45. package/docs/documentation/testing-sandbox.md +2 -0
  46. package/docs/documentation/usage/track-usage.md +23 -0
  47. package/docs/errors/addon_has_activations.md +2 -2
  48. package/docs/errors/addon_unavailable.md +22 -0
  49. package/docs/errors/credit_pack_unavailable.md +22 -0
  50. package/docs/errors/index.md +9 -2
  51. package/docs/errors/missing_regional_price.md +3 -3
  52. package/docs/errors/plan_balance_limit_reached.md +22 -0
  53. package/docs/errors/plan_experiment_not_found.md +22 -0
  54. package/docs/errors/plan_version_not_found.md +22 -0
  55. package/docs/errors/subscribers_do_not_fit.md +22 -0
  56. package/docs/errors/version_not_newer.md +22 -0
  57. package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +8 -8
  58. package/docs/knowledge-base/how-do-discounts-work.md +7 -5
  59. package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +18 -11
  60. package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +1 -1
  61. package/docs/knowledge-base/how-do-trial-periods-work.md +31 -25
  62. package/docs/knowledge-base/how-does-billing-work.md +26 -27
  63. package/docs/knowledge-base/how-does-quota-based-billing-work.md +12 -22
  64. package/docs/knowledge-base/how-does-seat-based-billing-work.md +12 -22
  65. package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +11 -8
  66. package/docs/knowledge-base/what-happens-when-a-payment-fails.md +11 -9
  67. package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +34 -29
  68. package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +1 -1
  69. package/docs/manifest.json +201 -2
  70. package/docs/platform-documentation.md +2 -0
  71. package/docs/schemas.md +134 -14
  72. package/docs/webhooks/introduction.md +17 -13
  73. package/docs/webhooks.md +66 -6
  74. package/docs/webhooks.openapi.json +1218 -876
  75. package/package.json +1 -1
@@ -25,7 +25,7 @@ Deactivate an add-on from a subscription.
25
25
 
26
26
  `POST /subscriptions/{id}/addons` · operation `activate-addon`
27
27
 
28
- Activate an add-on on a subscription. Charges a prorated amount for the current billing period.
28
+ Activate an add-on on a subscription. Charges a prorated amount for the current billing period. An add-on that the subscription's plan version does not sell is rejected with addon_unavailable.
29
29
 
30
30
  ### Parameters
31
31
 
@@ -46,7 +46,7 @@ Activate an add-on on a subscription. Charges a prorated amount for the current
46
46
 
47
47
  `GET /subscriptions/{id}/auto-top-up` · operation `get-subscription-auto-top-up`
48
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.
49
+ Read whether the subscription tops up automatically with its saved payment method when its available credits or balance reach a threshold, with the top-ups used this period and the last failure.
50
50
 
51
51
  ### Parameters
52
52
 
@@ -62,14 +62,15 @@ Read whether the subscription buys credits automatically with its saved payment
62
62
 
63
63
  `PATCH /subscriptions/{id}/auto-top-up` · operation `update-subscription-auto-top-up`
64
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.
65
+ Turn automatic top-ups on or off and set the threshold, the size of each top-up and the maximum top-ups per period. Send only the fields that change. On a credits plan each top-up buys `quantity` credits; on a balance plan it adds `amount` in minor units of the subscription currency, plus tax, and `threshold` is in the same minor units. Enabling requires a plan that sells credits or has balance top-ups on. The size must be at least the plan's minimum when auto top-up is enabled or when the size changes, so turning it off keeps working after the minimum rises. Saving it enabled resumes a paused auto top-up.
66
66
 
67
67
  ### Parameters
68
68
 
69
69
  - `id` (`string`, required)
70
70
  - `enabled` (`boolean`, optional)
71
71
  - `threshold` (`number`, optional)
72
- - `quantity` (`number`, optional)
72
+ - `quantity` (`number`, optional) — Credits each top-up buys. Credits plans only.
73
+ - `amount` (`number`, optional) — Minor units of the subscription currency each top-up adds. Balance plans only.
73
74
  - `maxPerPeriod` (`number`, optional)
74
75
 
75
76
  ### Request options
@@ -109,12 +110,12 @@ Adjust a subscription's balance or credits by a signed amount. Positive adds, ne
109
110
 
110
111
  `POST /subscriptions/{id}/balance/topup` · operation `topup-balance`
111
112
 
112
- Top up a subscription's balance. Charges the customer's payment method for the specified amount.
113
+ Top up a balance subscription. Charges the customer's payment method for the amount plus tax, adds it to the subscription's purchased balance (after paying back any overage owed on the plan balance), creates its invoice and emits `balance.topped_up`. Purchased balance is spent after the plan balance and is kept until the subscription ends. Rejected with 400 when the subscription is not on a balance plan, its plan has top-ups turned off, or the amount is below the effective minimum: the plan's minimum top-up in the subscription currency, raised to the currency's minimum charge.
113
114
 
114
115
  ### Parameters
115
116
 
116
117
  - `id` (`string`, required)
117
- - `amount` (`number`, required)
118
+ - `amount` (`number`, required) — The amount to add, in minor units of the subscription currency (cents; whole units for zero-decimal currencies).
118
119
 
119
120
  ### Request options
120
121
 
@@ -175,13 +176,35 @@ Upgrade or change billing interval immediately, optionally applying an Offer by
175
176
 
176
177
  `PlanChange`
177
178
 
179
+ ## changeVersion
180
+
181
+ `commet.subscriptions.changeVersion(params, options?)`
182
+
183
+ `POST /subscriptions/{id}/change-version` · operation `change-subscription-version`
184
+
185
+ Move a subscription to a newer published version of its plan, now or at the end of the period, without proration; an older version is rejected with version_not_newer, and a subscription on a running experiment moves only to a later version of that experiment. The subscription keeps its currency and its price: a destination that does not sell its currency is rejected with missing_regional_price, and one that does not sell the price it pays with price_not_found. A free version moves only to a free version and a paid one only to a paid one (validation_error). A subscription whose usage does not fit the destination, or with an active add-on the destination does not sell, is not moved either, and the error says why. Each change is recorded as a move of this one subscription in the plan's moves. Repeating the same request changes nothing; a new one replaces the pending move.
186
+
187
+ ### Parameters
188
+
189
+ - `id` (`string`, required)
190
+ - `planVersionId` (`string`, required) — A published version of the subscription's plan.
191
+ - `effective` (`"now" | "period_end"`, required) — now changes features, limits and the included credits or balance at once (the included difference is added to or subtracted from the plan credits or plan balance: an increase first pays any plan-part debt, a decrease never creates new debt, and purchased credits and purchased balance are untouched) and charges the new price from the next renewal. period_end changes everything at the next renewal. There is never a proration charge or refund.
192
+
193
+ ### Request options
194
+
195
+ - `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
196
+
197
+ ### Returns
198
+
199
+ `Subscription`
200
+
178
201
  ## purchaseCredits
179
202
 
180
203
  `commet.subscriptions.purchaseCredits(params, options?)`
181
204
 
182
205
  `POST /subscriptions/{id}/credits` · operation `purchase-credits`
183
206
 
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.
207
+ 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. A credit pack that the subscription's plan version does not sell is rejected with credit_pack_unavailable.
185
208
 
186
209
  ### Parameters
187
210
 
@@ -465,6 +488,22 @@ Revoke the plan or interval change scheduled for the end of the period, so the s
465
488
 
466
489
  `Subscription`
467
490
 
491
+ ## revokeScheduledVersionChange
492
+
493
+ `commet.subscriptions.revokeScheduledVersionChange(params, options?)`
494
+
495
+ `DELETE /subscriptions/{id}/scheduled-version-change` · operation `revoke-scheduled-version-change`
496
+
497
+ Cancel the move to another plan version pending for the next renewal, so the subscription stays on its version, and send subscription.version_change_canceled with reason canceled_by_merchant. A move made now has nothing pending to revoke. With nothing pending it changes nothing. Returns the subscription.
498
+
499
+ ### Parameters
500
+
501
+ - `id` (`string`, required)
502
+
503
+ ### Returns
504
+
505
+ `Subscription`
506
+
468
507
  ## uncancel
469
508
 
470
509
  `commet.subscriptions.uncancel(params, options?)`
@@ -513,6 +552,7 @@ List all subscriptions. Filter by customer ID or status.
513
552
 
514
553
  - `customerId` (`string`, optional)
515
554
  - `status` (`SubscriptionStatus`, optional)
555
+ - `planVersionId` (`string`, optional)
516
556
 
517
557
  ### Returns
518
558
 
@@ -533,17 +573,19 @@ Create a subscription for a customer. Commet selects the default price when pric
533
573
  - `priceId` (`string`, optional) — Public price ID. When omitted, Commet selects the default price for the billing interval and still applies its market pricing.
534
574
  - `initialSeats` (`Record<string, number>`, optional)
535
575
  - `provider` (`"stripe" | "commet" | "dlocal" | string`, optional) — Payment provider name or exact public payment connection ID for the initial checkout. Overrides country routing when present.
576
+ - `paymentMethodTypes` (`Array<"card" | "oxxo" | "mercado_pago" | "google_pay" | "smartpix">`, optional) — Payment methods the initial checkout may offer. Restricts what the checkout already offers for the buyer's country, currency and payment connection; it never enables a method the connection does not have and never changes routing. When none of them is available to the buyer, the checkout shows that it cannot accept payments.
536
577
  - `name` (`string`, optional)
537
578
  - `startDate` (`string`, optional)
538
579
  - `successUrl` (`string`, optional)
539
580
  - `prepaidPeriods` (`number`, optional) — Billing periods of the subscription's interval paid with the first payment, including the current one. Defaults to 1. The interval does not change: each paid period renews at zero and the subscription renews normally after the last one unless `cancelAtPeriodEnd` is true.
540
581
  - `cancelAtPeriodEnd` (`boolean`, optional) — Schedules the cancellation from creation so the subscription ends after its last paid period and never renews with any payment method.
582
+ - `planVersionId` (`string`, optional) — Public ID of a published version of the plan, current or not, including an experiment's versions. The subscription is created on that version and stays on it: checkout charges its price and activation grants its credits, add-ons and credit packs. When omitted, the subscription gets the current version, or the version an experiment code (planCode `<plan code>:<experiment code>`) sells.
541
583
  - `offerId` (`string`, optional)
542
584
  - `promoCode` (`string`, optional)
543
585
  - `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.
544
586
  - `skipTrial` (`boolean`, optional)
545
587
  - `planId` (`string`, optional)
546
- - `planCode` (`string`, optional)
588
+ - `planCode` (`string`, optional) — The plan code, or an experiment code as `<plan code>:<experiment code>` to sell the version the experiment sells.
547
589
  - `cardPromotionId` (`string`, optional) — Public card promotion ID. The offer is shown immediately and remains conditional on card eligibility until checkout confirmation.
548
590
 
549
591
  ### Valid parameter combinations
@@ -45,11 +45,17 @@ A new version ships whenever a breaking change needs one — sometimes several l
45
45
  Non-breaking changes ship continuously and never require a version bump:
46
46
 
47
47
  - New fields added to responses
48
- - New event types
48
+ - New event types. An endpoint receives only the events it lists, so a new type reaches an endpoint only after you add it
49
49
  - New API endpoints
50
50
  - New optional request parameters
51
51
  - New values in existing enums, such as a new billing interval. Your integration should accept values it does not recognize instead of failing
52
52
 
53
+ ### Plan edits publish plan versions
54
+
55
+ Editing a plan's prices, features or credit and balance rules through the API, MCP or CLI publishes a new version of the plan. New buyers get the new version; existing subscriptions keep the version they are on until you move them with [Change subscription version](/docs/api-reference/subscriptions/change-subscription-version) or [Move subscribers to a plan version](/docs/api-reference/plans/create-plan-move). Before plan versions, some of these edits also changed existing subscriptions, at once or at their renewal.
56
+
57
+ This is a change in product behavior, not in the shape of requests or responses. Unlike the breaking changes listed above, it did not ship behind a new API version: it applies to every API version, including pinned ones.
58
+
53
59
  ## Backward compatibility policy
54
60
 
55
61
  When a new version is released:
@@ -97,4 +103,4 @@ Webhook payloads include an `apiVersion` field in the envelope so you always kno
97
103
  }
98
104
  ```
99
105
 
100
- Each webhook endpoint can be pinned independently. When migrating, create a second endpoint pinned to the new version — both receive every event, each transformed to its own version. Once the new endpoint is working, delete the old one.
106
+ Each webhook endpoint can be pinned independently. When migrating, create a second endpoint pinned to the new version — both receive every event they list, each transformed to its own version. Once the new endpoint is working, delete the old one.
@@ -118,6 +118,8 @@ After `commet pull`, your SDK calls get autocomplete for plan codes and feature
118
118
 
119
119
  Push your local `commet.config.ts` to Commet. Creates or updates features and plans to match your config.
120
120
 
121
+ A plan whose prices, features or credit and balance rules change gets a new current version. New buyers get it; existing subscriptions stay on their version until you move them through the API or MCP, with [Change subscription version](/docs/api-reference/subscriptions/change-subscription-version) or [Move subscribers to a plan version](/docs/api-reference/plans/create-plan-move).
122
+
121
123
  ```bash
122
124
  commet push
123
125
  ```
@@ -222,17 +224,18 @@ commet customers create \
222
224
  --metadata '{"plan":"enterprise"}'
223
225
  ```
224
226
 
225
- | Flag | Required | Description |
226
- | ------------------------ | -------- | ----------------------------------------------------- |
227
- | `--email <email>` | Yes | Billing email |
228
- | `--id <id>` | No | Custom customer ID |
229
- | `--external-id <id>` | No | ID from your system |
230
- | `--full-name <name>` | No | Full name |
231
- | `--tax-document <value>` | No | Tax document |
232
- | `--timezone <tz>` | No | Timezone |
233
- | `--metadata <json>` | No | Metadata as JSON object |
234
- | `--address <json>` | No | Address as JSON: `{line1, city, postalCode, country}` |
235
- | `--address-id <id>` | No | Existing customer address ID |
227
+ | Flag | Required | Description |
228
+ | ------------------------ | -------- | -------------------------------------------------------------- |
229
+ | `--email <email>` | Yes | Billing email |
230
+ | `--id <id>` | No | Custom customer ID |
231
+ | `--external-id <id>` | No | ID from your system |
232
+ | `--full-name <name>` | No | Full name |
233
+ | `--tax-document <value>` | No | Tax document |
234
+ | `--timezone <tz>` | No | Timezone |
235
+ | `--metadata <json>` | No | Metadata as JSON object |
236
+ | `--address <json>` | No | Address as JSON: `{line1, city, postalCode, country}` |
237
+ | `--address-id <id>` | No | Existing customer address ID |
238
+ | `--plan-group-id <id>` | No | Start the customer on the group's signup trial or default plan |
236
239
 
237
240
  ```bash
238
241
  commet customers get --id cus_xxx # Get a customer by ID
@@ -276,9 +279,9 @@ commet subscriptions create \
276
279
  | `--billing-interval <interval>` | No | `weekly`, `monthly`, `quarterly`, `semiannual`, `yearly`, `one_time` |
277
280
  | `--price-id <id>` | No | Selectable plan price. Omit it to use the interval default and its market pricing |
278
281
  | `--initial-seats <json>` | No | Initial seats as JSON: `{featureCode: count}` |
279
- | `--skip-trial <bool>` | No | Skip trial period |
280
- | `--custom-trial-days <n>` | No | Override the catalog trial duration |
281
- | `--offer-id <id>` | No | Apply an Offer directly. Cannot be combined with `promo-code` or a custom trial |
282
+ | `--skip-trial <bool>` | No | Start without the price's trial |
283
+ | `--custom-trial-days <n>` | No | Trial days replacing the price's trial |
284
+ | `--offer-id <id>` | No | Apply an Offer directly. Cannot be combined with `promo-code` |
282
285
  | `--promo-code <code>` | No | Apply the Offer referenced by a customer-entered code |
283
286
  | `--provider <provider>` | No | Initial checkout provider override: `stripe`, `commet`, or `dlocal` |
284
287
  | `--name <name>` | No | Subscription name |
@@ -308,6 +311,8 @@ commet subscriptions get-active --customer-id user_123 # Get active su
308
311
  commet subscriptions uncancel --id sub_xxx # Revert pending cancellation
309
312
  commet subscriptions reactivate --id sub_xxx --offer-id ofr_xxx # Reactivate a canceled subscription with a direct Offer
310
313
  commet subscriptions change-plan --id sub_xxx --new-plan-id pln_xxx --new-billing-interval yearly # Change plan
314
+ commet subscriptions change-plan --id sub_xxx --new-plan-id pln_xxx --promo-code LAUNCH50 # Change plan with a promo code
315
+ commet subscriptions revoke-scheduled-plan-change --id sub_xxx # Keep the current plan
311
316
  commet subscriptions list # List all subscriptions
312
317
  commet subscriptions list --customer-id user_123 --status active # Filter by customer/status
313
318
  commet subscriptions preview-change --id sub_xxx --plan-id pln_xxx --billing-interval yearly # Preview proration
@@ -316,12 +321,17 @@ commet subscriptions deactivate-addon --id sub_xxx --addon-id adn_xxx
316
321
  commet subscriptions adjust-balance --id sub_xxx --amount 1000 --type balance --reason "Courtesy credit"
317
322
  commet subscriptions topup-balance --id sub_xxx --amount 5000
318
323
  commet subscriptions purchase-credits --id sub_xxx --credit-pack-id cpk_xxx
324
+ commet subscriptions purchase-credits --id sub_xxx --quantity 500
325
+ commet subscriptions get-auto-top-up --id sub_xxx
326
+ commet subscriptions update-auto-top-up --id sub_xxx --enabled true --threshold 100 --quantity 500 --max-per-period 3
319
327
  ```
320
328
 
321
329
  ## Plans
322
330
 
323
331
  Create plans, attach features and prices, and configure regional pricing.
324
332
 
333
+ Commands that change a plan's prices, features or credit and balance rules publish a new current version of the plan. New buyers get it; existing subscriptions stay on their version until you move them through the API or MCP, with [Change subscription version](/docs/api-reference/subscriptions/change-subscription-version) or [Move subscribers to a plan version](/docs/api-reference/plans/create-plan-move).
334
+
325
335
  **`commet plans create`**
326
336
 
327
337
  Create a plan.
@@ -339,17 +349,20 @@ commet plans create \
339
349
  --block-on-exhaustion true
340
350
  ```
341
351
 
342
- | Flag | Required | Description |
343
- | ------------------------------ | -------- | ------------------------------------------ |
344
- | `--name <name>` | Yes | Plan name |
345
- | `--code <code>` | Yes | Plan code |
346
- | `--description <desc>` | No | Plan description |
347
- | `--consumption-model <model>` | No | `metered`, `credits`, or `balance` |
348
- | `--is-public <bool>` | No | Whether plan is publicly visible |
349
- | `--is-free <bool>` | No | Whether plan is free |
350
- | `--block-on-exhaustion <bool>` | No | Block usage when balance/credits exhausted |
351
- | `--plan-group-id <id>` | No | Plan group ID |
352
- | `--metadata <json>` | No | Metadata as JSON object |
352
+ | Flag | Required | Description |
353
+ | ------------------------------ | -------- | ---------------------------------------------------------------------------------- |
354
+ | `--name <name>` | Yes | Plan name |
355
+ | `--code <code>` | Yes | Plan code |
356
+ | `--description <desc>` | No | Plan description |
357
+ | `--consumption-model <model>` | No | `metered`, `credits`, or `balance` |
358
+ | `--is-public <bool>` | No | Whether plan is publicly visible |
359
+ | `--is-free <bool>` | No | Whether plan is free |
360
+ | `--block-on-exhaustion <bool>` | No | Block usage when balance/credits exhausted |
361
+ | `--plan-group-id <id>` | No | Plan group ID |
362
+ | `--is-default <bool>` | No | Make this free plan the default plan of its group |
363
+ | `--unused-plan-credits <json>` | No | Credits plans: `{"type":"expire"}` or `{"type":"roll_over","maxPlanCredits":5000}` |
364
+ | `--plan-credit-limit <json>` | No | Credits plans: `{"credits":100,"interval":"day"}` |
365
+ | `--metadata <json>` | No | Metadata as JSON object |
353
366
 
354
367
  **`commet plans add-feature`**
355
368
 
@@ -404,18 +417,19 @@ commet plans add-price \
404
417
  --trial-days 14
405
418
  ```
406
419
 
407
- | Flag | Required | Description |
408
- | ------------------------------- | ----------------------------------------- | -------------------------------------------------------------------- |
409
- | `--plan-id <id>` | Yes | Plan ID |
410
- | `--billing-interval <interval>` | Yes | `weekly`, `monthly`, `quarterly`, `semiannual`, `yearly`, `one_time` |
411
- | `--price <n>` | One of `price` / `inherits-from-price-id` | Base price in the currency's minor unit |
412
- | `--inherits-from-price-id <id>` | One of `price` / `inherits-from-price-id` | Base price inherited by a selectable variant |
413
- | `--trial-days <n>` | No | Trial period in days |
414
- | `--is-default <bool>` | No | Set as default price |
415
- | `--included-balance <n>` | No | Included balance amount |
416
- | `--included-credits <n>` | No | Included credits amount |
417
- | `--market-prices <json>` | Required for a variant | Market prices as `{marketGroupId, currency, price}` objects |
418
- | `--metadata <json>` | No | Price metadata |
420
+ | Flag | Required | Description |
421
+ | ---------------------------------------- | ----------------------------------------- | -------------------------------------------------------------------- |
422
+ | `--plan-id <id>` | Yes | Plan ID |
423
+ | `--billing-interval <interval>` | Yes | `weekly`, `monthly`, `quarterly`, `semiannual`, `yearly`, `one_time` |
424
+ | `--price <n>` | One of `price` / `inherits-from-price-id` | Base price in the currency's minor unit |
425
+ | `--inherits-from-price-id <id>` | One of `price` / `inherits-from-price-id` | Base price inherited by a selectable variant |
426
+ | `--trial-days <n>` | No | Free trial days, `0` to `730` |
427
+ | `--trial-requires-payment-method <bool>` | No | `false` starts the trial without checkout |
428
+ | `--is-default <bool>` | No | Set as default price |
429
+ | `--included-balance <n>` | No | Included balance amount |
430
+ | `--included-credits <n>` | No | Included credits amount |
431
+ | `--market-prices <json>` | Required for a variant | Market prices as `{marketGroupId, currency, price}` objects |
432
+ | `--metadata <json>` | No | Price metadata |
419
433
 
420
434
  Create a selectable variant that changes only Argentina and inherits the rest of the base price:
421
435
 
@@ -736,11 +750,11 @@ Create reusable Offers independently from plans and distribution channels.
736
750
 
737
751
  ```bash
738
752
  commet offers create \
739
- --name "14 days free, then 25% off" \
740
- --phases '[{"type":"free_trial","durationDays":14},{"type":"percentage","percentage":2500,"durationCycles":3}]'
753
+ --name "25% off for 3 cycles" \
754
+ --phases '[{"type":"percentage","percentage":2500,"durationCycles":3}]'
741
755
  ```
742
756
 
743
- `percentage` uses basis points, so `2500` means 25%. Other phase types are `free_trial`, `amount_off`, and `fixed_price`.
757
+ `percentage` uses basis points, so `2500` means 25%. Other phase types are `amount_off` and `fixed_price`. Set trials on the plan price with `--trial-days`.
744
758
 
745
759
  ```bash
746
760
  commet offers list --active true
@@ -749,7 +763,7 @@ commet offers update --id ofr_xxx --name "Launch offer" --phases '[{"type":"fixe
749
763
  commet offers delete --id ofr_xxx
750
764
  ```
751
765
 
752
- An Offer does not contain `purpose` or plan-price associations. Attach a compatible Offer to a base price in the Dashboard for automatic introductory selection, pass its ID directly as `offerId`, or reference a single-discount Offer from a Promo Code.
766
+ An Offer does not contain `purpose` or plan-price associations. Attach a compatible Offer to a base price in the Dashboard for automatic introductory selection, pass its ID directly as `offerId`, or reference it from a Promo Code.
753
767
 
754
768
  ## Promo Codes
755
769
 
@@ -775,14 +789,15 @@ commet promo-codes create \
775
789
  --expires-at 2026-12-31
776
790
  ```
777
791
 
778
- | Flag | Required | Description |
779
- | ------------------------------- | -------- | ------------------------------------------------------------ |
780
- | `--code <code>` | Yes | Promo code string |
781
- | `--offer-id <id>` | Yes | Offer ID with exactly one `percentage` or `amount_off` phase |
782
- | `--billing-interval <interval>` | No | Restrict redemption to one billing interval |
783
- | `--max-redemptions <n>` | No | Maximum number of redemptions |
784
- | `--expires-at <date>` | No | Expiration date (ISO 8601) |
785
- | `--plan-ids <json>` | No | Restrict to specific plan IDs (JSON array) |
792
+ | Flag | Required | Description |
793
+ | ------------------------------- | -------- | ----------------------------------------------------- |
794
+ | `--code <code>` | Yes | Promo code string |
795
+ | `--offer-id <id>` | Yes | Offer ID |
796
+ | `--billing-interval <interval>` | No | Restrict redemption to one billing interval |
797
+ | `--max-redemptions <n>` | No | Maximum number of redemptions |
798
+ | `--expires-at <date>` | No | Expiration date (ISO 8601) |
799
+ | `--plan-ids <json>` | No | Restrict to specific plan IDs (JSON array) |
800
+ | `--first-purchase-only <bool>` | No | Only for a customer's first purchase. Default `false` |
786
801
 
787
802
  ```bash
788
803
  commet promo-codes list # List all promo codes
@@ -16,7 +16,7 @@ Choose the path that fits where you are working. You only need one to get starte
16
16
  1. Select your **sandbox organization** in the dashboard.
17
17
  2. Go to **Settings → API Keys** and click **Create API Key**.
18
18
  3. Choose **Full Access** for a backend or **AI Agents** to select resource permissions.
19
- 4. Enter a descriptive name, such as `Local development`, and choose **Expires In (Days)**. The dashboard accepts **1–365 days** and defaults to **365**.
19
+ 4. Enter a descriptive name of up to 32 characters, such as `Local development`, and choose **Expires In (Days)**. The dashboard accepts **1–365 days** and defaults to **365**.
20
20
  5. Create the key and copy it before closing the dialog. The full secret is shown only once.
21
21
 
22
22
  ### CLI
@@ -117,6 +117,8 @@ Use a separate key for each application or deployment that needs independent rot
117
117
  3. Verify a successful read with the replacement and confirm the application is using it.
118
118
  4. Delete the old key from **Settings → API Keys** or through [Delete API key](/docs/api-reference/api-keys/delete-api-key).
119
119
 
120
+ A deleted key stops authenticating within about 5 seconds. A key's last use, **Last used** in the dashboard and `lastUsedAt` in [List API keys](/docs/api-reference/api-keys/list-api-keys), can lag up to 5 minutes.
121
+
120
122
  For production, create a key in your **live organization** and store it separately from sandbox credentials. Do not copy sandbox customer, plan, or subscription IDs into live configuration. Before switching, verify checkout, webhooks, and a renewal in sandbox with the [Test Clock](/docs/testing-sandbox).
121
123
 
122
124
  Next, follow the [quickstart](/docs/choose-a-billing-model) to complete your first subscription payment in sandbox.
@@ -9,14 +9,22 @@ Self-service page where customers manage their subscription, view usage, change
9
9
 
10
10
  - View current subscription and billing cycle
11
11
  - See usage across all features
12
- - Upgrade or downgrade plans (requires a [Plan Group](/docs/plan-groups))
13
- - Purchase [Credit Packs](/docs/credit-packs), balance top-ups, and [Add-ons](/docs/add-ons)
12
+ - Upgrade or downgrade to group plans that sell their currency (requires a [Plan Group](/docs/plan-groups)), and keep the current plan when a change is scheduled (**Keep current plan**)
13
+ - Purchase the [Credit Packs](/docs/credit-packs) and [Add-ons](/docs/add-ons) their [plan version](/docs/plan-versions) sells, a chosen quantity of credits, and balance top-ups
14
+ - Turn on and edit [auto top-up](/docs/credit-packs#top-up-credits-automatically) for credits
15
+ - Add a card during a [trial without a payment method](/docs/trial-periods#start-a-trial-without-a-payment-method) (**Add card**)
14
16
  - Manage saved payment methods and billing details
15
17
  - View invoice history
16
18
  - Cancel subscription
17
19
 
18
20
  Purchases are available on active, trialing, and free plan subscriptions. Free plan customers are prompted to add a payment method on their first purchase.
19
21
 
22
+ When the plan group has a [default plan](/docs/plan-groups#default-plan-and-signup-trial), canceling a paid plan from the portal moves the customer to that default plan at period end instead of canceling.
23
+
24
+ ## Languages
25
+
26
+ The portal and checkout open in English, Spanish, or Portuguese, following the customer's browser language, and in English otherwise. Customer emails are sent in English or Spanish.
27
+
20
28
  ## Saved payment methods
21
29
 
22
30
  Your customers can save several cards and choose their default payment method. A new card becomes the default unless the customer saves it as an alternative. The first saved card is always the default.
@@ -85,6 +85,7 @@ Use:
85
85
  - `email` for billing communication.
86
86
  - `address` and `taxDocument` for billing and tax context.
87
87
  - `metadata` for application-specific values that do not control billing behavior.
88
+ - `planGroupId` to start the customer at once on the group's signup trial or default plan. See [Plan Groups](/docs/plan-groups#default-plan-and-signup-trial).
88
89
 
89
90
  ## Create customers in batch
90
91
 
@@ -154,7 +155,7 @@ $customerBatch = $commet->customers->createBatch(
154
155
  );
155
156
  ```
156
157
 
157
- A batch accepts up to 100 customers and returns successful and failed items independently.
158
+ A batch accepts up to 100 customers and returns successful and failed items independently. With `planGroupId`, each customer without an open subscription starts on the group's starting plan.
158
159
 
159
160
  ## Retrieve a customer
160
161
 
@@ -17,6 +17,7 @@ Verify your account, then request a payout of $10 or more from your available ba
17
17
 
18
18
  - Minimum payout: **$10**.
19
19
  - Money reaches your bank account in **up to 7 business days**.
20
+ - Receipts and statements are not available in sandbox.
20
21
  - **No payout fee.**
21
22
  - Account verification is required before your first payout.
22
23
 
@@ -26,9 +27,19 @@ Only your **Available** balance can be paid out. See the balance states in [Fina
26
27
 
27
28
  Navigate to **Payouts**. Add your bank accounts, then click **Withdraw funds** to request a payout from your available balance.
28
29
 
30
+ ## Download receipts and monthly statements
31
+
32
+ Live organizations with a Commet payout account get two documents:
33
+
34
+ - **Payout receipt**: a PDF for each paid payout. Open the payout in **Payouts** and click **Download**.
35
+ - **Monthly statement**: a PDF and a CSV with the opening balance, movements, closing balance, and the available, pending, held, and in-transit amounts. Find them in **Settings → Monthly statements**.
36
+
37
+ Statements cover a calendar month in UTC and are issued on the 2nd of the following month. A month with no movements and no balance has no statement. Documents exist from their launch onward; earlier payouts and months have none.
38
+
29
39
  ## Limitations
30
40
 
31
41
  - Minimum payout is **$10**.
32
42
  - Only the **Available** balance can be withdrawn — Pending funds cannot.
33
43
  - Account verification is required before the first payout.
34
44
  - Money reaches your bank account in **up to 7 business days**.
45
+ - Receipts and statements are not available in sandbox.
@@ -1,9 +1,9 @@
1
1
  ---
2
2
  title: Supported Countries
3
- description: Commet supports businesses in 112 countries across the Americas, Europe, Asia and Pacific, and Africa, and your country sets your payout currency.
3
+ description: Commet supports businesses in 88 countries across the Americas, Europe, Asia and Pacific, and Africa, and your country sets your payout currency.
4
4
  ---
5
5
 
6
- Commet supports businesses in 112 countries across all major regions. Your country is set during onboarding and determines your payout currency and compliance requirements.
6
+ Commet supports businesses in 88 countries across all major regions. Your country is set during onboarding and determines your payout currency and compliance requirements.
7
7
 
8
8
  ## Americas
9
9
 
@@ -11,12 +11,12 @@ Argentina, Bolivia, Brazil, Canada, Chile, Colombia, Costa Rica, Dominican Repub
11
11
 
12
12
  ## Europe
13
13
 
14
- Albania, Austria, Belgium, Bosnia & Herzegovina, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Moldova, Montenegro, Netherlands, North Macedonia, Norway, Poland, Portugal, Romania, San Marino, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, United Kingdom
14
+ Albania, Austria, Belgium, Bosnia & Herzegovina, Bulgaria, Croatia, Cyprus, Czechia, Denmark, Estonia, Finland, France, Germany, Greece, Iceland, Ireland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, San Marino, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, United Kingdom
15
15
 
16
16
  ## Asia & Pacific
17
17
 
18
- Armenia, Australia, Azerbaijan, Bahrain, Bangladesh, Bhutan, Brunei, Cambodia, Hong Kong, India, Indonesia, Israel, Japan, Jordan, Kazakhstan, South Korea, Kuwait, Laos, Malaysia, Mongolia, New Zealand, Oman, Pakistan, Philippines, Qatar, Singapore, Sri Lanka, Taiwan, Thailand, United Arab Emirates, Vietnam
18
+ Armenia, Australia, Azerbaijan, Brunei, Hong Kong, India, Indonesia, Israel, Japan, Kazakhstan, Laos, Mongolia, New Zealand, Philippines, Qatar, Singapore, Sri Lanka, Thailand
19
19
 
20
20
  ## Africa
21
21
 
22
- Algeria, Angola, Benin, Botswana, Côte d’Ivoire, Egypt, Ethiopia, Gabon, Gambia, Ghana, Kenya, Mauritius, Morocco, Mozambique, Namibia, Niger, Nigeria, Rwanda, Senegal, South Africa, Tanzania, Tunisia
22
+ Algeria, Angola, Botswana, Egypt, Ethiopia, Gambia, Ghana, Kenya, Mauritius, Morocco, Mozambique, Namibia, Nigeria, South Africa, Tanzania
@@ -13,24 +13,24 @@ When a renewal payment fails, the subscription moves to `past_due` and enters du
13
13
  4. The customer receives an email notification
14
14
  5. Commet retries the charge on a fixed schedule (dunning)
15
15
 
16
- If a retry succeeds, the subscription returns to `active`. If all retries fail, the subscription is canceled and the invoice is marked as `uncollectible`.
16
+ If a retry succeeds, the subscription returns to `active`. If all retries fail, the invoice is marked as `uncollectible` and the subscription is canceled. When the plan's group has a [default plan](/docs/plan-groups#default-plan-and-signup-trial), the subscription moves to it instead and `subscription.plan_changed` fires.
17
17
 
18
18
  ## Provider error mapping
19
19
 
20
20
  Commet translates provider responses into a common payment outcome and keeps the provider detail alongside it. For recurring failures, the [`payment.failed`](/docs/webhooks/payment-failed) webhook exposes `failureCode`, `failureMessage`, and a `recoveryUrl` when a recovery path is available. The exact `failureCode` depends on the provider, so use the normalized outcome and the recovery URL for customer handling instead of matching only one provider's raw codes.
21
21
 
22
- | Payment outcome | What it means | What to do |
23
- | ------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
24
- | `requires_action` | The provider needs an additional customer step, such as 3D Secure | Keep the customer in checkout and complete the authentication flow |
25
- | `PAYMENT_FAILED` with a decline code | The provider rejected the charge | Show a retry or alternate payment method and record the provider code for support |
26
- | `payment.failed` | A recurring charge failed and the invoice entered dunning | Keep service during the grace window, communicate the recovery path, and wait for a retry or recovery |
27
- | `payment.retry_failed` | All scheduled dunning retries were exhausted | Revoke access according to your product policy and ask the customer to start a new subscription or contact support |
22
+ | Payment outcome | What it means | What to do |
23
+ | ------------------------------------ | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
24
+ | `requires_action` | The provider needs an additional customer step, such as 3D Secure | Keep the customer in checkout and complete the authentication flow |
25
+ | `PAYMENT_FAILED` with a decline code | The provider rejected the charge | Show a retry or alternate payment method and record the provider code for support |
26
+ | `payment.failed` | A recurring charge failed and the invoice entered dunning | Keep service during the grace window, communicate the recovery path, and wait for a retry or recovery |
27
+ | `payment.retry_failed` | All scheduled dunning retries were exhausted | Revoke paid access according to your product policy and ask the customer to start a new subscription or contact support |
28
28
 
29
29
  Initial checkout card declines do not emit `payment.failed`; the checkout response carries the failure state directly. Recurring failures use the dunning flow below.
30
30
 
31
31
  ## Automatic retries
32
32
 
33
- Retries run on day 1, day 3, day 5, and day 7 after the original failure (4 retries). The calendar is anchored to the failure and never moves. After the last failed retry the subscription is canceled.
33
+ Retries run on day 1, day 3, day 5, and day 7 after the original failure (4 retries). The calendar is anchored to the failure and never moves. After the last failed retry the subscription is canceled, or moves to the plan group's default plan.
34
34
 
35
35
  Manual retries from the Customer Portal or [`reactivate`](#retry-the-charge-server-to-server) use the default payment method and have separate daily limits. They do not consume automatic retry slots or start another charge while an automatic retry is in progress.
36
36
 
@@ -48,7 +48,7 @@ Commet sends a payment-failure notification when a recurring charge enters dunni
48
48
 
49
49
  - [`payment.failed`](/docs/webhooks/payment-failed) — a recurring charge failed; use `failureCode`, `failureMessage`, and `recoveryUrl` to explain the next step.
50
50
  - [`payment.recovered`](/docs/webhooks/payment-recovered) — the outstanding invoice was paid and the subscription returned to `active`.
51
- - [`payment.retry_failed`](/docs/webhooks/payment-retry-failed) — all retries were exhausted and the subscription was canceled.
51
+ - [`payment.retry_failed`](/docs/webhooks/payment-retry-failed) — all retries were exhausted and the subscription was canceled or moved to the default plan.
52
52
 
53
53
  Send your own email, SMS, or in-app message when you need product-specific copy. Do not create a second retry schedule in your app; use Commet's events to close the communication loop.
54
54
 
@@ -9,7 +9,7 @@ Commet calculates tax, generates an invoice, and sends a receipt on every paymen
9
9
 
10
10
  > **Note**
11
11
  >
12
- > For lifetime deals and one-off purchases billed as a **plan** (trials, intro offers, add-ons, consumption models), use [One-Time Plans](/docs/one-time-payments) instead.
12
+ > For lifetime deals and one-off purchases billed as a **plan** (add-ons, consumption models), use [One-Time Plans](/docs/one-time-payments) instead.
13
13
 
14
14
  ## Link vs. charge
15
15
 
@@ -17,6 +17,8 @@ Customers can update their method through the [Customer Portal](/docs/customer-p
17
17
 
18
18
  In **Settings → Payments**, use **Payment routing** to assign countries to connected providers. You can select individual countries or region presets, then save the assignment. The map and routing list show which provider will handle each country.
19
19
 
20
+ Each connected account gets its own countries, including [several Stripe or dLocal accounts](/docs/payment-providers#connect-several-accounts-of-the-same-provider) in one organization. Label them with **Edit alias** to tell them apart.
21
+
20
22
  For a new checkout or other new activity, Commet resolves the customer's billing country as an ISO country code and looks up that country's route. For example, a customer whose billing address has `BR` uses the provider assigned to Brazil. The route is based on the billing address supplied to Commet, not on the customer's IP address.
21
23
 
22
24
  If a subscription already has a saved payment connection, recurring charges continue through that connection. This preserves the location of the vaulted payment method. When there is no saved connection, Commet uses the country route; when no country is available, it uses the organization's default provider.
@@ -19,6 +19,14 @@ To connect your own account:
19
19
 
20
20
  Commet registers and consumes the provider webhooks required to keep payment, refund, dispute, and setup events synchronized. You do not need to create a second billing integration for the connected account.
21
21
 
22
+ ### Connect several accounts of the same provider
23
+
24
+ An organization can connect more than one Stripe or dLocal account, for example one dLocal account for Argentina and another for Brazil and Mexico. Each additional account starts with no countries and is not the default.
25
+
26
+ Give each account a label with **Edit alias** in its menu, then assign its countries in **Payment routing**. When you have several accounts of the same provider, Payment routing shows each connection ID (`pcon_...`) to copy.
27
+
28
+ To pin a subscription's first checkout to one account, pass its connection ID as `provider` when [creating the subscription](/docs/manage-subscriptions#create). `provider: "stripe"` or `"dlocal"` uses the oldest connected account of that provider.
29
+
22
30
  ### Stripe credentials
23
31
 
24
32
  Provide the Stripe **secret key** and **publishable key** for the account you own. In sandbox mode, use `sk_test_...` and `pk_test_...` keys. In live mode, use `sk_live_...` and `pk_live_...` keys. Commet rejects keys from the wrong mode.
@@ -27,6 +35,44 @@ Provide the Stripe **secret key** and **publishable key** for the account you ow
27
35
 
28
36
  Provide the credentials issued for the matching dLocal environment: **X-Login**, **X-Trans-Key**, **Secret Key**, and the **API key (dlocal.js)**. Commet validates the account before saving the connection.
29
37
 
38
+ ## Choose payment methods per connection
39
+
40
+ Stripe and Commet connections accept cards. A dLocal connection can also offer local methods; each one applies only to that connection.
41
+
42
+ Open **Settings → Payments**, open the connection menu, and choose **Payment methods**. Enable a method in your dLocal account before turning it on in Commet.
43
+
44
+ | Method | Where it's offered |
45
+ | ------------ | ------------------------- |
46
+ | Card | All countries |
47
+ | Google Pay | All countries |
48
+ | Mercado Pago | Argentina, in ARS |
49
+ | OXXO | Mexico, as a cash voucher |
50
+ | SmartPix | Brazil, in BRL |
51
+
52
+ A country method appears under **Not available for this connection** until its country is assigned to the connection. Google Pay asks for the **dLocal gateway merchant ID**, the **Google merchant ID** (optional in sandbox), and the **Business name** buyers see.
53
+
54
+ The `paymentMethod` of each [transaction](/docs/transactions-refunds-and-retries) names the method used: `card`, `google_pay`, `mercado_pago`, `oxxo`, or `smartpix`.
55
+
56
+ ### Limit the methods of one checkout
57
+
58
+ To offer only some methods in a subscription's first checkout, pass `paymentMethodTypes` when [creating the subscription](/docs/manage-subscriptions#create), for example `["oxxo"]`. The list only narrows what the checkout already offers for the buyer's country and connection: it never turns on a method or changes which connection the checkout uses. With `["card", "oxxo"]`, a buyer in Mexico sees card and OXXO, and a buyer in Argentina sees only card. Pass `provider` as well to choose the connection.
59
+
60
+ Every method in the list must be turned on in the `provider` connection, or in one of your connections when you don't pass `provider`. Otherwise the request fails with `validation_error` naming that method. A plan that starts with a card trial also rejects methods that can't be saved for renewals, such as OXXO.
61
+
62
+ When no method in the list is available to the buyer, the checkout shows that it can't accept payments and charges nothing. A new checkout for the same invoice, for example after an OXXO voucher expires, keeps the list.
63
+
64
+ ### Mercado Pago
65
+
66
+ The customer authorizes Mercado Pago once in checkout. Commet charges the first payment after the authorization is active, and charges renewals to it automatically.
67
+
68
+ If the customer revokes the authorization in Mercado Pago, Commet removes the saved method and sends the `payment_method.detached` webhook; the subscription does not change. If no other usable method is saved when the next renewal is due, the payment fails and the subscription follows [failed-payment recovery](/docs/what-happens-when-a-payment-fails). The customer can authorize Mercado Pago again from the [Customer Portal](/docs/customer-portal).
69
+
70
+ ### OXXO
71
+
72
+ OXXO is a cash voucher. Checkout shows it inline with the amount, the expiration date, the barcode, and the reference, which the customer can copy or save. The subscription activates when dLocal confirms the payment.
73
+
74
+ Cash can't renew. A subscription paid with OXXO and no other saved payment method [ends after its paid periods](/docs/pay-in-advance#end-oxxo-subscriptions-after-their-paid-periods) unless the customer adds a card. Combine OXXO with [Pay in Advance](/docs/pay-in-advance) to sell several periods with one voucher.
75
+
30
76
  ## Sandbox and live credentials
31
77
 
32
78
  Sandbox and live credentials belong to different payment environments. Keep test credentials in the Commet sandbox organization and live credentials in the live organization. Never copy a live secret into sandbox or a test key into live.