@commet/node 9.3.0 → 9.5.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 (295) hide show
  1. package/dist/index.d.mts +366 -17
  2. package/dist/index.d.ts +366 -17
  3. package/dist/index.js +31 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +31 -7
  6. package/dist/index.mjs.map +1 -1
  7. package/docs/ai-onboarding/ai-onboarding.md +2 -3
  8. package/docs/ai-onboarding/billing-best-practices-skill.md +2 -3
  9. package/docs/ai-onboarding/commet-skill.md +4 -5
  10. package/docs/ai-onboarding/mcp-server.md +8 -9
  11. package/docs/ai-onboarding/pricing-models-skill.md +2 -3
  12. package/docs/ai-onboarding/subscription-patterns-skill.md +2 -3
  13. package/docs/api-reference/addons.md +1 -1
  14. package/docs/api-reference/api-keys.md +3 -2
  15. package/docs/api-reference/credit-packs.md +1 -1
  16. package/docs/api-reference/customers.md +1 -1
  17. package/docs/api-reference/feature-access.md +1 -1
  18. package/docs/api-reference/features.md +1 -1
  19. package/docs/api-reference/generated-webhooks.md +3 -3
  20. package/docs/api-reference/index.md +2 -2
  21. package/docs/api-reference/invoices.md +1 -1
  22. package/docs/api-reference/markets.md +1 -1
  23. package/docs/api-reference/offers.md +1 -1
  24. package/docs/api-reference/payments.md +1 -1
  25. package/docs/api-reference/payouts.md +1 -1
  26. package/docs/api-reference/plan-groups.md +1 -1
  27. package/docs/api-reference/plans.md +1 -1
  28. package/docs/api-reference/portal.md +1 -1
  29. package/docs/api-reference/promo-codes.md +2 -2
  30. package/docs/api-reference/provisioning.md +1 -1
  31. package/docs/api-reference/quota.md +1 -1
  32. package/docs/api-reference/seats.md +1 -1
  33. package/docs/api-reference/subscriptions.md +81 -2
  34. package/docs/api-reference/test-clock.md +1 -1
  35. package/docs/api-reference/transactions.md +1 -1
  36. package/docs/api-reference/usage.md +1 -1
  37. package/docs/documentation/api-versioning.md +1 -2
  38. package/docs/documentation/better-auth.md +0 -1
  39. package/docs/documentation/choose-a-billing-model.md +54 -26
  40. package/docs/documentation/cli.md +1 -2
  41. package/docs/documentation/create-api-key.md +100 -25
  42. package/docs/documentation/customers/customer-credits.md +0 -1
  43. package/docs/documentation/customers/customer-portal.md +14 -2
  44. package/docs/documentation/customers/manage-customers.md +1 -2
  45. package/docs/documentation/error-handling.md +1 -2
  46. package/docs/documentation/examples.md +0 -1
  47. package/docs/documentation/finance/acceptable-use.md +0 -1
  48. package/docs/documentation/finance/finance-overview.md +0 -1
  49. package/docs/documentation/finance/local-currency-taxes.md +0 -1
  50. package/docs/documentation/finance/merchant-of-record.md +0 -1
  51. package/docs/documentation/finance/payouts-verification.md +6 -3
  52. package/docs/documentation/finance/payouts.md +0 -1
  53. package/docs/documentation/finance/supported-countries.md +0 -1
  54. package/docs/documentation/go/integrate-with-encore.md +7 -8
  55. package/docs/documentation/go/integrate-with-go.md +8 -9
  56. package/docs/documentation/introduction.md +62 -41
  57. package/docs/documentation/invoicing/handle-failed-payments.md +9 -4
  58. package/docs/documentation/invoicing/invoices-and-billing-cycles.md +0 -1
  59. package/docs/documentation/invoicing/manage-invoices.md +0 -1
  60. package/docs/documentation/java/integrate-with-java.md +6 -7
  61. package/docs/documentation/nodejs/integrate-with-astro.md +6 -7
  62. package/docs/documentation/nodejs/integrate-with-bun.md +6 -7
  63. package/docs/documentation/nodejs/integrate-with-express.md +7 -8
  64. package/docs/documentation/nodejs/integrate-with-hono.md +7 -8
  65. package/docs/documentation/nodejs/integrate-with-nextjs.md +6 -7
  66. package/docs/documentation/nodejs/integrate-with-nuxt.md +6 -7
  67. package/docs/documentation/nodejs/integrate-with-remix.md +6 -7
  68. package/docs/documentation/nodejs/integrate-with-sveltekit.md +6 -7
  69. package/docs/documentation/payments/accept-one-time-payments.md +0 -1
  70. package/docs/documentation/payments/payment-orchestration.md +0 -1
  71. package/docs/documentation/payments/payment-providers.md +0 -1
  72. package/docs/documentation/payments/transactions-refunds-and-retries.md +8 -1
  73. package/docs/documentation/php/integrate-with-laravel.md +8 -9
  74. package/docs/documentation/php/integrate-with-php.md +6 -7
  75. package/docs/documentation/php/integrate-with-symfony.md +7 -8
  76. package/docs/documentation/plans/add-ons.md +0 -1
  77. package/docs/documentation/plans/balance-and-top-ups.md +0 -1
  78. package/docs/documentation/plans/configure-features.md +0 -1
  79. package/docs/documentation/plans/consumption-models.md +0 -1
  80. package/docs/documentation/plans/create-plans.md +0 -1
  81. package/docs/documentation/plans/credit-packs.md +0 -1
  82. package/docs/documentation/plans/one-time-payments.md +0 -1
  83. package/docs/documentation/plans/plan-groups.md +0 -1
  84. package/docs/documentation/platform/custom-domains.md +0 -1
  85. package/docs/documentation/platform/dashboard-metrics-and-events.md +0 -1
  86. package/docs/documentation/platform/members-and-permissions.md +0 -1
  87. package/docs/documentation/platform/organization-settings.md +0 -1
  88. package/docs/documentation/python/integrate-with-django.md +8 -9
  89. package/docs/documentation/python/integrate-with-fastapi.md +8 -9
  90. package/docs/documentation/python/integrate-with-flask.md +8 -9
  91. package/docs/documentation/python/integrate-with-python.md +6 -7
  92. package/docs/documentation/sales/card-promotions.md +0 -1
  93. package/docs/documentation/sales/introductory-offers.md +0 -1
  94. package/docs/documentation/sales/offers.md +0 -1
  95. package/docs/documentation/sales/promo-codes.md +19 -5
  96. package/docs/documentation/sales/promotional-offers.md +1 -2
  97. package/docs/documentation/sales/regional-prices.md +0 -1
  98. package/docs/documentation/sales/trial-periods.md +8 -8
  99. package/docs/documentation/sdk-reference.md +9 -10
  100. package/docs/documentation/subscriptions/manage-subscriptions.md +114 -12
  101. package/docs/documentation/subscriptions/plan-grants.md +0 -1
  102. package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +0 -1
  103. package/docs/documentation/testing-sandbox.md +0 -1
  104. package/docs/documentation/usage/ai-token-billing.md +0 -1
  105. package/docs/documentation/usage/quota-management.md +0 -1
  106. package/docs/documentation/usage/seat-management.md +0 -1
  107. package/docs/documentation/usage/track-usage.md +0 -1
  108. package/docs/errors/addon_already_active.md +1 -1
  109. package/docs/errors/addon_has_activations.md +1 -1
  110. package/docs/errors/addon_not_active.md +1 -1
  111. package/docs/errors/addon_not_found.md +1 -1
  112. package/docs/errors/already_has_active_subscription.md +1 -1
  113. package/docs/errors/already_scheduled.md +1 -1
  114. package/docs/errors/api_key_not_found.md +1 -1
  115. package/docs/errors/card_promotions_not_available.md +1 -1
  116. package/docs/errors/charge_failed.md +1 -1
  117. package/docs/errors/charge_in_progress.md +1 -1
  118. package/docs/errors/claim_not_pending.md +1 -1
  119. package/docs/errors/credit_pack_not_found.md +1 -1
  120. package/docs/errors/customer_not_found.md +1 -1
  121. package/docs/errors/duplicate.md +1 -1
  122. package/docs/errors/endpoint_deprecated.md +1 -1
  123. package/docs/errors/endpoint_not_available.md +1 -1
  124. package/docs/errors/feature_already_exists.md +1 -1
  125. package/docs/errors/feature_disabled.md +1 -1
  126. package/docs/errors/feature_in_use.md +1 -1
  127. package/docs/errors/feature_not_found.md +1 -1
  128. package/docs/errors/feature_not_in_plan.md +1 -1
  129. package/docs/errors/forbidden.md +1 -1
  130. package/docs/errors/free_plan_change_not_supported.md +1 -1
  131. package/docs/errors/idempotency_in_progress.md +1 -1
  132. package/docs/errors/idempotency_key_mismatch.md +1 -1
  133. package/docs/errors/idempotency_unavailable.md +1 -1
  134. package/docs/errors/included_limit_reached.md +1 -1
  135. package/docs/errors/index.md +1 -1
  136. package/docs/errors/insufficient_balance.md +1 -1
  137. package/docs/errors/insufficient_credits.md +1 -1
  138. package/docs/errors/insufficient_seats.md +1 -1
  139. package/docs/errors/internal_error.md +1 -1
  140. package/docs/errors/invalid_json.md +1 -1
  141. package/docs/errors/invalid_subscription_status.md +1 -1
  142. package/docs/errors/invoice_not_found.md +1 -1
  143. package/docs/errors/market_group_in_use.md +1 -1
  144. package/docs/errors/market_group_not_found.md +1 -1
  145. package/docs/errors/market_in_use.md +1 -1
  146. package/docs/errors/market_not_found.md +1 -1
  147. package/docs/errors/missing_regional_price.md +1 -1
  148. package/docs/errors/model_not_found.md +1 -1
  149. package/docs/errors/no_active_subscription.md +1 -1
  150. package/docs/errors/no_change_requested.md +1 -1
  151. package/docs/errors/no_outstanding_invoice.md +1 -1
  152. package/docs/errors/no_payment_method.md +1 -1
  153. package/docs/errors/no_prices_configured.md +1 -1
  154. package/docs/errors/not_found.md +1 -1
  155. package/docs/errors/not_scheduled_for_cancellation.md +1 -1
  156. package/docs/errors/offer_not_applicable.md +1 -1
  157. package/docs/errors/offer_not_found.md +1 -1
  158. package/docs/errors/one_time_subscription_not_cancelable.md +1 -1
  159. package/docs/errors/organization_already_claimed.md +1 -1
  160. package/docs/errors/payment_failed.md +1 -1
  161. package/docs/errors/payment_method_not_found.md +1 -1
  162. package/docs/errors/payment_not_cancelable.md +1 -1
  163. package/docs/errors/payment_not_found.md +1 -1
  164. package/docs/errors/payouts_not_available_in_sandbox.md +1 -1
  165. package/docs/errors/plan_change_scheduled.md +1 -1
  166. package/docs/errors/plan_group_not_found.md +1 -1
  167. package/docs/errors/plan_not_found.md +1 -1
  168. package/docs/errors/plan_unavailable.md +1 -1
  169. package/docs/errors/plans_not_in_same_group.md +1 -1
  170. package/docs/errors/price_in_use.md +1 -1
  171. package/docs/errors/price_not_found.md +1 -1
  172. package/docs/errors/pricing_mode_mismatch.md +1 -1
  173. package/docs/errors/promo_code_expired.md +1 -1
  174. package/docs/errors/promo_code_not_found.md +1 -1
  175. package/docs/errors/provider_unsupported.md +1 -1
  176. package/docs/errors/rate_limited.md +1 -1
  177. package/docs/errors/sandbox_only.md +1 -1
  178. package/docs/errors/seat_limit_exceeded.md +1 -1
  179. package/docs/errors/subscription_activation_failed.md +1 -1
  180. package/docs/errors/subscription_already_canceled.md +1 -1
  181. package/docs/errors/subscription_cancel_failed.md +1 -1
  182. package/docs/errors/subscription_creation_failed.md +1 -1
  183. package/docs/errors/subscription_has_open_dispute.md +1 -1
  184. package/docs/errors/subscription_not_active.md +1 -1
  185. package/docs/errors/subscription_not_found.md +1 -1
  186. package/docs/errors/subscription_required.md +1 -1
  187. package/docs/errors/subscription_uncancel_failed.md +1 -1
  188. package/docs/errors/transaction_not_found.md +1 -1
  189. package/docs/errors/unauthorized.md +1 -1
  190. package/docs/errors/validation_error.md +1 -1
  191. package/docs/errors/webhook_not_found.md +1 -1
  192. package/docs/knowledge-base/how-do-balance-and-top-ups-work.md +0 -1
  193. package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +0 -1
  194. package/docs/knowledge-base/how-do-discounts-work.md +0 -1
  195. package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +0 -1
  196. package/docs/knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md +0 -1
  197. package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +0 -1
  198. package/docs/knowledge-base/how-do-trial-periods-work.md +0 -1
  199. package/docs/knowledge-base/how-does-billing-work.md +0 -1
  200. package/docs/knowledge-base/how-does-payment-routing-work.md +0 -1
  201. package/docs/knowledge-base/how-does-quota-based-billing-work.md +0 -1
  202. package/docs/knowledge-base/how-does-seat-based-billing-work.md +0 -1
  203. package/docs/knowledge-base/how-is-proration-calculated-when-changing-plans.md +0 -1
  204. package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +0 -1
  205. package/docs/knowledge-base/what-happens-when-a-payment-fails.md +0 -1
  206. package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +0 -1
  207. package/docs/knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md +1 -2
  208. package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +0 -1
  209. package/docs/manifest.json +186 -235
  210. package/docs/platform-documentation.md +69 -149
  211. package/docs/schemas.md +35 -1
  212. package/docs/webhooks/introduction.md +0 -1
  213. package/docs/webhooks.md +98 -7
  214. package/docs/webhooks.openapi.json +11058 -0
  215. package/package.json +1 -1
  216. package/docs/ai-onboarding/meta.json +0 -17
  217. package/docs/api-reference/meta.json +0 -7
  218. package/docs/documentation/customers/meta.json +0 -5
  219. package/docs/documentation/finance/meta.json +0 -13
  220. package/docs/documentation/go/meta.json +0 -5
  221. package/docs/documentation/invoicing/meta.json +0 -9
  222. package/docs/documentation/java/meta.json +0 -5
  223. package/docs/documentation/meta.json +0 -36
  224. package/docs/documentation/nodejs/meta.json +0 -14
  225. package/docs/documentation/payments/meta.json +0 -10
  226. package/docs/documentation/php/meta.json +0 -9
  227. package/docs/documentation/plans/meta.json +0 -14
  228. package/docs/documentation/platform/meta.json +0 -10
  229. package/docs/documentation/python/meta.json +0 -10
  230. package/docs/documentation/sales/meta.json +0 -13
  231. package/docs/documentation/subscriptions/meta.json +0 -9
  232. package/docs/documentation/usage/meta.json +0 -10
  233. package/docs/knowledge-base/meta.json +0 -29
  234. package/docs/meta.json +0 -11
  235. package/docs/webhooks/addon-activated.md +0 -44
  236. package/docs/webhooks/addon-deactivated.md +0 -40
  237. package/docs/webhooks/balance-depleted.md +0 -37
  238. package/docs/webhooks/balance-low.md +0 -39
  239. package/docs/webhooks/balance-topped-up.md +0 -41
  240. package/docs/webhooks/checkout-ready.md +0 -43
  241. package/docs/webhooks/credits-depleted.md +0 -35
  242. package/docs/webhooks/credits-expired.md +0 -35
  243. package/docs/webhooks/credits-granted.md +0 -37
  244. package/docs/webhooks/credits-low.md +0 -39
  245. package/docs/webhooks/credits-purchased.md +0 -41
  246. package/docs/webhooks/customer-created.md +0 -49
  247. package/docs/webhooks/customer-state-changed.md +0 -134
  248. package/docs/webhooks/customer-updated.md +0 -49
  249. package/docs/webhooks/invoice-created.md +0 -45
  250. package/docs/webhooks/invoice-overdue.md +0 -53
  251. package/docs/webhooks/invoice-upcoming.md +0 -43
  252. package/docs/webhooks/invoice-voided.md +0 -53
  253. package/docs/webhooks/meta.json +0 -83
  254. package/docs/webhooks/payment-dispute-resolved.md +0 -52
  255. package/docs/webhooks/payment-disputed.md +0 -49
  256. package/docs/webhooks/payment-failed.md +0 -37
  257. package/docs/webhooks/payment-link-canceled.md +0 -41
  258. package/docs/webhooks/payment-link-completed.md +0 -47
  259. package/docs/webhooks/payment-link-created.md +0 -41
  260. package/docs/webhooks/payment-link-failed.md +0 -45
  261. package/docs/webhooks/payment-method-attached.md +0 -40
  262. package/docs/webhooks/payment-method-updated.md +0 -38
  263. package/docs/webhooks/payment-received.md +0 -45
  264. package/docs/webhooks/payment-recovered.md +0 -39
  265. package/docs/webhooks/payment-refunded.md +0 -47
  266. package/docs/webhooks/payment-retry-failed.md +0 -39
  267. package/docs/webhooks/payout-available.md +0 -33
  268. package/docs/webhooks/payout-created.md +0 -48
  269. package/docs/webhooks/payout-failed.md +0 -52
  270. package/docs/webhooks/payout-paid.md +0 -48
  271. package/docs/webhooks/plan-grant-created.md +0 -74
  272. package/docs/webhooks/plan-grant-expired.md +0 -86
  273. package/docs/webhooks/plan-grant-revoked.md +0 -86
  274. package/docs/webhooks/plan-grant-updated.md +0 -86
  275. package/docs/webhooks/quota-exceeded.md +0 -44
  276. package/docs/webhooks/quota-threshold-reached.md +0 -41
  277. package/docs/webhooks/seats-limit-reached.md +0 -39
  278. package/docs/webhooks/seats-updated.md +0 -39
  279. package/docs/webhooks/subscription-activated.md +0 -43
  280. package/docs/webhooks/subscription-canceled.md +0 -57
  281. package/docs/webhooks/subscription-cancellation-revoked.md +0 -37
  282. package/docs/webhooks/subscription-cancellation-scheduled.md +0 -45
  283. package/docs/webhooks/subscription-created.md +0 -35
  284. package/docs/webhooks/subscription-past-due.md +0 -43
  285. package/docs/webhooks/subscription-plan-change-revoked.md +0 -50
  286. package/docs/webhooks/subscription-plan-change-scheduled.md +0 -55
  287. package/docs/webhooks/subscription-plan-changed.md +0 -43
  288. package/docs/webhooks/subscription-reactivated.md +0 -53
  289. package/docs/webhooks/subscription-updated.md +0 -39
  290. package/docs/webhooks/trial-checkout-ready.md +0 -39
  291. package/docs/webhooks/trial-converted.md +0 -39
  292. package/docs/webhooks/trial-expired.md +0 -39
  293. package/docs/webhooks/trial-started.md +0 -46
  294. package/docs/webhooks/trial-will-end.md +0 -41
  295. package/docs/webhooks/usage-recorded.md +0 -41
@@ -1,179 +1,99 @@
1
1
  # Complete Commet documentation
2
2
 
3
- This documentation snapshot is serialized from the same Platform source used by commet.co and installed with this SDK release.
3
+ This documentation snapshot is serialized from the source of commet.co/docs and installed with this SDK release.
4
4
 
5
- - [ai-onboarding/ai-onboarding.md](./ai-onboarding/ai-onboarding.md)
6
- - [ai-onboarding/billing-best-practices-skill.md](./ai-onboarding/billing-best-practices-skill.md)
7
- - [ai-onboarding/commet-skill.md](./ai-onboarding/commet-skill.md)
8
- - [ai-onboarding/mcp-server.md](./ai-onboarding/mcp-server.md)
9
- - [ai-onboarding/meta.json](./ai-onboarding/meta.json)
10
- - [ai-onboarding/pricing-models-skill.md](./ai-onboarding/pricing-models-skill.md)
11
- - [ai-onboarding/subscription-patterns-skill.md](./ai-onboarding/subscription-patterns-skill.md)
12
- - [api-reference/meta.json](./api-reference/meta.json)
13
- - [documentation/api-versioning.md](./documentation/api-versioning.md)
14
- - [documentation/better-auth.md](./documentation/better-auth.md)
15
- - [documentation/choose-a-billing-model.md](./documentation/choose-a-billing-model.md)
16
- - [documentation/cli.md](./documentation/cli.md)
17
- - [documentation/create-api-key.md](./documentation/create-api-key.md)
18
- - [documentation/customers/customer-credits.md](./documentation/customers/customer-credits.md)
19
- - [documentation/customers/customer-portal.md](./documentation/customers/customer-portal.md)
20
- - [documentation/customers/manage-customers.md](./documentation/customers/manage-customers.md)
21
- - [documentation/customers/meta.json](./documentation/customers/meta.json)
22
- - [documentation/error-handling.md](./documentation/error-handling.md)
23
- - [documentation/examples.md](./documentation/examples.md)
24
- - [documentation/finance/acceptable-use.md](./documentation/finance/acceptable-use.md)
25
- - [documentation/finance/finance-overview.md](./documentation/finance/finance-overview.md)
26
- - [documentation/finance/local-currency-taxes.md](./documentation/finance/local-currency-taxes.md)
27
- - [documentation/finance/merchant-of-record.md](./documentation/finance/merchant-of-record.md)
28
- - [documentation/finance/meta.json](./documentation/finance/meta.json)
29
- - [documentation/finance/payouts-verification.md](./documentation/finance/payouts-verification.md)
30
- - [documentation/finance/payouts.md](./documentation/finance/payouts.md)
31
- - [documentation/finance/supported-countries.md](./documentation/finance/supported-countries.md)
32
- - [documentation/go/integrate-with-encore.md](./documentation/go/integrate-with-encore.md)
33
- - [documentation/go/integrate-with-go.md](./documentation/go/integrate-with-go.md)
34
- - [documentation/go/meta.json](./documentation/go/meta.json)
35
5
  - [documentation/introduction.md](./documentation/introduction.md)
36
- - [documentation/invoicing/handle-failed-payments.md](./documentation/invoicing/handle-failed-payments.md)
37
- - [documentation/invoicing/invoices-and-billing-cycles.md](./documentation/invoicing/invoices-and-billing-cycles.md)
38
- - [documentation/invoicing/manage-invoices.md](./documentation/invoicing/manage-invoices.md)
39
- - [documentation/invoicing/meta.json](./documentation/invoicing/meta.json)
40
- - [documentation/java/integrate-with-java.md](./documentation/java/integrate-with-java.md)
41
- - [documentation/java/meta.json](./documentation/java/meta.json)
42
- - [documentation/meta.json](./documentation/meta.json)
6
+ - [documentation/create-api-key.md](./documentation/create-api-key.md)
7
+ - [documentation/choose-a-billing-model.md](./documentation/choose-a-billing-model.md)
8
+ - [documentation/nodejs/integrate-with-nextjs.md](./documentation/nodejs/integrate-with-nextjs.md)
9
+ - [documentation/nodejs/integrate-with-remix.md](./documentation/nodejs/integrate-with-remix.md)
43
10
  - [documentation/nodejs/integrate-with-astro.md](./documentation/nodejs/integrate-with-astro.md)
11
+ - [documentation/nodejs/integrate-with-sveltekit.md](./documentation/nodejs/integrate-with-sveltekit.md)
12
+ - [documentation/nodejs/integrate-with-nuxt.md](./documentation/nodejs/integrate-with-nuxt.md)
44
13
  - [documentation/nodejs/integrate-with-bun.md](./documentation/nodejs/integrate-with-bun.md)
45
14
  - [documentation/nodejs/integrate-with-express.md](./documentation/nodejs/integrate-with-express.md)
46
15
  - [documentation/nodejs/integrate-with-hono.md](./documentation/nodejs/integrate-with-hono.md)
47
- - [documentation/nodejs/integrate-with-nextjs.md](./documentation/nodejs/integrate-with-nextjs.md)
48
- - [documentation/nodejs/integrate-with-nuxt.md](./documentation/nodejs/integrate-with-nuxt.md)
49
- - [documentation/nodejs/integrate-with-remix.md](./documentation/nodejs/integrate-with-remix.md)
50
- - [documentation/nodejs/integrate-with-sveltekit.md](./documentation/nodejs/integrate-with-sveltekit.md)
51
- - [documentation/nodejs/meta.json](./documentation/nodejs/meta.json)
52
- - [documentation/payments/accept-one-time-payments.md](./documentation/payments/accept-one-time-payments.md)
53
- - [documentation/payments/meta.json](./documentation/payments/meta.json)
54
- - [documentation/payments/payment-orchestration.md](./documentation/payments/payment-orchestration.md)
55
- - [documentation/payments/payment-providers.md](./documentation/payments/payment-providers.md)
56
- - [documentation/payments/transactions-refunds-and-retries.md](./documentation/payments/transactions-refunds-and-retries.md)
57
- - [documentation/php/integrate-with-laravel.md](./documentation/php/integrate-with-laravel.md)
16
+ - [documentation/python/integrate-with-python.md](./documentation/python/integrate-with-python.md)
17
+ - [documentation/python/integrate-with-django.md](./documentation/python/integrate-with-django.md)
18
+ - [documentation/python/integrate-with-flask.md](./documentation/python/integrate-with-flask.md)
19
+ - [documentation/python/integrate-with-fastapi.md](./documentation/python/integrate-with-fastapi.md)
20
+ - [documentation/java/integrate-with-java.md](./documentation/java/integrate-with-java.md)
21
+ - [documentation/go/integrate-with-go.md](./documentation/go/integrate-with-go.md)
22
+ - [documentation/go/integrate-with-encore.md](./documentation/go/integrate-with-encore.md)
58
23
  - [documentation/php/integrate-with-php.md](./documentation/php/integrate-with-php.md)
24
+ - [documentation/php/integrate-with-laravel.md](./documentation/php/integrate-with-laravel.md)
59
25
  - [documentation/php/integrate-with-symfony.md](./documentation/php/integrate-with-symfony.md)
60
- - [documentation/php/meta.json](./documentation/php/meta.json)
26
+ - [documentation/customers/manage-customers.md](./documentation/customers/manage-customers.md)
27
+ - [documentation/customers/customer-credits.md](./documentation/customers/customer-credits.md)
28
+ - [documentation/customers/customer-portal.md](./documentation/customers/customer-portal.md)
29
+ - [documentation/plans/create-plans.md](./documentation/plans/create-plans.md)
61
30
  - [documentation/plans/add-ons.md](./documentation/plans/add-ons.md)
62
- - [documentation/plans/balance-and-top-ups.md](./documentation/plans/balance-and-top-ups.md)
63
31
  - [documentation/plans/configure-features.md](./documentation/plans/configure-features.md)
64
32
  - [documentation/plans/consumption-models.md](./documentation/plans/consumption-models.md)
65
- - [documentation/plans/create-plans.md](./documentation/plans/create-plans.md)
33
+ - [documentation/plans/balance-and-top-ups.md](./documentation/plans/balance-and-top-ups.md)
66
34
  - [documentation/plans/credit-packs.md](./documentation/plans/credit-packs.md)
67
- - [documentation/plans/meta.json](./documentation/plans/meta.json)
68
- - [documentation/plans/one-time-payments.md](./documentation/plans/one-time-payments.md)
69
35
  - [documentation/plans/plan-groups.md](./documentation/plans/plan-groups.md)
70
- - [documentation/platform/custom-domains.md](./documentation/platform/custom-domains.md)
71
- - [documentation/platform/dashboard-metrics-and-events.md](./documentation/platform/dashboard-metrics-and-events.md)
72
- - [documentation/platform/members-and-permissions.md](./documentation/platform/members-and-permissions.md)
73
- - [documentation/platform/meta.json](./documentation/platform/meta.json)
74
- - [documentation/platform/organization-settings.md](./documentation/platform/organization-settings.md)
75
- - [documentation/python/integrate-with-django.md](./documentation/python/integrate-with-django.md)
76
- - [documentation/python/integrate-with-fastapi.md](./documentation/python/integrate-with-fastapi.md)
77
- - [documentation/python/integrate-with-flask.md](./documentation/python/integrate-with-flask.md)
78
- - [documentation/python/integrate-with-python.md](./documentation/python/integrate-with-python.md)
79
- - [documentation/python/meta.json](./documentation/python/meta.json)
36
+ - [documentation/plans/one-time-payments.md](./documentation/plans/one-time-payments.md)
37
+ - [documentation/sales/offers.md](./documentation/sales/offers.md)
80
38
  - [documentation/sales/card-promotions.md](./documentation/sales/card-promotions.md)
39
+ - [documentation/sales/promotional-offers.md](./documentation/sales/promotional-offers.md)
81
40
  - [documentation/sales/introductory-offers.md](./documentation/sales/introductory-offers.md)
82
- - [documentation/sales/meta.json](./documentation/sales/meta.json)
83
- - [documentation/sales/offers.md](./documentation/sales/offers.md)
84
41
  - [documentation/sales/promo-codes.md](./documentation/sales/promo-codes.md)
85
- - [documentation/sales/promotional-offers.md](./documentation/sales/promotional-offers.md)
86
42
  - [documentation/sales/regional-prices.md](./documentation/sales/regional-prices.md)
87
43
  - [documentation/sales/trial-periods.md](./documentation/sales/trial-periods.md)
88
- - [documentation/sdk-reference.md](./documentation/sdk-reference.md)
89
44
  - [documentation/subscriptions/manage-subscriptions.md](./documentation/subscriptions/manage-subscriptions.md)
90
- - [documentation/subscriptions/meta.json](./documentation/subscriptions/meta.json)
91
45
  - [documentation/subscriptions/plan-grants.md](./documentation/subscriptions/plan-grants.md)
92
46
  - [documentation/subscriptions/upgrade-and-downgrade-plans.md](./documentation/subscriptions/upgrade-and-downgrade-plans.md)
93
- - [documentation/testing-sandbox.md](./documentation/testing-sandbox.md)
47
+ - [documentation/usage/track-usage.md](./documentation/usage/track-usage.md)
94
48
  - [documentation/usage/ai-token-billing.md](./documentation/usage/ai-token-billing.md)
95
- - [documentation/usage/meta.json](./documentation/usage/meta.json)
96
- - [documentation/usage/quota-management.md](./documentation/usage/quota-management.md)
97
49
  - [documentation/usage/seat-management.md](./documentation/usage/seat-management.md)
98
- - [documentation/usage/track-usage.md](./documentation/usage/track-usage.md)
99
- - [knowledge-base/how-do-balance-and-top-ups-work.md](./knowledge-base/how-do-balance-and-top-ups-work.md)
100
- - [knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md](./knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md)
101
- - [knowledge-base/how-do-discounts-work.md](./knowledge-base/how-do-discounts-work.md)
102
- - [knowledge-base/how-do-free-plans-work-without-payment.md](./knowledge-base/how-do-free-plans-work-without-payment.md)
103
- - [knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md](./knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md)
104
- - [knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md](./knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md)
105
- - [knowledge-base/how-do-trial-periods-work.md](./knowledge-base/how-do-trial-periods-work.md)
50
+ - [documentation/usage/quota-management.md](./documentation/usage/quota-management.md)
51
+ - [documentation/invoicing/invoices-and-billing-cycles.md](./documentation/invoicing/invoices-and-billing-cycles.md)
52
+ - [documentation/invoicing/manage-invoices.md](./documentation/invoicing/manage-invoices.md)
53
+ - [documentation/invoicing/handle-failed-payments.md](./documentation/invoicing/handle-failed-payments.md)
54
+ - [documentation/payments/accept-one-time-payments.md](./documentation/payments/accept-one-time-payments.md)
55
+ - [documentation/payments/transactions-refunds-and-retries.md](./documentation/payments/transactions-refunds-and-retries.md)
56
+ - [documentation/payments/payment-orchestration.md](./documentation/payments/payment-orchestration.md)
57
+ - [documentation/payments/payment-providers.md](./documentation/payments/payment-providers.md)
58
+ - [documentation/finance/finance-overview.md](./documentation/finance/finance-overview.md)
59
+ - [documentation/finance/payouts.md](./documentation/finance/payouts.md)
60
+ - [documentation/finance/acceptable-use.md](./documentation/finance/acceptable-use.md)
61
+ - [documentation/finance/supported-countries.md](./documentation/finance/supported-countries.md)
62
+ - [documentation/finance/payouts-verification.md](./documentation/finance/payouts-verification.md)
63
+ - [documentation/finance/local-currency-taxes.md](./documentation/finance/local-currency-taxes.md)
64
+ - [documentation/finance/merchant-of-record.md](./documentation/finance/merchant-of-record.md)
65
+ - [documentation/platform/organization-settings.md](./documentation/platform/organization-settings.md)
66
+ - [documentation/platform/custom-domains.md](./documentation/platform/custom-domains.md)
67
+ - [documentation/platform/members-and-permissions.md](./documentation/platform/members-and-permissions.md)
68
+ - [documentation/platform/dashboard-metrics-and-events.md](./documentation/platform/dashboard-metrics-and-events.md)
69
+ - [documentation/sdk-reference.md](./documentation/sdk-reference.md)
70
+ - [documentation/api-versioning.md](./documentation/api-versioning.md)
71
+ - [documentation/error-handling.md](./documentation/error-handling.md)
72
+ - [documentation/testing-sandbox.md](./documentation/testing-sandbox.md)
73
+ - [documentation/cli.md](./documentation/cli.md)
74
+ - [documentation/examples.md](./documentation/examples.md)
75
+ - [documentation/better-auth.md](./documentation/better-auth.md)
106
76
  - [knowledge-base/how-does-billing-work.md](./knowledge-base/how-does-billing-work.md)
107
- - [knowledge-base/how-does-payment-routing-work.md](./knowledge-base/how-does-payment-routing-work.md)
108
- - [knowledge-base/how-does-quota-based-billing-work.md](./knowledge-base/how-does-quota-based-billing-work.md)
109
- - [knowledge-base/how-does-seat-based-billing-work.md](./knowledge-base/how-does-seat-based-billing-work.md)
110
- - [knowledge-base/how-is-proration-calculated-when-changing-plans.md](./knowledge-base/how-is-proration-calculated-when-changing-plans.md)
111
- - [knowledge-base/meta.json](./knowledge-base/meta.json)
77
+ - [knowledge-base/what-happens-when-you-change-your-prices.md](./knowledge-base/what-happens-when-you-change-your-prices.md)
78
+ - [knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md](./knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md)
79
+ - [knowledge-base/what-invoices-do-customers-receive-and-when.md](./knowledge-base/what-invoices-do-customers-receive-and-when.md)
112
80
  - [knowledge-base/what-happens-when-a-customer-changes-plans.md](./knowledge-base/what-happens-when-a-customer-changes-plans.md)
81
+ - [knowledge-base/how-is-proration-calculated-when-changing-plans.md](./knowledge-base/how-is-proration-calculated-when-changing-plans.md)
82
+ - [knowledge-base/how-do-trial-periods-work.md](./knowledge-base/how-do-trial-periods-work.md)
83
+ - [knowledge-base/how-do-free-plans-work-without-payment.md](./knowledge-base/how-do-free-plans-work-without-payment.md)
113
84
  - [knowledge-base/what-happens-when-a-payment-fails.md](./knowledge-base/what-happens-when-a-payment-fails.md)
114
- - [knowledge-base/what-happens-when-you-change-your-prices.md](./knowledge-base/what-happens-when-you-change-your-prices.md)
85
+ - [knowledge-base/how-does-seat-based-billing-work.md](./knowledge-base/how-does-seat-based-billing-work.md)
86
+ - [knowledge-base/how-does-quota-based-billing-work.md](./knowledge-base/how-does-quota-based-billing-work.md)
87
+ - [knowledge-base/how-do-discounts-work.md](./knowledge-base/how-do-discounts-work.md)
88
+ - [knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md](./knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md)
89
+ - [knowledge-base/how-do-balance-and-top-ups-work.md](./knowledge-base/how-do-balance-and-top-ups-work.md)
90
+ - [knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md](./knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md)
91
+ - [knowledge-base/how-does-payment-routing-work.md](./knowledge-base/how-does-payment-routing-work.md)
115
92
  - [knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md](./knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md)
116
- - [knowledge-base/what-invoices-do-customers-receive-and-when.md](./knowledge-base/what-invoices-do-customers-receive-and-when.md)
117
- - [meta.json](./meta.json)
118
- - [webhooks/addon-activated.md](./webhooks/addon-activated.md)
119
- - [webhooks/addon-deactivated.md](./webhooks/addon-deactivated.md)
120
- - [webhooks/balance-depleted.md](./webhooks/balance-depleted.md)
121
- - [webhooks/balance-low.md](./webhooks/balance-low.md)
122
- - [webhooks/balance-topped-up.md](./webhooks/balance-topped-up.md)
123
- - [webhooks/checkout-ready.md](./webhooks/checkout-ready.md)
124
- - [webhooks/credits-depleted.md](./webhooks/credits-depleted.md)
125
- - [webhooks/credits-expired.md](./webhooks/credits-expired.md)
126
- - [webhooks/credits-granted.md](./webhooks/credits-granted.md)
127
- - [webhooks/credits-low.md](./webhooks/credits-low.md)
128
- - [webhooks/credits-purchased.md](./webhooks/credits-purchased.md)
129
- - [webhooks/customer-created.md](./webhooks/customer-created.md)
130
- - [webhooks/customer-state-changed.md](./webhooks/customer-state-changed.md)
131
- - [webhooks/customer-updated.md](./webhooks/customer-updated.md)
93
+ - [ai-onboarding/ai-onboarding.md](./ai-onboarding/ai-onboarding.md)
94
+ - [ai-onboarding/mcp-server.md](./ai-onboarding/mcp-server.md)
95
+ - [ai-onboarding/commet-skill.md](./ai-onboarding/commet-skill.md)
96
+ - [ai-onboarding/billing-best-practices-skill.md](./ai-onboarding/billing-best-practices-skill.md)
97
+ - [ai-onboarding/pricing-models-skill.md](./ai-onboarding/pricing-models-skill.md)
98
+ - [ai-onboarding/subscription-patterns-skill.md](./ai-onboarding/subscription-patterns-skill.md)
132
99
  - [webhooks/introduction.md](./webhooks/introduction.md)
133
- - [webhooks/invoice-created.md](./webhooks/invoice-created.md)
134
- - [webhooks/invoice-overdue.md](./webhooks/invoice-overdue.md)
135
- - [webhooks/invoice-upcoming.md](./webhooks/invoice-upcoming.md)
136
- - [webhooks/invoice-voided.md](./webhooks/invoice-voided.md)
137
- - [webhooks/meta.json](./webhooks/meta.json)
138
- - [webhooks/payment-dispute-resolved.md](./webhooks/payment-dispute-resolved.md)
139
- - [webhooks/payment-disputed.md](./webhooks/payment-disputed.md)
140
- - [webhooks/payment-failed.md](./webhooks/payment-failed.md)
141
- - [webhooks/payment-link-canceled.md](./webhooks/payment-link-canceled.md)
142
- - [webhooks/payment-link-completed.md](./webhooks/payment-link-completed.md)
143
- - [webhooks/payment-link-created.md](./webhooks/payment-link-created.md)
144
- - [webhooks/payment-link-failed.md](./webhooks/payment-link-failed.md)
145
- - [webhooks/payment-method-attached.md](./webhooks/payment-method-attached.md)
146
- - [webhooks/payment-method-updated.md](./webhooks/payment-method-updated.md)
147
- - [webhooks/payment-received.md](./webhooks/payment-received.md)
148
- - [webhooks/payment-recovered.md](./webhooks/payment-recovered.md)
149
- - [webhooks/payment-refunded.md](./webhooks/payment-refunded.md)
150
- - [webhooks/payment-retry-failed.md](./webhooks/payment-retry-failed.md)
151
- - [webhooks/payout-available.md](./webhooks/payout-available.md)
152
- - [webhooks/payout-created.md](./webhooks/payout-created.md)
153
- - [webhooks/payout-failed.md](./webhooks/payout-failed.md)
154
- - [webhooks/payout-paid.md](./webhooks/payout-paid.md)
155
- - [webhooks/plan-grant-created.md](./webhooks/plan-grant-created.md)
156
- - [webhooks/plan-grant-expired.md](./webhooks/plan-grant-expired.md)
157
- - [webhooks/plan-grant-revoked.md](./webhooks/plan-grant-revoked.md)
158
- - [webhooks/plan-grant-updated.md](./webhooks/plan-grant-updated.md)
159
- - [webhooks/quota-exceeded.md](./webhooks/quota-exceeded.md)
160
- - [webhooks/quota-threshold-reached.md](./webhooks/quota-threshold-reached.md)
161
- - [webhooks/seats-limit-reached.md](./webhooks/seats-limit-reached.md)
162
- - [webhooks/seats-updated.md](./webhooks/seats-updated.md)
163
- - [webhooks/subscription-activated.md](./webhooks/subscription-activated.md)
164
- - [webhooks/subscription-canceled.md](./webhooks/subscription-canceled.md)
165
- - [webhooks/subscription-cancellation-revoked.md](./webhooks/subscription-cancellation-revoked.md)
166
- - [webhooks/subscription-cancellation-scheduled.md](./webhooks/subscription-cancellation-scheduled.md)
167
- - [webhooks/subscription-created.md](./webhooks/subscription-created.md)
168
- - [webhooks/subscription-past-due.md](./webhooks/subscription-past-due.md)
169
- - [webhooks/subscription-plan-change-revoked.md](./webhooks/subscription-plan-change-revoked.md)
170
- - [webhooks/subscription-plan-change-scheduled.md](./webhooks/subscription-plan-change-scheduled.md)
171
- - [webhooks/subscription-plan-changed.md](./webhooks/subscription-plan-changed.md)
172
- - [webhooks/subscription-reactivated.md](./webhooks/subscription-reactivated.md)
173
- - [webhooks/subscription-updated.md](./webhooks/subscription-updated.md)
174
- - [webhooks/trial-checkout-ready.md](./webhooks/trial-checkout-ready.md)
175
- - [webhooks/trial-converted.md](./webhooks/trial-converted.md)
176
- - [webhooks/trial-expired.md](./webhooks/trial-expired.md)
177
- - [webhooks/trial-started.md](./webhooks/trial-started.md)
178
- - [webhooks/trial-will-end.md](./webhooks/trial-will-end.md)
179
- - [webhooks/usage-recorded.md](./webhooks/usage-recorded.md)
package/docs/schemas.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Schemas
2
2
 
3
- Generated from Commet API version `2026-07-31`.
3
+ Generated from Commet API version `2026-08-27`.
4
4
 
5
5
  ## Enums
6
6
 
@@ -36,6 +36,13 @@ Generated from Commet API version `2026-07-31`.
36
36
  - `"addon_activation"`
37
37
  - `"one_time_payment"`
38
38
  - `"reactivation"`
39
+ - `"resume"`
40
+
41
+ ### PaymentMethod
42
+
43
+ - `"card"`
44
+ - `"oxxo"`
45
+ - `"mercado_pago"`
39
46
 
40
47
  ### PaymentProvider
41
48
 
@@ -43,6 +50,14 @@ Generated from Commet API version `2026-07-31`.
43
50
  - `"commet"`
44
51
  - `"dlocal"`
45
52
 
53
+ ### SubPaymentMethod
54
+
55
+ - `"credit_card"`
56
+ - `"debit_card"`
57
+ - `"prepaid_card"`
58
+ - `"bank_transfer"`
59
+ - `"account_money"`
60
+
46
61
  ### SubscriptionStatus
47
62
 
48
63
  - `"draft"`
@@ -50,6 +65,7 @@ Generated from Commet API version `2026-07-31`.
50
65
  - `"trialing"`
51
66
  - `"active"`
52
67
  - `"past_due"`
68
+ - `"paused"`
53
69
  - `"canceled"`
54
70
 
55
71
  ### Timezone
@@ -188,6 +204,7 @@ Generated from Commet API version `2026-07-31`.
188
204
  - `createdAt` (`string`, required)
189
205
  - `updatedAt` (`string`, required)
190
206
  - `offerApplications` (`Array<SubscriptionOfferApplication>`, required)
207
+ - `pause` (`{ status: "scheduled"; mode: "period_end"; requestedAt: string; effectiveAt: string; resumeAt: string | null } | { status: "active"; mode: "immediate" | "period_end"; requestedAt: string; effectiveAt: string; resumeAt: string | null } | null`, required)
191
208
  - `checkoutProvider` (`PaymentProvider | null`, required) — Payment provider resolved for this checkout when the subscription response was created. This is an informational snapshot and may differ when the checkout is loaded if its country or the organization's routing changes.
192
209
  - `priceId` (`string | null`, required)
193
210
  - `object` (`"subscription"`, required)
@@ -419,6 +436,7 @@ Variants:
419
436
 
420
437
  ### Payment
421
438
 
439
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
422
440
  - `id` (`string`, required)
423
441
  - `customerId` (`string | null`, required)
424
442
  - `kind` (`"link" | "charge"`, required)
@@ -735,6 +753,7 @@ Variants:
735
753
  - `createdAt` (`string`, required)
736
754
  - `updatedAt` (`string`, required)
737
755
  - `offerApplications` (`Array<SubscriptionOfferApplication>`, required)
756
+ - `pause` (`{ status: "scheduled"; mode: "period_end"; requestedAt: string; effectiveAt: string; resumeAt: string | null } | { status: "active"; mode: "immediate" | "period_end"; requestedAt: string; effectiveAt: string; resumeAt: string | null } | null`, required)
738
757
  - `planGrant` (`{ id: string; plan: { id: string; name: string }; expiresAt: string | null }`, optional)
739
758
  - `consumptionModel` (`ConsumptionModel | null`, required)
740
759
  - `features` (`Array<{ code: string; name: string; type: "boolean"; enabled: boolean; baseAccess?: { enabled: boolean } | null } | { code: string; name: string; type: "usage"; usage?: { current: number; included: number; overageQuantity: number; overageUnitPrice?: number; unlimited?: boolean }; baseAccess?: { included: number; unlimited: boolean } | null } | { code: string; name: string; type: "seats"; usage: { current: number; included: number; overageQuantity: number; overageUnitPrice?: number; unlimited?: boolean }; baseAccess?: { included: number; unlimited: boolean } | null } | { code: string; name: string; type: "quota"; usage?: { current: number; included: number; overageQuantity: number; overageUnitPrice?: number; unlimited?: boolean }; baseAccess?: { included: number; unlimited: boolean } | null }>`, required)
@@ -778,6 +797,14 @@ Variants:
778
797
  - `{ type: "amount_off"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; amount: number; startsAt: string | null; endsAt: string | null }`
779
798
  - `{ type: "fixed_price"; durationCycles: number | null; durationInterval: "weekly" | "monthly" | "quarterly" | "yearly" | null; price: number; startsAt: string | null; endsAt: string | null }`
780
799
 
800
+ ### SubscriptionResume
801
+
802
+ - `subscriptionId` (`string`, required)
803
+ - `invoiceId` (`string | null`, required)
804
+ - `status` (`"processing" | "succeeded"`, required)
805
+ - `object` (`"subscription_resume"`, required)
806
+ - `livemode` (`boolean`, required)
807
+
781
808
  ### SubscriptionSummary
782
809
 
783
810
  - `id` (`string`, required)
@@ -800,6 +827,7 @@ Variants:
800
827
  - `createdAt` (`string`, required)
801
828
  - `updatedAt` (`string`, required)
802
829
  - `offerApplications` (`Array<SubscriptionOfferApplication>`, required)
830
+ - `pause` (`{ status: "scheduled"; mode: "period_end"; requestedAt: string; effectiveAt: string; resumeAt: string | null } | { status: "active"; mode: "immediate" | "period_end"; requestedAt: string; effectiveAt: string; resumeAt: string | null } | null`, required)
803
831
  - `priceId` (`string | null`, required)
804
832
  - `object` (`"subscription"`, required)
805
833
  - `livemode` (`boolean`, required)
@@ -829,6 +857,7 @@ Variants:
829
857
 
830
858
  ### Transaction
831
859
 
860
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
832
861
  - `id` (`string`, required)
833
862
  - `invoiceId` (`string | null`, required)
834
863
  - `grossAmount` (`number | null`, required) — Gross amount in USD cents. Null when the provider has not reported an honest USD figure; see presentmentAmount.
@@ -837,6 +866,8 @@ Variants:
837
866
  - `presentmentAmount` (`number | null`, required) — Amount in the charge currency's smallest unit, as presented to the customer. Set for non-USD charges; null when the charge was made in USD.
838
867
  - `currency` (`string`, required)
839
868
  - `provider` (`PaymentProvider`, required) — The payment provider the charge was routed to: stripe, commet, or dlocal.
869
+ - `paymentMethod` (`PaymentMethod | null`, required) — The method used for this charge: card, oxxo, or mercado_pago. Null when unknown.
870
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
840
871
  - `status` (`TransactionStatus`, required)
841
872
  - `customerEmail` (`string | null`, required)
842
873
  - `customerName` (`string | null`, required)
@@ -849,6 +880,7 @@ Variants:
849
880
 
850
881
  ### TransactionListItem
851
882
 
883
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
852
884
  - `id` (`string`, required)
853
885
  - `invoiceId` (`string | null`, required)
854
886
  - `grossAmount` (`number | null`, required) — Gross amount in USD cents. Null when the provider has not reported an honest USD figure; see presentmentAmount.
@@ -857,6 +889,8 @@ Variants:
857
889
  - `presentmentAmount` (`number | null`, required) — Amount in the charge currency's smallest unit, as presented to the customer. Set for non-USD charges; null when the charge was made in USD.
858
890
  - `currency` (`string`, required)
859
891
  - `provider` (`PaymentProvider`, required) — The payment provider the charge was routed to: stripe, commet, or dlocal.
892
+ - `paymentMethod` (`PaymentMethod | null`, required) — The method used for this charge: card, oxxo, or mercado_pago. Null when unknown.
893
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
860
894
  - `status` (`TransactionStatus`, required)
861
895
  - `customerEmail` (`string | null`, required)
862
896
  - `customerName` (`string | null`, required)
@@ -1,5 +1,4 @@
1
1
  ---
2
- lastModified: 2026-07-31
3
2
  title: Introduction
4
3
  description: Receive real-time notifications when events happen in your Commet account.
5
4
  ---
package/docs/webhooks.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Webhooks
2
2
 
3
- Generated from Commet API version `2026-07-31`.
3
+ Generated from Commet API version `2026-08-27`.
4
+
5
+ The complete contract, with every field description and example, is in [webhooks.openapi.json](./webhooks.openapi.json).
4
6
 
5
7
  ## subscription.created
6
8
 
@@ -52,9 +54,82 @@ Fired when a canceled subscription is reactivated and its reactivation charge su
52
54
  - `invoiceCurrency` (`string`, required) — The invoice currency code.
53
55
  - `provider` (`"stripe" | "commet" | "dlocal"`, required) — The payment provider that processed the reactivation charge: stripe, commet, or dlocal.
54
56
 
57
+ ## subscription.pause_scheduled
58
+
59
+ Fired when a period-end pause is scheduled. Access and billing continue until effectiveAt.
60
+
61
+ ### Data
62
+
63
+ - `subscriptionId` (`string`, required) — The paused subscription ID.
64
+ - `customerId` (`string`, required) — The customer ID for the paused subscription.
65
+ - `status` (`"active" | "trialing"`, required) — Current subscription status.
66
+ - `mode` (`"period_end"`, required) — The scheduled pause mode.
67
+ - `effectiveAt` (`string`, required) — When the pause becomes or became effective.
68
+ - `resumeAt` (`string | null`, required) — When automatic resume is scheduled, or null when indefinite.
69
+
70
+ ## subscription.pause_updated
71
+
72
+ Fired when the finite or indefinite pause duration changes.
73
+
74
+ ### Data
75
+
76
+ - `subscriptionId` (`string`, required) — The paused subscription ID.
77
+ - `customerId` (`string`, required) — The customer ID for the paused subscription.
78
+ - `status` (`"active" | "trialing" | "paused"`, required) — Current subscription status.
79
+ - `effectiveAt` (`string`, required) — When the pause becomes or became effective.
80
+ - `resumeAt` (`string | null`, required) — When automatic resume is scheduled, or null when indefinite.
81
+
82
+ ## subscription.pause_revoked
83
+
84
+ Fired when a scheduled pause is revoked before it becomes effective.
85
+
86
+ ### Data
87
+
88
+ - `subscriptionId` (`string`, required) — The paused subscription ID.
89
+ - `customerId` (`string`, required) — The customer ID for the paused subscription.
90
+ - `status` (`"active" | "trialing"`, required) — Current subscription status.
91
+
92
+ ## subscription.paused
93
+
94
+ Fired when a pause becomes effective and access is revoked.
95
+
96
+ ### Data
97
+
98
+ - `subscriptionId` (`string`, required) — The paused subscription ID.
99
+ - `customerId` (`string`, required) — The customer ID for the paused subscription.
100
+ - `status` (`"paused"`, required) — The subscription status after pausing.
101
+ - `mode` (`"immediate" | "period_end"`, required) — How the pause became effective.
102
+ - `effectiveAt` (`string`, required) — When the pause becomes or became effective.
103
+ - `resumeAt` (`string | null`, required) — When automatic resume is scheduled, or null when indefinite.
104
+
105
+ ## subscription.resumed
106
+
107
+ Fired after a paused subscription restores access.
108
+
109
+ ### Data
110
+
111
+ - `subscriptionId` (`string`, required) — The paused subscription ID.
112
+ - `customerId` (`string`, required) — The customer ID for the paused subscription.
113
+ - `status` (`"active" | "trialing"`, required) — The restored subscription status.
114
+ - `mode` (`"immediate" | "period_end"`, required) — The completed pause mode.
115
+ - `resumedAt` (`string`, required) — When access was restored.
116
+ - `invoiceId` (`string | null`, required) — The resume invoice ID, or null when no charge was required.
117
+
118
+ ## subscription.resume_failed
119
+
120
+ Fired when a period-end resume charge fails. The subscription remains paused.
121
+
122
+ ### Data
123
+
124
+ - `subscriptionId` (`string`, required) — The paused subscription ID.
125
+ - `customerId` (`string`, required) — The customer ID for the paused subscription.
126
+ - `status` (`"paused"`, required) — The unchanged subscription status.
127
+ - `invoiceId` (`string`, required) — The outstanding resume invoice ID.
128
+ - `failedAt` (`string`, required) — When the resume charge failed.
129
+
55
130
  ## subscription.canceled
56
131
 
57
- Fired when a subscription is actually terminated. A scheduled cancellation fires it at the end of the billing period; immediate cancellations, full refunds (cancelReason refund), and exhausted dunning retries (cancelReason dunning_exhausted) fire it right away. The status is now canceled and access should be revoked. This event is NOT fired when cancellation is scheduled — that triggers subscription.updated instead. See the cancellation lifecycle below.
132
+ Fired when a subscription is actually terminated. A scheduled cancellation fires it at the end of the billing period; immediate cancellations and exhausted dunning retries (cancelReason dunning_exhausted) fire it right away. Refunds do not terminate subscriptions. The status is now canceled and access should be revoked. This event is NOT fired when cancellation is scheduled — that triggers subscription.updated instead. See the cancellation lifecycle below.
58
133
 
59
134
  ### Data
60
135
 
@@ -62,7 +137,7 @@ Fired when a subscription is actually terminated. A scheduled cancellation fires
62
137
  - `customerId` (`string`, required) — The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
63
138
  - `status` (`string`, required) — Always "canceled" for this event. Revoke access when you receive this.
64
139
  - `canceledAt` (`string`, optional) — ISO 8601 datetime when the cancellation was requested or triggered.
65
- - `cancelReason` (`string | null`, required) — The reason for cancellation, if provided. Set by Commet on system-initiated terminations: "refund" (full refund of a subscription invoice) or "dunning_exhausted" (all payment retries failed).
140
+ - `cancelReason` (`string | null`, required) — The reason for cancellation, if provided. Set to "dunning_exhausted" when all payment retries fail. Historical refund-triggered cancellations may have "refund".
66
141
  - `endDate` (`string`, optional) — ISO 8601 datetime when the subscription ended. Matches the billing period end for scheduled cancellations; for immediate terminations it is the moment of termination.
67
142
 
68
143
  ## subscription.updated
@@ -241,6 +316,7 @@ Fired every time a payment settles successfully — the first payment and every
241
316
 
242
317
  ### Data
243
318
 
319
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
244
320
  - `invoiceId` (`string`, required) — The invoice ID.
245
321
  - `invoiceNumber` (`string`, required) — The human-readable invoice number.
246
322
  - `invoiceTotal` (`number`, required) — Invoice total in cents (100 = $1.00).
@@ -248,6 +324,8 @@ Fired every time a payment settles successfully — the first payment and every
248
324
  - `subscriptionId` (`string | null`, required) — The subscription ID.
249
325
  - `paymentTransactionId` (`string | null`, required) — The payment transaction ID.
250
326
  - `provider` (`"stripe" | "commet" | "dlocal" | null`, required) — The payment provider the charge was routed to: stripe, commet, or dlocal. Null for billing-only charges with no Commet ledger row.
327
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
328
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
251
329
  - `grossAmount` (`number | null`, required) — Gross amount in cents before fees.
252
330
  - `currency` (`string | null`, required) — The payment currency code.
253
331
  - `orgNetAmount` (`number | null`, required) — Net amount after fees in cents.
@@ -256,15 +334,18 @@ Fired every time a payment settles successfully — the first payment and every
256
334
 
257
335
  ## payment.failed
258
336
 
259
- Fired when a recurring charge fails. This event is for recurring charge failures only — card declines during initial checkout do not trigger this event.
337
+ Fired when an invoice-linked subscription charge fails.
260
338
 
261
339
  ### Data
262
340
 
341
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
263
342
  - `invoiceId` (`string`, required) — The invoice ID, if available.
264
343
  - `invoiceNumber` (`string`, required) — The human-readable invoice number, if available.
265
344
  - `customerId` (`string`, required) — The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
266
345
  - `subscriptionId` (`string | null`, required) — The subscription ID, if the invoice is linked to a subscription.
267
346
  - `provider` (`"stripe" | "commet" | "dlocal"`, required) — The payment provider the charge was routed to: stripe, commet, or dlocal.
347
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
348
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
268
349
  - `failureCode` (`string`, required) — The failure code from the payment processor.
269
350
  - `failureMessage` (`string`, required) — A human-readable failure message.
270
351
  - `recoveryUrl` (`string | null`, required) — A ready-to-use link the customer can follow to retry this payment, or null when no recovery path applies. For a first failed charge (pending_payment) it is the checkout URL; for a failed renewal (past_due) it is a signed recovery link — no separate createRecoveryLink call needed.
@@ -281,6 +362,8 @@ Fired when an outstanding invoice that previously failed is successfully paid
281
362
  - `customerId` (`string`, required) — The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
282
363
  - `subscriptionId` (`string | null`, required) — The subscription ID, if the invoice is linked to a subscription.
283
364
  - `provider` (`"stripe" | "commet" | "dlocal" | null`, required) — The payment provider that recovered the payment, or null when the invoice was recovered without a processor charge.
365
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
366
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
284
367
 
285
368
  ## payment.retry_failed
286
369
 
@@ -297,7 +380,7 @@ Fired when all dunning retries are exhausted and the subscription is canceled. T
297
380
 
298
381
  ## payment.refunded
299
382
 
300
- Fired when a payment is refunded, fully or partially. A full refund of a subscription invoice also cancels the subscription immediately (subscription.canceled fires with reason refund); partial refunds leave the subscription untouched.
383
+ Fired when a payment is refunded, fully or partially. A refund does not change the subscription. Cancel it separately if it should end.
301
384
 
302
385
  ### Data
303
386
 
@@ -365,6 +448,7 @@ Fired when a payment link is paid. The charge settled and a one-time invoice was
365
448
 
366
449
  ### Data
367
450
 
451
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
368
452
  - `paymentId` (`string`, required) — The payment link ID.
369
453
  - `status` (`string`, required) — The link status. Always "succeeded" for this event.
370
454
  - `amount` (`number`, required) — The collected amount in cents (100 = $1.00).
@@ -374,6 +458,8 @@ Fired when a payment link is paid. The charge settled and a one-time invoice was
374
458
  - `invoiceId` (`string`, required) — The one-time invoice generated for this payment.
375
459
  - `invoiceNumber` (`string`, required) — The human-readable invoice number.
376
460
  - `paymentTransactionId` (`string | null`, required) — The payment transaction ID for the settled charge.
461
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
462
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
377
463
 
378
464
  ## payment_link.failed
379
465
 
@@ -381,6 +467,7 @@ Fired when a payment link charge attempt is declined. The link stays open and ca
381
467
 
382
468
  ### Data
383
469
 
470
+ - `paymentContext` (`{ reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment"; paymentLinkId: string | null; recovery: { type: "payment_recovery" } | { type: "dunning_retry"; attempt: number; maxAttempts: number } | null } | null`, required) — Charge context captured for new payments. Null for historical payments with no captured context.
384
471
  - `paymentId` (`string`, required) — The payment link ID.
385
472
  - `status` (`string`, required) — The link status. Always "failed" for this event.
386
473
  - `amount` (`number`, required) — The amount that was attempted in cents (100 = $1.00).
@@ -389,6 +476,8 @@ Fired when a payment link charge attempt is declined. The link stays open and ca
389
476
  - `customerId` (`string | null`, required) — The customer ID, or null when the link is not tied to a customer. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
390
477
  - `failureCode` (`string`, required) — The failure code from the payment processor.
391
478
  - `failureMessage` (`string`, required) — A human-readable failure message.
479
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
480
+ - `subPaymentMethod` (`SubPaymentMethod | null`, required) — The source of funds for this charge, when reported by the provider. Null when unavailable or unknown.
392
481
 
393
482
  ## payment_link.canceled
394
483
 
@@ -482,6 +571,7 @@ Fired when Commet records a payment method for a subscription: after a paid chec
482
571
 
483
572
  - `subscriptionId` (`string`, required) — The subscription the payment method was saved for.
484
573
  - `customerId` (`string`, required) — The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
574
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
485
575
  - `card` (`WebhookCardInfo | null`, required) — Card display metadata: brand, last4, expMonth, expYear. Null when the method is not a card or its details cannot be retrieved.
486
576
 
487
577
  ## payment_method.updated
@@ -491,6 +581,7 @@ Fired when a customer replaces their default payment method through the customer
491
581
  ### Data
492
582
 
493
583
  - `customerId` (`string`, required) — The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
584
+ - `paymentMethod` (`PaymentMethod | null`, required) — The payment method: card, oxxo, or mercado_pago. Null when unknown.
494
585
  - `card` (`WebhookCardInfo | null`, required) — Card display metadata for the new method: brand, last4, expMonth, expYear. Null when the method is not a card or its details cannot be retrieved.
495
586
 
496
587
  ## customer.created
@@ -529,12 +620,12 @@ Fired when a customer's details change (email, name, timezone, externalId, or me
529
620
 
530
621
  ## customer.state_changed
531
622
 
532
- Aggregate entitlement event answering one question: what can this customer access right now? Fired on every entitlement transition (subscription lifecycle, plan changes, trials, past due, scheduled cancellations) with the customer's CURRENT subscription, plan, features, seats, and credits or balance. Handle this single event to keep access in sync instead of wiring every lifecycle event.
623
+ Aggregate entitlement event answering one question: what can this customer access right now? Fired on every entitlement transition (subscription lifecycle, pauses, plan changes, trials, past due, scheduled cancellations) with the customer's CURRENT subscription, plan, features, seats, and credits or balance. Handle this single event to keep access in sync instead of wiring every lifecycle event.
533
624
 
534
625
  ### Data
535
626
 
536
627
  - `customerId` (`string`, required) — The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
537
- - `trigger` (`string`, required) — What caused the transition. One of: subscription_created, subscription_activated, subscription_canceled, plan_change, past_due, trial_started, trial_converted, trial_expired, cancellation_scheduled, cancellation_revoked, seats_updated, addon_activated, addon_deactivated, credits_depleted, balance_depleted, quota_exceeded, plan_access_granted, plan_access_ended.
628
+ - `trigger` (`string`, required) — What caused the transition. One of: subscription_created, subscription_activated, subscription_canceled, subscription_paused, subscription_resumed, plan_change, past_due, trial_started, trial_converted, trial_expired, cancellation_scheduled, cancellation_revoked, seats_updated, addon_activated, addon_deactivated, credits_depleted, balance_depleted, quota_exceeded, plan_access_granted, plan_access_ended.
538
629
  - `status` (`string`, required) — The customer's current subscription status, or "none" when no live subscription exists. Access is granted while trialing, active, or past_due — past_due is a permissive grace window during dunning.
539
630
  - `subscriptionId` (`string | null`, required) — The live subscription ID, or null when status is none.
540
631
  - `plan` (`WebhookPlanRef | null`, required) — The current plan (id and name), or null when status is none.