@commet/node 8.0.1 → 9.1.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.
- package/README.md +4 -4
- package/dist/index.d.mts +514 -206
- package/dist/index.d.ts +514 -206
- package/dist/index.js +202 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +202 -88
- package/dist/index.mjs.map +1 -1
- package/docs/README.md +20 -0
- package/docs/ai-onboarding/ai-onboarding.md +90 -0
- package/docs/ai-onboarding/billing-best-practices-skill.md +29 -0
- package/docs/ai-onboarding/commet-skill.md +58 -0
- package/docs/ai-onboarding/mcp-server.md +207 -0
- package/docs/ai-onboarding/meta.json +17 -0
- package/docs/ai-onboarding/pricing-models-skill.md +29 -0
- package/docs/ai-onboarding/subscription-patterns-skill.md +29 -0
- package/docs/api-reference/addons.md +127 -0
- package/docs/api-reference/api-keys.md +57 -0
- package/docs/api-reference/credit-packs.md +80 -0
- package/docs/api-reference/customers.md +274 -0
- package/docs/api-reference/feature-access.md +36 -0
- package/docs/api-reference/features.md +94 -0
- package/docs/api-reference/generated-webhooks.md +120 -0
- package/docs/api-reference/index.md +31 -0
- package/docs/api-reference/invoices.md +123 -0
- package/docs/api-reference/markets.md +92 -0
- package/docs/api-reference/meta.json +7 -0
- package/docs/api-reference/offers.md +104 -0
- package/docs/api-reference/payments.md +106 -0
- package/docs/api-reference/payouts.md +66 -0
- package/docs/api-reference/plan-groups.md +157 -0
- package/docs/api-reference/plans.md +358 -0
- package/docs/api-reference/portal.md +30 -0
- package/docs/api-reference/promo-codes.md +86 -0
- package/docs/api-reference/provisioning.md +19 -0
- package/docs/api-reference/quota.md +120 -0
- package/docs/api-reference/seats.md +123 -0
- package/docs/api-reference/subscriptions.md +387 -0
- package/docs/api-reference/test-clock.md +59 -0
- package/docs/api-reference/transactions.md +78 -0
- package/docs/api-reference/usage.md +83 -0
- package/docs/documentation/api-versioning.md +100 -0
- package/docs/documentation/better-auth.md +361 -0
- package/docs/documentation/choose-a-billing-model.md +38 -0
- package/docs/documentation/cli.md +1024 -0
- package/docs/documentation/create-api-key.md +47 -0
- package/docs/documentation/customers/customer-credits.md +48 -0
- package/docs/documentation/customers/customer-portal.md +107 -0
- package/docs/documentation/customers/manage-customers.md +346 -0
- package/docs/documentation/customers/meta.json +5 -0
- package/docs/documentation/error-handling.md +239 -0
- package/docs/documentation/examples.md +37 -0
- package/docs/documentation/finance/acceptable-use.md +145 -0
- package/docs/documentation/finance/finance-overview.md +32 -0
- package/docs/documentation/finance/local-currency-taxes.md +40 -0
- package/docs/documentation/finance/merchant-of-record.md +48 -0
- package/docs/documentation/finance/meta.json +13 -0
- package/docs/documentation/finance/payouts-verification.md +186 -0
- package/docs/documentation/finance/payouts.md +41 -0
- package/docs/documentation/finance/supported-countries.md +28 -0
- package/docs/documentation/go/integrate-with-encore.md +229 -0
- package/docs/documentation/go/integrate-with-go.md +258 -0
- package/docs/documentation/go/meta.json +5 -0
- package/docs/documentation/introduction.md +58 -0
- package/docs/documentation/invoicing/handle-failed-payments.md +283 -0
- package/docs/documentation/invoicing/invoices-and-billing-cycles.md +73 -0
- package/docs/documentation/invoicing/manage-invoices.md +340 -0
- package/docs/documentation/invoicing/meta.json +9 -0
- package/docs/documentation/java/integrate-with-java.md +117 -0
- package/docs/documentation/java/meta.json +5 -0
- package/docs/documentation/meta.json +36 -0
- package/docs/documentation/nodejs/integrate-with-astro.md +129 -0
- package/docs/documentation/nodejs/integrate-with-bun.md +113 -0
- package/docs/documentation/nodejs/integrate-with-express.md +127 -0
- package/docs/documentation/nodejs/integrate-with-hono.md +141 -0
- package/docs/documentation/nodejs/integrate-with-nextjs.md +118 -0
- package/docs/documentation/nodejs/integrate-with-nuxt.md +125 -0
- package/docs/documentation/nodejs/integrate-with-remix.md +136 -0
- package/docs/documentation/nodejs/integrate-with-sveltekit.md +127 -0
- package/docs/documentation/nodejs/meta.json +14 -0
- package/docs/documentation/payments/accept-one-time-payments.md +314 -0
- package/docs/documentation/payments/meta.json +10 -0
- package/docs/documentation/payments/payment-orchestration.md +43 -0
- package/docs/documentation/payments/payment-providers.md +59 -0
- package/docs/documentation/payments/transactions-refunds-and-retries.md +199 -0
- package/docs/documentation/php/integrate-with-laravel.md +222 -0
- package/docs/documentation/php/integrate-with-php.md +103 -0
- package/docs/documentation/php/integrate-with-symfony.md +214 -0
- package/docs/documentation/php/meta.json +9 -0
- package/docs/documentation/plans/add-ons.md +257 -0
- package/docs/documentation/plans/balance-and-top-ups.md +169 -0
- package/docs/documentation/plans/configure-features.md +335 -0
- package/docs/documentation/plans/consumption-models.md +93 -0
- package/docs/documentation/plans/create-plans.md +162 -0
- package/docs/documentation/plans/credit-packs.md +89 -0
- package/docs/documentation/plans/meta.json +14 -0
- package/docs/documentation/plans/one-time-payments.md +142 -0
- package/docs/documentation/plans/plan-groups.md +31 -0
- package/docs/documentation/platform/custom-domains.md +27 -0
- package/docs/documentation/platform/dashboard-metrics-and-events.md +25 -0
- package/docs/documentation/platform/members-and-permissions.md +21 -0
- package/docs/documentation/platform/meta.json +10 -0
- package/docs/documentation/platform/organization-settings.md +29 -0
- package/docs/documentation/python/integrate-with-django.md +161 -0
- package/docs/documentation/python/integrate-with-fastapi.md +164 -0
- package/docs/documentation/python/integrate-with-flask.md +153 -0
- package/docs/documentation/python/integrate-with-python.md +90 -0
- package/docs/documentation/python/meta.json +10 -0
- package/docs/documentation/sales/card-promotions.md +41 -0
- package/docs/documentation/sales/introductory-offers.md +64 -0
- package/docs/documentation/sales/meta.json +13 -0
- package/docs/documentation/sales/offers.md +65 -0
- package/docs/documentation/sales/promo-codes.md +65 -0
- package/docs/documentation/sales/promotional-offers.md +58 -0
- package/docs/documentation/sales/regional-prices.md +100 -0
- package/docs/documentation/sales/trial-periods.md +88 -0
- package/docs/documentation/sdk-reference.md +68 -0
- package/docs/documentation/subscriptions/manage-subscriptions.md +505 -0
- package/docs/documentation/subscriptions/meta.json +9 -0
- package/docs/documentation/subscriptions/plan-grants.md +132 -0
- package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +35 -0
- package/docs/documentation/testing-sandbox.md +251 -0
- package/docs/documentation/usage/ai-token-billing.md +294 -0
- package/docs/documentation/usage/meta.json +10 -0
- package/docs/documentation/usage/quota-management.md +341 -0
- package/docs/documentation/usage/seat-management.md +377 -0
- package/docs/documentation/usage/track-usage.md +282 -0
- package/docs/errors/addon_already_active.md +22 -0
- package/docs/errors/addon_has_activations.md +22 -0
- package/docs/errors/addon_not_active.md +22 -0
- package/docs/errors/addon_not_found.md +22 -0
- package/docs/errors/already_has_active_subscription.md +22 -0
- package/docs/errors/already_scheduled.md +22 -0
- package/docs/errors/api_key_not_found.md +22 -0
- package/docs/errors/card_promotions_not_available.md +22 -0
- package/docs/errors/charge_failed.md +22 -0
- package/docs/errors/charge_in_progress.md +22 -0
- package/docs/errors/claim_not_pending.md +22 -0
- package/docs/errors/credit_pack_not_found.md +22 -0
- package/docs/errors/customer_not_found.md +22 -0
- package/docs/errors/duplicate.md +22 -0
- package/docs/errors/endpoint_deprecated.md +22 -0
- package/docs/errors/endpoint_not_available.md +22 -0
- package/docs/errors/feature_already_exists.md +22 -0
- package/docs/errors/feature_disabled.md +22 -0
- package/docs/errors/feature_in_use.md +22 -0
- package/docs/errors/feature_not_found.md +22 -0
- package/docs/errors/feature_not_in_plan.md +22 -0
- package/docs/errors/forbidden.md +22 -0
- package/docs/errors/free_plan_change_not_supported.md +22 -0
- package/docs/errors/idempotency_in_progress.md +22 -0
- package/docs/errors/idempotency_key_mismatch.md +22 -0
- package/docs/errors/idempotency_unavailable.md +22 -0
- package/docs/errors/included_limit_reached.md +22 -0
- package/docs/errors/index.md +89 -0
- package/docs/errors/insufficient_balance.md +22 -0
- package/docs/errors/insufficient_credits.md +22 -0
- package/docs/errors/insufficient_seats.md +22 -0
- package/docs/errors/internal_error.md +22 -0
- package/docs/errors/invalid_json.md +22 -0
- package/docs/errors/invalid_subscription_status.md +22 -0
- package/docs/errors/invoice_not_found.md +22 -0
- package/docs/errors/market_group_in_use.md +22 -0
- package/docs/errors/market_group_not_found.md +22 -0
- package/docs/errors/market_in_use.md +22 -0
- package/docs/errors/market_not_found.md +22 -0
- package/docs/errors/missing_regional_price.md +22 -0
- package/docs/errors/model_not_found.md +22 -0
- package/docs/errors/no_active_subscription.md +22 -0
- package/docs/errors/no_change_requested.md +22 -0
- package/docs/errors/no_outstanding_invoice.md +22 -0
- package/docs/errors/no_payment_method.md +22 -0
- package/docs/errors/no_prices_configured.md +22 -0
- package/docs/errors/not_found.md +22 -0
- package/docs/errors/not_scheduled_for_cancellation.md +22 -0
- package/docs/errors/offer_not_applicable.md +22 -0
- package/docs/errors/offer_not_found.md +22 -0
- package/docs/errors/one_time_subscription_not_cancelable.md +22 -0
- package/docs/errors/organization_already_claimed.md +22 -0
- package/docs/errors/payment_failed.md +22 -0
- package/docs/errors/payment_method_not_found.md +22 -0
- package/docs/errors/payment_not_cancelable.md +22 -0
- package/docs/errors/payment_not_found.md +22 -0
- package/docs/errors/payouts_not_available_in_sandbox.md +22 -0
- package/docs/errors/plan_change_scheduled.md +22 -0
- package/docs/errors/plan_group_not_found.md +22 -0
- package/docs/errors/plan_not_found.md +22 -0
- package/docs/errors/plan_unavailable.md +22 -0
- package/docs/errors/plans_not_in_same_group.md +22 -0
- package/docs/errors/price_in_use.md +22 -0
- package/docs/errors/price_not_found.md +22 -0
- package/docs/errors/pricing_mode_mismatch.md +22 -0
- package/docs/errors/promo_code_expired.md +22 -0
- package/docs/errors/promo_code_not_found.md +22 -0
- package/docs/errors/provider_unsupported.md +22 -0
- package/docs/errors/rate_limited.md +22 -0
- package/docs/errors/sandbox_only.md +22 -0
- package/docs/errors/seat_limit_exceeded.md +22 -0
- package/docs/errors/subscription_activation_failed.md +22 -0
- package/docs/errors/subscription_already_canceled.md +22 -0
- package/docs/errors/subscription_cancel_failed.md +22 -0
- package/docs/errors/subscription_creation_failed.md +22 -0
- package/docs/errors/subscription_has_open_dispute.md +22 -0
- package/docs/errors/subscription_not_active.md +22 -0
- package/docs/errors/subscription_not_found.md +22 -0
- package/docs/errors/subscription_required.md +22 -0
- package/docs/errors/subscription_uncancel_failed.md +22 -0
- package/docs/errors/transaction_not_found.md +22 -0
- package/docs/errors/unauthorized.md +22 -0
- package/docs/errors/validation_error.md +22 -0
- package/docs/errors/webhook_not_found.md +22 -0
- package/docs/errors.md +34 -0
- package/docs/getting-started.md +35 -0
- package/docs/knowledge-base/how-do-balance-and-top-ups-work.md +22 -0
- package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +20 -0
- package/docs/knowledge-base/how-do-discounts-work.md +65 -0
- package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +88 -0
- package/docs/knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md +77 -0
- package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +20 -0
- package/docs/knowledge-base/how-do-trial-periods-work.md +54 -0
- package/docs/knowledge-base/how-does-billing-work.md +73 -0
- package/docs/knowledge-base/how-does-payment-routing-work.md +17 -0
- package/docs/knowledge-base/how-does-quota-based-billing-work.md +106 -0
- package/docs/knowledge-base/how-does-seat-based-billing-work.md +88 -0
- package/docs/knowledge-base/how-is-proration-calculated-when-changing-plans.md +89 -0
- package/docs/knowledge-base/meta.json +29 -0
- package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +110 -0
- package/docs/knowledge-base/what-happens-when-a-payment-fails.md +40 -0
- package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +74 -0
- package/docs/knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md +21 -0
- package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +101 -0
- package/docs/manifest.json +1677 -0
- package/docs/meta.json +11 -0
- package/docs/platform-documentation.md +175 -0
- package/docs/schemas.md +995 -0
- package/docs/webhooks/addon-activated.md +44 -0
- package/docs/webhooks/addon-deactivated.md +40 -0
- package/docs/webhooks/balance-depleted.md +37 -0
- package/docs/webhooks/balance-low.md +39 -0
- package/docs/webhooks/balance-topped-up.md +41 -0
- package/docs/webhooks/checkout-ready.md +43 -0
- package/docs/webhooks/credits-depleted.md +35 -0
- package/docs/webhooks/credits-expired.md +35 -0
- package/docs/webhooks/credits-granted.md +37 -0
- package/docs/webhooks/credits-low.md +39 -0
- package/docs/webhooks/credits-purchased.md +41 -0
- package/docs/webhooks/customer-created.md +49 -0
- package/docs/webhooks/customer-state-changed.md +134 -0
- package/docs/webhooks/customer-updated.md +49 -0
- package/docs/webhooks/introduction.md +499 -0
- package/docs/webhooks/invoice-created.md +45 -0
- package/docs/webhooks/invoice-overdue.md +53 -0
- package/docs/webhooks/invoice-upcoming.md +43 -0
- package/docs/webhooks/invoice-voided.md +53 -0
- package/docs/webhooks/meta.json +78 -0
- package/docs/webhooks/payment-dispute-resolved.md +52 -0
- package/docs/webhooks/payment-disputed.md +49 -0
- package/docs/webhooks/payment-failed.md +37 -0
- package/docs/webhooks/payment-link-canceled.md +41 -0
- package/docs/webhooks/payment-link-completed.md +47 -0
- package/docs/webhooks/payment-link-created.md +41 -0
- package/docs/webhooks/payment-link-failed.md +45 -0
- package/docs/webhooks/payment-method-attached.md +40 -0
- package/docs/webhooks/payment-method-updated.md +38 -0
- package/docs/webhooks/payment-received.md +45 -0
- package/docs/webhooks/payment-recovered.md +39 -0
- package/docs/webhooks/payment-refunded.md +47 -0
- package/docs/webhooks/payment-retry-failed.md +39 -0
- package/docs/webhooks/payout-available.md +33 -0
- package/docs/webhooks/payout-created.md +48 -0
- package/docs/webhooks/payout-failed.md +52 -0
- package/docs/webhooks/payout-paid.md +48 -0
- package/docs/webhooks/quota-exceeded.md +44 -0
- package/docs/webhooks/quota-threshold-reached.md +41 -0
- package/docs/webhooks/seats-limit-reached.md +39 -0
- package/docs/webhooks/seats-updated.md +39 -0
- package/docs/webhooks/subscription-activated.md +43 -0
- package/docs/webhooks/subscription-canceled.md +57 -0
- package/docs/webhooks/subscription-cancellation-revoked.md +37 -0
- package/docs/webhooks/subscription-cancellation-scheduled.md +45 -0
- package/docs/webhooks/subscription-created.md +35 -0
- package/docs/webhooks/subscription-past-due.md +43 -0
- package/docs/webhooks/subscription-plan-change-revoked.md +50 -0
- package/docs/webhooks/subscription-plan-change-scheduled.md +55 -0
- package/docs/webhooks/subscription-plan-changed.md +43 -0
- package/docs/webhooks/subscription-reactivated.md +53 -0
- package/docs/webhooks/subscription-updated.md +39 -0
- package/docs/webhooks/trial-checkout-ready.md +39 -0
- package/docs/webhooks/trial-converted.md +39 -0
- package/docs/webhooks/trial-expired.md +39 -0
- package/docs/webhooks/trial-started.md +46 -0
- package/docs/webhooks/trial-will-end.md +41 -0
- package/docs/webhooks/usage-recorded.md +41 -0
- package/docs/webhooks.md +782 -0
- package/package.json +2 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Seats
|
|
2
|
+
|
|
3
|
+
API version: `2026-07-31`
|
|
4
|
+
|
|
5
|
+
## getBalance
|
|
6
|
+
|
|
7
|
+
`commet.seats.getBalance(params)`
|
|
8
|
+
|
|
9
|
+
`GET /seats/balance` · operation `get-seat-balance`
|
|
10
|
+
|
|
11
|
+
Get current balance for a specific seat type.
|
|
12
|
+
|
|
13
|
+
### Parameters
|
|
14
|
+
|
|
15
|
+
- `customerId` (`string`, required)
|
|
16
|
+
- `featureCode` (`string`, required)
|
|
17
|
+
|
|
18
|
+
### Returns
|
|
19
|
+
|
|
20
|
+
`SeatBalance`
|
|
21
|
+
|
|
22
|
+
## getAllBalances
|
|
23
|
+
|
|
24
|
+
`commet.seats.getAllBalances(params)`
|
|
25
|
+
|
|
26
|
+
`GET /seats/balances` · operation `get-all-seat-balances`
|
|
27
|
+
|
|
28
|
+
Get the current balance for all seat types in a customer's subscription.
|
|
29
|
+
|
|
30
|
+
### Parameters
|
|
31
|
+
|
|
32
|
+
- `customerId` (`string`, required)
|
|
33
|
+
|
|
34
|
+
### Returns
|
|
35
|
+
|
|
36
|
+
`SeatBalanceCollection`
|
|
37
|
+
|
|
38
|
+
## setAll
|
|
39
|
+
|
|
40
|
+
`commet.seats.setAll(params, options?)`
|
|
41
|
+
|
|
42
|
+
`PUT /seats/bulk` · operation `bulk-set-seats`
|
|
43
|
+
|
|
44
|
+
Set all seat types at once.
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
- `customerId` (`string`, required)
|
|
49
|
+
- `seats` (`Record<string, number>`, required)
|
|
50
|
+
|
|
51
|
+
### Request options
|
|
52
|
+
|
|
53
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
54
|
+
|
|
55
|
+
### Returns
|
|
56
|
+
|
|
57
|
+
`{ object: "list"; data: Array<SeatEvent>; hasMore: boolean; nextCursor?: string }`
|
|
58
|
+
|
|
59
|
+
## remove
|
|
60
|
+
|
|
61
|
+
`commet.seats.remove(params, options?)`
|
|
62
|
+
|
|
63
|
+
`POST /seats/remove` · operation `remove-seats`
|
|
64
|
+
|
|
65
|
+
Remove seats from a customer's subscription. Takes effect at the end of the billing period.
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
- `customerId` (`string`, required)
|
|
70
|
+
- `featureCode` (`string`, required)
|
|
71
|
+
- `count` (`number`, required)
|
|
72
|
+
|
|
73
|
+
### Request options
|
|
74
|
+
|
|
75
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
76
|
+
|
|
77
|
+
### Returns
|
|
78
|
+
|
|
79
|
+
`SeatEvent`
|
|
80
|
+
|
|
81
|
+
## add
|
|
82
|
+
|
|
83
|
+
`commet.seats.add(params, options?)`
|
|
84
|
+
|
|
85
|
+
`POST /seats` · operation `add-seats`
|
|
86
|
+
|
|
87
|
+
Add seats to a customer's subscription. Prorates charges for the current billing period.
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
- `customerId` (`string`, required)
|
|
92
|
+
- `featureCode` (`string`, required)
|
|
93
|
+
- `count` (`number`, required)
|
|
94
|
+
|
|
95
|
+
### Request options
|
|
96
|
+
|
|
97
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
98
|
+
|
|
99
|
+
### Returns
|
|
100
|
+
|
|
101
|
+
`SeatEvent`
|
|
102
|
+
|
|
103
|
+
## set
|
|
104
|
+
|
|
105
|
+
`commet.seats.set(params, options?)`
|
|
106
|
+
|
|
107
|
+
`PUT /seats` · operation `set-seats`
|
|
108
|
+
|
|
109
|
+
Set seats to an exact count.
|
|
110
|
+
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
- `customerId` (`string`, required)
|
|
114
|
+
- `featureCode` (`string`, required)
|
|
115
|
+
- `count` (`number`, required)
|
|
116
|
+
|
|
117
|
+
### Request options
|
|
118
|
+
|
|
119
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
120
|
+
|
|
121
|
+
### Returns
|
|
122
|
+
|
|
123
|
+
`SeatEvent`
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
# Subscriptions
|
|
2
|
+
|
|
3
|
+
API version: `2026-07-31`
|
|
4
|
+
|
|
5
|
+
## deactivateAddon
|
|
6
|
+
|
|
7
|
+
`commet.subscriptions.deactivateAddon(params, options?)`
|
|
8
|
+
|
|
9
|
+
`DELETE /subscriptions/{id}/addons/{addonId}` · operation `deactivate-addon`
|
|
10
|
+
|
|
11
|
+
Deactivate an add-on from a subscription.
|
|
12
|
+
|
|
13
|
+
### Parameters
|
|
14
|
+
|
|
15
|
+
- `id` (`string`, required)
|
|
16
|
+
- `addonId` (`string`, required)
|
|
17
|
+
|
|
18
|
+
### Returns
|
|
19
|
+
|
|
20
|
+
`DeletedSubscriptionAddon`
|
|
21
|
+
|
|
22
|
+
## activateAddon
|
|
23
|
+
|
|
24
|
+
`commet.subscriptions.activateAddon(params, options?)`
|
|
25
|
+
|
|
26
|
+
`POST /subscriptions/{id}/addons` · operation `activate-addon`
|
|
27
|
+
|
|
28
|
+
Activate an add-on on a subscription. Charges a prorated amount for the current billing period.
|
|
29
|
+
|
|
30
|
+
### Parameters
|
|
31
|
+
|
|
32
|
+
- `id` (`string`, required)
|
|
33
|
+
- `addonId` (`string`, required)
|
|
34
|
+
|
|
35
|
+
### Request options
|
|
36
|
+
|
|
37
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
38
|
+
|
|
39
|
+
### Returns
|
|
40
|
+
|
|
41
|
+
`SubscriptionAddon`
|
|
42
|
+
|
|
43
|
+
## adjustBalance
|
|
44
|
+
|
|
45
|
+
`commet.subscriptions.adjustBalance(params, options?)`
|
|
46
|
+
|
|
47
|
+
`POST /subscriptions/{id}/balance/adjust` · operation `adjust-balance`
|
|
48
|
+
|
|
49
|
+
Adjust a subscription's balance or credits by a signed amount. Positive adds, negative subtracts.
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
- `id` (`string`, required)
|
|
54
|
+
- `amount` (`number`, required)
|
|
55
|
+
- `reason` (`string`, optional)
|
|
56
|
+
- `type` (`"credits" | "balance"`, optional)
|
|
57
|
+
|
|
58
|
+
### Request options
|
|
59
|
+
|
|
60
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
61
|
+
|
|
62
|
+
### Returns
|
|
63
|
+
|
|
64
|
+
`BalanceAdjustment`
|
|
65
|
+
|
|
66
|
+
## topupBalance
|
|
67
|
+
|
|
68
|
+
`commet.subscriptions.topupBalance(params, options?)`
|
|
69
|
+
|
|
70
|
+
`POST /subscriptions/{id}/balance/topup` · operation `topup-balance`
|
|
71
|
+
|
|
72
|
+
Top up a subscription's balance. Charges the customer's payment method for the specified amount.
|
|
73
|
+
|
|
74
|
+
### Parameters
|
|
75
|
+
|
|
76
|
+
- `id` (`string`, required)
|
|
77
|
+
- `amount` (`number`, required)
|
|
78
|
+
|
|
79
|
+
### Request options
|
|
80
|
+
|
|
81
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
82
|
+
|
|
83
|
+
### Returns
|
|
84
|
+
|
|
85
|
+
`BalanceTopup`
|
|
86
|
+
|
|
87
|
+
## cancel
|
|
88
|
+
|
|
89
|
+
`commet.subscriptions.cancel(params, options?)`
|
|
90
|
+
|
|
91
|
+
`POST /subscriptions/{id}/cancel` · operation `cancel-subscription`
|
|
92
|
+
|
|
93
|
+
Cancel immediately or at period end and return the updated subscription.
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
- `id` (`string`, required)
|
|
98
|
+
- `reason` (`string`, optional)
|
|
99
|
+
- `immediate` (`boolean`, optional)
|
|
100
|
+
|
|
101
|
+
### Request options
|
|
102
|
+
|
|
103
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
104
|
+
|
|
105
|
+
### Returns
|
|
106
|
+
|
|
107
|
+
`Subscription`
|
|
108
|
+
|
|
109
|
+
## changePlan
|
|
110
|
+
|
|
111
|
+
`commet.subscriptions.changePlan(params, options?)`
|
|
112
|
+
|
|
113
|
+
`POST /subscriptions/{id}/change-plan` · operation `change-plan`
|
|
114
|
+
|
|
115
|
+
Upgrade or change billing interval immediately, optionally applying an Offer. Scheduled changes do not accept offers.
|
|
116
|
+
|
|
117
|
+
### Parameters
|
|
118
|
+
|
|
119
|
+
- `id` (`string`, required)
|
|
120
|
+
- `newPlanId` (`string`, optional)
|
|
121
|
+
- `newBillingInterval` (`"weekly" | "monthly" | "quarterly" | "yearly"`, optional)
|
|
122
|
+
- `successUrl` (`string`, optional)
|
|
123
|
+
- `offerId` (`string`, optional)
|
|
124
|
+
|
|
125
|
+
### Request options
|
|
126
|
+
|
|
127
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
128
|
+
|
|
129
|
+
### Returns
|
|
130
|
+
|
|
131
|
+
`PlanChange`
|
|
132
|
+
|
|
133
|
+
## purchaseCredits
|
|
134
|
+
|
|
135
|
+
`commet.subscriptions.purchaseCredits(params, options?)`
|
|
136
|
+
|
|
137
|
+
`POST /subscriptions/{id}/credits` · operation `purchase-credits`
|
|
138
|
+
|
|
139
|
+
Purchase a credit pack for a subscription. Charges the customer and adds credits to their balance.
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
- `id` (`string`, required)
|
|
144
|
+
- `creditPackId` (`string`, required)
|
|
145
|
+
|
|
146
|
+
### Request options
|
|
147
|
+
|
|
148
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
149
|
+
|
|
150
|
+
### Returns
|
|
151
|
+
|
|
152
|
+
`CreditGrant`
|
|
153
|
+
|
|
154
|
+
## applyOffer
|
|
155
|
+
|
|
156
|
+
`commet.subscriptions.applyOffer(params, options?)`
|
|
157
|
+
|
|
158
|
+
`PUT /subscriptions/{id}/offer` · operation `apply-subscription-offer`
|
|
159
|
+
|
|
160
|
+
Apply or replace a direct Offer on a subscription's pending payment checkout. The existing checkout URL remains unchanged. Offers whose first phase is a free trial cannot be applied after checkout creation.
|
|
161
|
+
|
|
162
|
+
### Parameters
|
|
163
|
+
|
|
164
|
+
- `id` (`string`, required)
|
|
165
|
+
- `offerId` (`string`, required)
|
|
166
|
+
- `expiresAt` (`string`, optional)
|
|
167
|
+
|
|
168
|
+
### Request options
|
|
169
|
+
|
|
170
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
171
|
+
|
|
172
|
+
### Returns
|
|
173
|
+
|
|
174
|
+
`Subscription`
|
|
175
|
+
|
|
176
|
+
## removeOffer
|
|
177
|
+
|
|
178
|
+
`commet.subscriptions.removeOffer(params, options?)`
|
|
179
|
+
|
|
180
|
+
`DELETE /subscriptions/{id}/offer` · operation `remove-subscription-offer`
|
|
181
|
+
|
|
182
|
+
Remove the quoted direct Offer from a subscription's pending payment checkout. The existing checkout URL remains unchanged and returns to its undiscounted price.
|
|
183
|
+
|
|
184
|
+
### Parameters
|
|
185
|
+
|
|
186
|
+
- `id` (`string`, required)
|
|
187
|
+
|
|
188
|
+
### Returns
|
|
189
|
+
|
|
190
|
+
`Subscription`
|
|
191
|
+
|
|
192
|
+
## updatePaymentMethod
|
|
193
|
+
|
|
194
|
+
`commet.subscriptions.updatePaymentMethod(params, options?)`
|
|
195
|
+
|
|
196
|
+
`POST /subscriptions/{id}/payment-method/update` · operation `update-payment-method`
|
|
197
|
+
|
|
198
|
+
Creates a hosted checkout session for the customer to update the subscription's default payment method.
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
- `id` (`string`, required)
|
|
203
|
+
- `successUrl` (`string`, optional)
|
|
204
|
+
|
|
205
|
+
### Request options
|
|
206
|
+
|
|
207
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
208
|
+
|
|
209
|
+
### Returns
|
|
210
|
+
|
|
211
|
+
`PaymentMethodUpdateCheckout`
|
|
212
|
+
|
|
213
|
+
## previewChange
|
|
214
|
+
|
|
215
|
+
`commet.subscriptions.previewChange(params, options?)`
|
|
216
|
+
|
|
217
|
+
`POST /subscriptions/{id}/preview-change` · operation `preview-change-plan`
|
|
218
|
+
|
|
219
|
+
Preview proration details for an immediate plan change without applying it. Free-to-paid changes are never scheduled and the change-plan endpoint always returns hosted checkout for them. For paid plans, interval direction takes precedence: a longer interval is immediate and a shorter interval is scheduled. When the interval is unchanged, a higher-sort-order plan is immediate and a lower-sort-order plan is scheduled. A paid-to-free change is always scheduled. Returns credit, charge, and net amount. The target plan must belong to the same plan group as the current plan, otherwise a 400 with code `plans_not_in_same_group` is returned. A change between two free plans has nothing to prorate and returns a zero-amount estimate. Scheduled changes return a 400 with code `plan_change_scheduled`; apply those via the change-plan endpoint. Pass offerId to quote the destination plan with an Offer.
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
- `id` (`string`, required)
|
|
224
|
+
- `planId` (`string`, required)
|
|
225
|
+
- `billingInterval` (`"weekly" | "monthly" | "quarterly" | "yearly" | "one_time"`, optional)
|
|
226
|
+
- `offerId` (`string`, optional)
|
|
227
|
+
|
|
228
|
+
### Request options
|
|
229
|
+
|
|
230
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
231
|
+
|
|
232
|
+
### Returns
|
|
233
|
+
|
|
234
|
+
`PreviewChange`
|
|
235
|
+
|
|
236
|
+
## reactivate
|
|
237
|
+
|
|
238
|
+
`commet.subscriptions.reactivate(params, options?)`
|
|
239
|
+
|
|
240
|
+
`POST /subscriptions/{id}/reactivate` · operation `reactivate-subscription`
|
|
241
|
+
|
|
242
|
+
Reactivates a subscription. A past_due subscription retries its outstanding renewal charge (recovering to active on success). A canceled subscription generates a fresh invoice, charges the saved card, and resets the billing period. On a successful charge the subscription becomes active; a declined charge returns an error with a recoveryUrl in the error details that can be sent to the customer to update their card. A canceled subscription may apply an Offer by offerId; past-due recovery cannot.
|
|
243
|
+
|
|
244
|
+
### Parameters
|
|
245
|
+
|
|
246
|
+
- `id` (`string`, required)
|
|
247
|
+
- `offerId` (`string`, optional)
|
|
248
|
+
|
|
249
|
+
### Request options
|
|
250
|
+
|
|
251
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
252
|
+
|
|
253
|
+
### Returns
|
|
254
|
+
|
|
255
|
+
`ReactivatedSubscription`
|
|
256
|
+
|
|
257
|
+
## createRecoveryLink
|
|
258
|
+
|
|
259
|
+
`commet.subscriptions.createRecoveryLink(params, options?)`
|
|
260
|
+
|
|
261
|
+
`POST /subscriptions/{id}/recovery-links` · operation `create-subscription-recovery-link`
|
|
262
|
+
|
|
263
|
+
Generates a hosted, signed recovery link that lets the customer pay the outstanding renewal charge for a past_due subscription. Unlike reactivate, which charges server-to-server, this returns a link the merchant can deliver through their own email, SMS, or dashboard. The link carries a self-contained signed token and stays valid until the charge is paid or the subscription is no longer past due.
|
|
264
|
+
|
|
265
|
+
### Parameters
|
|
266
|
+
|
|
267
|
+
- `id` (`string`, required)
|
|
268
|
+
|
|
269
|
+
### Request options
|
|
270
|
+
|
|
271
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
272
|
+
|
|
273
|
+
### Returns
|
|
274
|
+
|
|
275
|
+
`RecoveryLink`
|
|
276
|
+
|
|
277
|
+
## get
|
|
278
|
+
|
|
279
|
+
`commet.subscriptions.get(params)`
|
|
280
|
+
|
|
281
|
+
`GET /subscriptions/{id}` · operation `get-subscription`
|
|
282
|
+
|
|
283
|
+
Get a subscription by its public ID, regardless of status (including pending_payment and past_due).
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
- `id` (`string`, required)
|
|
288
|
+
|
|
289
|
+
### Returns
|
|
290
|
+
|
|
291
|
+
`Subscription`
|
|
292
|
+
|
|
293
|
+
## uncancel
|
|
294
|
+
|
|
295
|
+
`commet.subscriptions.uncancel(params, options?)`
|
|
296
|
+
|
|
297
|
+
`POST /subscriptions/{id}/uncancel` · operation `uncancel-subscription`
|
|
298
|
+
|
|
299
|
+
Revert a scheduled cancellation and return the updated subscription. Only works before cancellation takes effect.
|
|
300
|
+
|
|
301
|
+
### Parameters
|
|
302
|
+
|
|
303
|
+
- `id` (`string`, required)
|
|
304
|
+
|
|
305
|
+
### Request options
|
|
306
|
+
|
|
307
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
308
|
+
|
|
309
|
+
### Returns
|
|
310
|
+
|
|
311
|
+
`Subscription`
|
|
312
|
+
|
|
313
|
+
## getActive
|
|
314
|
+
|
|
315
|
+
`commet.subscriptions.getActive(params)`
|
|
316
|
+
|
|
317
|
+
`GET /subscriptions/active` · operation `get-active-subscription`
|
|
318
|
+
|
|
319
|
+
Get the active subscription for a customer. Returns null if none.
|
|
320
|
+
|
|
321
|
+
### Parameters
|
|
322
|
+
|
|
323
|
+
- `customerId` (`string`, required)
|
|
324
|
+
|
|
325
|
+
### Returns
|
|
326
|
+
|
|
327
|
+
`Subscription | null`
|
|
328
|
+
|
|
329
|
+
## list
|
|
330
|
+
|
|
331
|
+
`commet.subscriptions.list(params?)`
|
|
332
|
+
|
|
333
|
+
`GET /subscriptions` · operation `list-subscriptions`
|
|
334
|
+
|
|
335
|
+
List all subscriptions. Filter by customer ID or status.
|
|
336
|
+
|
|
337
|
+
### Parameters
|
|
338
|
+
|
|
339
|
+
- `customerId` (`string`, optional)
|
|
340
|
+
- `status` (`SubscriptionStatus`, optional)
|
|
341
|
+
|
|
342
|
+
### Returns
|
|
343
|
+
|
|
344
|
+
`{ object: "list"; data: Array<SubscriptionSummary>; hasMore: boolean; nextCursor?: string }`
|
|
345
|
+
|
|
346
|
+
## create
|
|
347
|
+
|
|
348
|
+
`commet.subscriptions.create(params, options?)`
|
|
349
|
+
|
|
350
|
+
`POST /subscriptions` · operation `create-subscription`
|
|
351
|
+
|
|
352
|
+
Create a subscription for a customer. Commet selects the default price when priceId is omitted and resolves its market from the customer's billing country. Without an offer override, Commet applies the price's automatic introductory Offer. Pass offerId to apply an active compatible Offer directly, or cardPromotionId to preselect a card-eligible Promotional Offer for the initial checkout when card promotions are enabled for the organization. For the initial checkout, provider accepts either a processor name or an exact payment connection ID.
|
|
353
|
+
|
|
354
|
+
### Parameters
|
|
355
|
+
|
|
356
|
+
- `customerId` (`string`, required)
|
|
357
|
+
- `billingInterval` (`"weekly" | "monthly" | "quarterly" | "yearly" | "one_time" | null`, optional)
|
|
358
|
+
- `priceId` (`string`, optional) — Public price ID. When omitted, Commet selects the default price for the billing interval and still applies its market pricing.
|
|
359
|
+
- `initialSeats` (`Record<string, number>`, optional)
|
|
360
|
+
- `provider` (`"stripe" | "commet" | "dlocal" | string`, optional) — Payment provider name or exact public payment connection ID for the initial checkout. Overrides country routing when present.
|
|
361
|
+
- `name` (`string`, optional)
|
|
362
|
+
- `startDate` (`string`, optional)
|
|
363
|
+
- `successUrl` (`string`, optional)
|
|
364
|
+
- `offerId` (`string`, optional)
|
|
365
|
+
- `promoCode` (`string`, optional)
|
|
366
|
+
- `customTrialDays` (`number`, optional)
|
|
367
|
+
- `skipTrial` (`boolean`, optional)
|
|
368
|
+
- `planId` (`string`, optional)
|
|
369
|
+
- `planCode` (`string`, optional)
|
|
370
|
+
- `cardPromotionId` (`string`, optional) — Public card promotion ID. The offer is shown immediately and remains conditional on card eligibility until checkout confirmation.
|
|
371
|
+
|
|
372
|
+
### Valid parameter combinations
|
|
373
|
+
|
|
374
|
+
- `customerId` + `planId`
|
|
375
|
+
- `customerId` + `planCode`
|
|
376
|
+
- `customerId` + `offerId` + `planId`
|
|
377
|
+
- `customerId` + `offerId` + `planCode`
|
|
378
|
+
- `customerId` + `cardPromotionId` + `planId`
|
|
379
|
+
- `customerId` + `cardPromotionId` + `planCode`
|
|
380
|
+
|
|
381
|
+
### Request options
|
|
382
|
+
|
|
383
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
384
|
+
|
|
385
|
+
### Returns
|
|
386
|
+
|
|
387
|
+
`CreatedSubscription`
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Test Clock
|
|
2
|
+
|
|
3
|
+
API version: `2026-07-31`
|
|
4
|
+
|
|
5
|
+
## processBilling
|
|
6
|
+
|
|
7
|
+
`commet.testClock.processBilling(options?)`
|
|
8
|
+
|
|
9
|
+
`POST /test-clock/process-billing` · operation `process-test-clock-billing`
|
|
10
|
+
|
|
11
|
+
Deprecated. POST /test-clock now advances time and processes every due billing deadline in one durable run.
|
|
12
|
+
|
|
13
|
+
Deprecated.
|
|
14
|
+
|
|
15
|
+
### Request options
|
|
16
|
+
|
|
17
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
18
|
+
|
|
19
|
+
### Returns
|
|
20
|
+
|
|
21
|
+
`void`
|
|
22
|
+
|
|
23
|
+
## get
|
|
24
|
+
|
|
25
|
+
`commet.testClock.get()`
|
|
26
|
+
|
|
27
|
+
`GET /test-clock` · operation `get-test-clock`
|
|
28
|
+
|
|
29
|
+
Returns the organization's current test clock state and latest durable run. Sandbox only.
|
|
30
|
+
|
|
31
|
+
### Returns
|
|
32
|
+
|
|
33
|
+
`TestClock`
|
|
34
|
+
|
|
35
|
+
## advance
|
|
36
|
+
|
|
37
|
+
`commet.testClock.advance(params, options?)`
|
|
38
|
+
|
|
39
|
+
`POST /test-clock` · operation `advance-test-clock`
|
|
40
|
+
|
|
41
|
+
Starts a durable run that moves the test clock forward and processes every billing deadline due before the target time. Poll GET /test-clock for progress and terminal results. Sandbox only.
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
- `advanceDays` (`number`, optional)
|
|
46
|
+
- `frozenTime` (`string`, optional)
|
|
47
|
+
|
|
48
|
+
### Valid parameter combinations
|
|
49
|
+
|
|
50
|
+
- `advanceDays`
|
|
51
|
+
- `frozenTime`
|
|
52
|
+
|
|
53
|
+
### Request options
|
|
54
|
+
|
|
55
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
56
|
+
|
|
57
|
+
### Returns
|
|
58
|
+
|
|
59
|
+
`TestClockRun`
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Transactions
|
|
2
|
+
|
|
3
|
+
API version: `2026-07-31`
|
|
4
|
+
|
|
5
|
+
## refund
|
|
6
|
+
|
|
7
|
+
`commet.transactions.refund(params, options?)`
|
|
8
|
+
|
|
9
|
+
`POST /transactions/{id}/refund` · operation `refund-transaction`
|
|
10
|
+
|
|
11
|
+
Issue a full refund and return the provider-neutral refund resource with its actual status.
|
|
12
|
+
|
|
13
|
+
### Parameters
|
|
14
|
+
|
|
15
|
+
- `id` (`string`, required)
|
|
16
|
+
|
|
17
|
+
### Request options
|
|
18
|
+
|
|
19
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
20
|
+
|
|
21
|
+
### Returns
|
|
22
|
+
|
|
23
|
+
`Refund`
|
|
24
|
+
|
|
25
|
+
## retry
|
|
26
|
+
|
|
27
|
+
`commet.transactions.retry(params, options?)`
|
|
28
|
+
|
|
29
|
+
`POST /transactions/{id}/retry` · operation `retry-transaction`
|
|
30
|
+
|
|
31
|
+
Retry a failed subscription renewal and return an honest retry result. The original failed transaction remains immutable.
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
- `id` (`string`, required)
|
|
36
|
+
|
|
37
|
+
### Request options
|
|
38
|
+
|
|
39
|
+
- `idempotencyKey` (`string`, optional) — Unique key used to safely retry this write for 24 hours without applying it twice.
|
|
40
|
+
|
|
41
|
+
### Returns
|
|
42
|
+
|
|
43
|
+
`TransactionRetry`
|
|
44
|
+
|
|
45
|
+
## get
|
|
46
|
+
|
|
47
|
+
`commet.transactions.get(params)`
|
|
48
|
+
|
|
49
|
+
`GET /transactions/{id}` · operation `get-transaction`
|
|
50
|
+
|
|
51
|
+
Retrieve a single payment transaction by its public ID, including provider details.
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
- `id` (`string`, required)
|
|
56
|
+
|
|
57
|
+
### Returns
|
|
58
|
+
|
|
59
|
+
`Transaction`
|
|
60
|
+
|
|
61
|
+
## list
|
|
62
|
+
|
|
63
|
+
`commet.transactions.list(params?)`
|
|
64
|
+
|
|
65
|
+
`GET /transactions` · operation `list-transactions`
|
|
66
|
+
|
|
67
|
+
List payment transactions with cursor-based pagination. Filter by status or customer email.
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
- `cursor` (`string`, optional)
|
|
72
|
+
- `limit` (`number`, optional)
|
|
73
|
+
- `status` (`TransactionStatus`, optional)
|
|
74
|
+
- `customerEmail` (`string`, optional)
|
|
75
|
+
|
|
76
|
+
### Returns
|
|
77
|
+
|
|
78
|
+
`{ object: "list"; data: Array<TransactionListItem>; hasMore: boolean; nextCursor?: string }`
|