From c6334d9f442096b9835b392b30ea10d7c62ee9c7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 2 Aug 2026 00:35:43 +0000 Subject: [PATCH 1/2] ## Python SDK Changes Detected: * `polar.organizations.update()`: * `request.organization_update` **Changed** **Breaking** :warning: * `response` **Changed** * `polar._endpointcheckout_updated_post()`: * `request.data.payment_method_type` **Added** **Breaking** :warning: * `polar._endpointcheckout_expired_post()`: * `request.data.payment_method_type` **Added** **Breaking** :warning: * `polar._endpointorder_created_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointorder_updated_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointorder_paid_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointorder_refunded_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_created_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_updated_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_active_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_canceled_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_uncanceled_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_revoked_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_past_due_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_paused_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointsubscription_resumed_post()`: * `request.data.discount` **Changed** **Breaking** :warning: * `polar._endpointorganization_updated_post()`: * `request.data` **Changed** **Breaking** :warning: * `polar.organizations.create()`: * `request.customer_email_settings.payment_method_expiration_reminder` **Added** **Breaking** :warning: * `response` **Changed** * `polar.events.get()`: `response.[system_event]` **Changed** **Breaking** :warning: * `polar.events.list()`: `response.[list_resource_event_].items.[].[system_event]` **Changed** **Breaking** :warning: * `polar._endpointcheckout_created_post()`: * `request.data.payment_method_type` **Added** **Breaking** :warning: * `polar.subscriptions.create()`: `response.discount` **Changed** * `polar.checkouts.list()`: `response.items.[].payment_method_type` **Added** * `polar.organizations.get()`: `response` **Changed** * `polar._endpointdiscount_deleted_post()`: **Added** * `polar.subscriptions.list()`: * `request` **Changed** * `response.items.[].discount` **Changed** * `polar._endpointdiscount_updated_post()`: **Added** * `polar.subscriptions.get()`: `response.discount` **Changed** * `polar.subscriptions.revoke()`: `response.discount` **Changed** * `polar.subscriptions.update()`: `response.discount` **Changed** * `polar.webhooks.list_webhook_deliveries()`: `request.event_type` **Changed** * `polar.orders.list()`: * `request` **Changed** * `response.items.[].discount` **Changed** * `polar.orders.create()`: `response.discount` **Changed** * `polar.orders.get()`: `response.discount` **Changed** * `polar.orders.update()`: `response.discount` **Changed** * `polar.orders.finalize()`: `response.discount` **Changed** * `polar.organizations.list_organizations()`: `response.items.[]` **Changed** * `polar.checkouts.create()`: `response.payment_method_type` **Added** * `polar.checkouts.get()`: `response.payment_method_type` **Added** * `polar.checkouts.update()`: * `response.payment_method_type` **Added** * `error.[discount_redemption_limit_reached]` **Added** * `polar.checkouts.client_get()`: `response.payment_method_type` **Added** * `polar.checkouts.client_update()`: * `request.checkout_update_public.payment_method_type` **Added** * `response.payment_method_type` **Added** * `error.[discount_redemption_limit_reached]` **Added** * `polar.checkouts.client_confirm()`: * `request.checkout_confirm_stripe.payment_method_type` **Added** * `response.payment_method_type` **Added** * `error.[discount_redemption_limit_reached]` **Added** * `polar.checkout-links.list()`: `response.items.[].discount` **Changed** * `polar.checkout-links.create()`: `response.discount` **Changed** * `polar.checkout-links.get()`: `response.discount` **Changed** * `polar.checkout-links.update()`: `response.discount` **Changed** * `polar.discounts.list()`: `response.items.[]` **Changed** * `polar.discounts.create()`: * `request` **Changed** * `response` **Changed** * `polar.discounts.get()`: `response` **Changed** * `polar.discounts.update()`: * `request.discount_update.max_redemptions_per_customer` **Added** * `response` **Changed** * `polar._endpointdiscount_created_post()`: **Added** * `polar._endpointsubscription_cycled_post()`: **Added** --- .speakeasy/gen.lock | 323 +++++++++++------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- README.md | 3 +- RELEASES.md | 12 +- codeSamples.yaml | 58 +++- docs/models/checkout.md | 1 + docs/models/checkoutconfirmstripe.md | 1 + docs/models/checkoutforbiddenerror.md | 6 + docs/models/checkoutpublic.md | 1 + docs/models/checkoutpublicconfirmed.md | 1 + docs/models/checkoutupdatepublic.md | 1 + docs/models/discountfixedcreate.md | 1 + .../discountfixedonceforeverduration.md | 1 + .../discountfixedonceforeverdurationbase.md | 1 + docs/models/discountfixedrepeatduration.md | 1 + .../models/discountfixedrepeatdurationbase.md | 1 + docs/models/discountpercentagecreate.md | 1 + .../discountpercentageonceforeverduration.md | 1 + ...scountpercentageonceforeverdurationbase.md | 1 + .../discountpercentagerepeatduration.md | 1 + .../discountpercentagerepeatdurationbase.md | 1 + docs/models/discountredemptionlimitreached.md | 9 + docs/models/discountupdate.md | 1 + .../disputeslistqueryparamstatusfilter.md | 19 ++ docs/models/disputeslistrequest.md | 2 +- docs/models/orderslistrequest.md | 3 + docs/models/orderunvoidedevent.md | 23 ++ docs/models/orderunvoidedmetadata.md | 10 + docs/models/organization.md | 55 +-- .../organizationcustomeremailsettings.md | 1 + docs/models/organizationupdate.md | 33 +- docs/models/queryparamstatusfilter.md | 10 +- docs/models/subscriptionreinstatedevent.md | 23 ++ docs/models/subscriptionreinstatedmetadata.md | 13 + docs/models/subscriptionslistrequest.md | 2 + docs/models/systemevent.md | 12 + docs/models/webhookdiscountcreatedpayload.md | 14 + docs/models/webhookdiscountdeletedpayload.md | 14 + docs/models/webhookdiscountupdatedpayload.md | 14 + docs/models/webhookeventtype.md | 4 + .../webhooksubscriptioncycledpayload.md | 22 ++ .../webhooksubscriptionupdatedpayload.md | 2 +- docs/sdks/checkouts/README.md | 3 + docs/sdks/disputes/README.md | 2 +- docs/sdks/orders/README.md | 3 + docs/sdks/organizations/README.md | 8 +- docs/sdks/subscriptions/README.md | 2 + pyproject.toml | 2 +- src/polar_sdk/_version.py | 4 +- src/polar_sdk/disputes.py | 10 +- src/polar_sdk/models/__init__.py | 83 ++++- src/polar_sdk/models/checkout.py | 6 + src/polar_sdk/models/checkoutconfirmstripe.py | 7 + .../models/checkoutforbiddenerror.py | 2 + src/polar_sdk/models/checkoutpublic.py | 6 + .../models/checkoutpublicconfirmed.py | 6 + src/polar_sdk/models/checkoutupdatepublic.py | 7 + src/polar_sdk/models/discountfixedcreate.py | 7 + .../discountfixedonceforeverduration.py | 6 + .../discountfixedonceforeverdurationbase.py | 6 + .../models/discountfixedrepeatduration.py | 6 + .../models/discountfixedrepeatdurationbase.py | 6 + .../models/discountpercentagecreate.py | 7 + .../discountpercentageonceforeverduration.py | 6 + ...scountpercentageonceforeverdurationbase.py | 6 + .../discountpercentagerepeatduration.py | 6 + .../discountpercentagerepeatdurationbase.py | 6 + .../models/discountredemptionlimitreached.py | 39 +++ src/polar_sdk/models/discountupdate.py | 7 + src/polar_sdk/models/disputes_listop.py | 13 +- src/polar_sdk/models/orderunvoidedevent.py | 140 ++++++++ src/polar_sdk/models/orderunvoidedmetadata.py | 19 ++ src/polar_sdk/models/organization.py | 16 + .../organizationcustomeremailsettings.py | 3 + src/polar_sdk/models/organizationupdate.py | 5 + .../models/subscriptionreinstatedevent.py | 144 ++++++++ .../models/subscriptionreinstatedmetadata.py | 29 ++ src/polar_sdk/models/subscriptions_listop.py | 63 ++++ src/polar_sdk/models/systemevent.py | 9 + .../models/webhookdiscountcreatedpayload.py | 41 +++ .../models/webhookdiscountdeletedpayload.py | 41 +++ .../models/webhookdiscountupdatedpayload.py | 41 +++ src/polar_sdk/models/webhookeventtype.py | 4 + .../webhooksubscriptioncycledpayload.py | 57 ++++ .../webhooksubscriptionupdatedpayload.py | 4 +- src/polar_sdk/orders.py | 29 ++ src/polar_sdk/subscriptions.py | 16 + 88 files changed, 1441 insertions(+), 209 deletions(-) create mode 100644 docs/models/discountredemptionlimitreached.md create mode 100644 docs/models/disputeslistqueryparamstatusfilter.md create mode 100644 docs/models/orderunvoidedevent.md create mode 100644 docs/models/orderunvoidedmetadata.md create mode 100644 docs/models/subscriptionreinstatedevent.md create mode 100644 docs/models/subscriptionreinstatedmetadata.md create mode 100644 docs/models/webhookdiscountcreatedpayload.md create mode 100644 docs/models/webhookdiscountdeletedpayload.md create mode 100644 docs/models/webhookdiscountupdatedpayload.md create mode 100644 docs/models/webhooksubscriptioncycledpayload.md create mode 100644 src/polar_sdk/models/discountredemptionlimitreached.py create mode 100644 src/polar_sdk/models/orderunvoidedevent.py create mode 100644 src/polar_sdk/models/orderunvoidedmetadata.py create mode 100644 src/polar_sdk/models/subscriptionreinstatedevent.py create mode 100644 src/polar_sdk/models/subscriptionreinstatedmetadata.py create mode 100644 src/polar_sdk/models/webhookdiscountcreatedpayload.py create mode 100644 src/polar_sdk/models/webhookdiscountdeletedpayload.py create mode 100644 src/polar_sdk/models/webhookdiscountupdatedpayload.py create mode 100644 src/polar_sdk/models/webhooksubscriptioncycledpayload.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 56327dc6..bb103176 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: e7042734-e669-4c36-85da-bbb4a7500ac8 management: - docChecksum: d3f6c3d7be92e9e992cf5eb454a54422 + docChecksum: c7eb632d1c99e2320140a0d0886860d3 docVersion: 2026-04 speakeasyVersion: 1.648.0 generationVersion: 2.737.0 - releaseVersion: 0.32.0 - configChecksum: 649bc0d1f320a2697ce9374e785419df + releaseVersion: 0.32.1 + configChecksum: 23ec14e01c12717565936758b3107282 repoURL: https://github.com/polarsource/polar-python.git installationURL: https://github.com/polarsource/polar-python.git published: true @@ -628,6 +628,7 @@ generatedFiles: - docs/models/discountpercentagerepeatduration.md - docs/models/discountpercentagerepeatdurationbase.md - docs/models/discountproduct.md + - docs/models/discountredemptionlimitreached.md - docs/models/discountsdeleterequest.md - docs/models/discountsgetrequest.md - docs/models/discountslistqueryparamorganizationidfilter.md @@ -645,6 +646,7 @@ generatedFiles: - docs/models/disputesacceptrequest.md - docs/models/disputesgetrequest.md - docs/models/disputeslistqueryparamorganizationidfilter.md + - docs/models/disputeslistqueryparamstatusfilter.md - docs/models/disputeslistrequest.md - docs/models/disputeslistresponse.md - docs/models/disputesortproperty.md @@ -971,6 +973,8 @@ generatedFiles: - docs/models/orderstatus.md - docs/models/ordersubscription.md - docs/models/ordersupdaterequest.md + - docs/models/orderunvoidedevent.md + - docs/models/orderunvoidedmetadata.md - docs/models/orderupdate.md - docs/models/ordervoidedevent.md - docs/models/ordervoidedmetadata.md @@ -1166,6 +1170,8 @@ generatedFiles: - docs/models/subscriptionprorationbehavior.md - docs/models/subscriptionreactivatedevent.md - docs/models/subscriptionreactivatedmetadata.md + - docs/models/subscriptionreinstatedevent.md + - docs/models/subscriptionreinstatedmetadata.md - docs/models/subscriptionresume.md - docs/models/subscriptionresumedevent.md - docs/models/subscriptionresumedmetadata.md @@ -1242,6 +1248,9 @@ generatedFiles: - docs/models/webhookcustomerstatechangedpayload.md - docs/models/webhookcustomerupdatedpayload.md - docs/models/webhookdelivery.md + - docs/models/webhookdiscountcreatedpayload.md + - docs/models/webhookdiscountdeletedpayload.md + - docs/models/webhookdiscountupdatedpayload.md - docs/models/webhookendpoint.md - docs/models/webhookendpointcreate.md - docs/models/webhookendpointupdate.md @@ -1271,6 +1280,7 @@ generatedFiles: - docs/models/webhooksubscriptionactivepayload.md - docs/models/webhooksubscriptioncanceledpayload.md - docs/models/webhooksubscriptioncreatedpayload.md + - docs/models/webhooksubscriptioncycledpayload.md - docs/models/webhooksubscriptionpastduepayload.md - docs/models/webhooksubscriptionpausedpayload.md - docs/models/webhooksubscriptionresumedpayload.md @@ -1740,6 +1750,7 @@ generatedFiles: - src/polar_sdk/models/discountpercentagerepeatduration.py - src/polar_sdk/models/discountpercentagerepeatdurationbase.py - src/polar_sdk/models/discountproduct.py + - src/polar_sdk/models/discountredemptionlimitreached.py - src/polar_sdk/models/discounts_deleteop.py - src/polar_sdk/models/discounts_getop.py - src/polar_sdk/models/discounts_listop.py @@ -1930,6 +1941,8 @@ generatedFiles: - src/polar_sdk/models/ordersortproperty.py - src/polar_sdk/models/orderstatus.py - src/polar_sdk/models/ordersubscription.py + - src/polar_sdk/models/orderunvoidedevent.py + - src/polar_sdk/models/orderunvoidedmetadata.py - src/polar_sdk/models/orderupdate.py - src/polar_sdk/models/ordervoidedevent.py - src/polar_sdk/models/ordervoidedmetadata.py @@ -2063,6 +2076,8 @@ generatedFiles: - src/polar_sdk/models/subscriptionprorationbehavior.py - src/polar_sdk/models/subscriptionreactivatedevent.py - src/polar_sdk/models/subscriptionreactivatedmetadata.py + - src/polar_sdk/models/subscriptionreinstatedevent.py + - src/polar_sdk/models/subscriptionreinstatedmetadata.py - src/polar_sdk/models/subscriptionresume.py - src/polar_sdk/models/subscriptionresumedevent.py - src/polar_sdk/models/subscriptionresumedmetadata.py @@ -2125,6 +2140,9 @@ generatedFiles: - src/polar_sdk/models/webhookcustomerstatechangedpayload.py - src/polar_sdk/models/webhookcustomerupdatedpayload.py - src/polar_sdk/models/webhookdelivery.py + - src/polar_sdk/models/webhookdiscountcreatedpayload.py + - src/polar_sdk/models/webhookdiscountdeletedpayload.py + - src/polar_sdk/models/webhookdiscountupdatedpayload.py - src/polar_sdk/models/webhookendpoint.py - src/polar_sdk/models/webhookendpointcreate.py - src/polar_sdk/models/webhookendpointupdate.py @@ -2153,6 +2171,7 @@ generatedFiles: - src/polar_sdk/models/webhooksubscriptionactivepayload.py - src/polar_sdk/models/webhooksubscriptioncanceledpayload.py - src/polar_sdk/models/webhooksubscriptioncreatedpayload.py + - src/polar_sdk/models/webhooksubscriptioncycledpayload.py - src/polar_sdk/models/webhooksubscriptionpastduepayload.py - src/polar_sdk/models/webhooksubscriptionpausedpayload.py - src/polar_sdk/models/webhooksubscriptionresumedpayload.py @@ -2205,7 +2224,7 @@ examples: _endpointcheckout_created_post: speakeasy-default-endpointcheckout-created-post: requestBody: - application/json: {"type": "checkout.created", "timestamp": "2023-02-15T15:44:21.478Z", "data": {"id": "", "created_at": "2023-02-15T15:44:21.478Z", "modified_at": "2023-09-13T08:36:46.434Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://whole-aftermath.net/", "expires_at": "2023-12-28T10:30:56.042Z", "success_url": "https://moral-premier.name/", "return_url": null, "embed_origin": "", "amount": 929514, "discount_amount": 323773, "net_amount": 115799, "tax_amount": 97012, "tax_behavior": null, "total_amount": 859980, "currency": "Fiji Dollar", "allow_trial": null, "active_trial_interval": null, "active_trial_interval_count": 232991, "trial_end": "2023-10-05T12:55:46.428Z", "organization_id": "", "product_id": "", "product_price_id": null, "discount_id": null, "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": null, "customer_ip_address": null, "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "day", "trial_interval_count": 329779, "metadata": {"key": false, "key1": false}, "external_customer_id": null, "products": [{"id": "", "created_at": "2025-07-23T17:21:51.405Z", "modified_at": "2024-01-17T03:32:08.030Z", "trial_interval": "month", "trial_interval_count": 631188, "name": "", "description": "funny abscond fairly except slight", "visibility": "draft", "recurring_interval": null, "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": 232991, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2026-11-21T15:05:00.505Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 631188, "maximum_amount": 929514, "preset_amount": 115799, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 982910, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T03:57:17.676Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-23T06:47:50.944Z", "size_readable": "", "public_url": "https://yummy-ocelot.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 982910, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T03:57:17.676Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-23T06:47:50.944Z", "size_readable": "", "public_url": "https://yummy-ocelot.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 982910, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T03:57:17.676Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-23T06:47:50.944Z", "size_readable": "", "public_url": "https://yummy-ocelot.biz/"}]}], "product": {"id": "", "created_at": "2023-03-01T03:35:30.257Z", "modified_at": "2024-12-19T15:40:11.887Z", "trial_interval": "year", "trial_interval_count": 115799, "name": "", "description": "until joyful how", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 232991, "meter_interval": "day", "meter_interval_count": 275553, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-05-02T18:25:33.974Z", "modified_at": "2025-02-06T12:55:07.640Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 115799, "legacy": true}, {"created_at": "2025-07-31T12:54:47.590Z", "modified_at": "2023-01-11T22:31:47.320Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 203013, "maximum_amount": null, "preset_amount": 119260, "legacy": true}, {"created_at": "2024-08-07T15:45:51.732Z", "modified_at": "2024-08-10T12:03:58.542Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 421335, "maximum_amount": null, "preset_amount": null, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-22T11:07:53.319Z", "modified_at": "2025-09-17T18:38:51.288Z", "type": "discord", "description": "brr now psst", "selectable": true, "deletable": true, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2023-11-22T11:07:53.319Z", "modified_at": "2025-09-17T18:38:51.288Z", "type": "discord", "description": "brr now psst", "selectable": true, "deletable": true, "is_deleted": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-10-04T12:55:46.428Z", "modified_at": "2024-01-21T19:51:40.643Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 527093, "maximum_amount": 631188, "preset_amount": 929514, "legacy": true}, "prices": null, "discount": {"duration": "repeating", "duration_in_months": 470604, "type": "fixed", "basis_points": 567071, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-01-27T12:44:05.844Z", "modified_at": "2023-11-12T13:10:44.040Z", "id": "", "metadata": {"key": 833527, "key1": false}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 786803, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-01-27T12:44:05.844Z", "modified_at": "2023-11-12T13:10:44.040Z", "id": "", "metadata": {"key": 833527, "key1": false}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 786803, "required": false}], "customer_metadata": {}}} + application/json: {"type": "checkout.created", "timestamp": "2023-02-15T15:44:21.478Z", "data": {"id": "", "created_at": "2023-02-15T15:44:21.478Z", "modified_at": "2023-09-13T08:36:46.434Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://whole-aftermath.net/", "expires_at": "2023-12-28T10:30:56.042Z", "success_url": "https://moral-premier.name/", "return_url": null, "embed_origin": "", "amount": 929514, "discount_amount": 323773, "net_amount": 115799, "tax_amount": 97012, "tax_behavior": null, "total_amount": 859980, "currency": "Fiji Dollar", "allow_trial": null, "active_trial_interval": null, "active_trial_interval_count": 232991, "trial_end": "2023-10-05T12:55:46.428Z", "organization_id": "", "product_id": "", "product_price_id": null, "discount_id": null, "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": null, "customer_ip_address": null, "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": null, "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "day", "trial_interval_count": 329779, "metadata": {"key": false, "key1": false}, "external_customer_id": null, "products": [{"id": "", "created_at": "2025-07-23T17:21:51.405Z", "modified_at": "2024-01-17T03:32:08.030Z", "trial_interval": "month", "trial_interval_count": 631188, "name": "", "description": "funny abscond fairly except slight", "visibility": "draft", "recurring_interval": null, "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": 232991, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2026-11-21T15:05:00.505Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 631188, "maximum_amount": 929514, "preset_amount": 115799, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 982910, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T03:57:17.676Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-23T06:47:50.944Z", "size_readable": "", "public_url": "https://yummy-ocelot.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 982910, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T03:57:17.676Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-23T06:47:50.944Z", "size_readable": "", "public_url": "https://yummy-ocelot.biz/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/log", "mime_type": "", "size": 982910, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-13T03:57:17.676Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-23T06:47:50.944Z", "size_readable": "", "public_url": "https://yummy-ocelot.biz/"}]}], "product": {"id": "", "created_at": "2023-03-01T03:35:30.257Z", "modified_at": "2024-12-19T15:40:11.887Z", "trial_interval": "year", "trial_interval_count": 115799, "name": "", "description": "until joyful how", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 232991, "meter_interval": "day", "meter_interval_count": 275553, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-05-02T18:25:33.974Z", "modified_at": "2025-02-06T12:55:07.640Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 115799, "legacy": true}, {"created_at": "2025-07-31T12:54:47.590Z", "modified_at": "2023-01-11T22:31:47.320Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 203013, "maximum_amount": null, "preset_amount": 119260, "legacy": true}, {"created_at": "2024-08-07T15:45:51.732Z", "modified_at": "2024-08-10T12:03:58.542Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 421335, "maximum_amount": null, "preset_amount": null, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-11-22T11:07:53.319Z", "modified_at": "2025-09-17T18:38:51.288Z", "type": "discord", "description": "brr now psst", "selectable": true, "deletable": true, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2023-11-22T11:07:53.319Z", "modified_at": "2025-09-17T18:38:51.288Z", "type": "discord", "description": "brr now psst", "selectable": true, "deletable": true, "is_deleted": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-10-04T12:55:46.428Z", "modified_at": "2024-01-21T19:51:40.643Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 527093, "maximum_amount": 631188, "preset_amount": 929514, "legacy": true}, "prices": null, "discount": {"duration": "repeating", "duration_in_months": 470604, "type": "fixed", "basis_points": 567071, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-01-27T12:44:05.844Z", "modified_at": "2023-11-12T13:10:44.040Z", "id": "", "metadata": {"key": 833527, "key1": false}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 786803, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-01-27T12:44:05.844Z", "modified_at": "2023-11-12T13:10:44.040Z", "id": "", "metadata": {"key": 833527, "key1": false}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 786803, "required": false}], "customer_metadata": {}}} responses: "200": application/json: "" @@ -2214,7 +2233,7 @@ examples: _endpointcheckout_updated_post: speakeasy-default-endpointcheckout-updated-post: requestBody: - application/json: {"type": "checkout.updated", "timestamp": "2023-03-19T05:40:46.816Z", "data": {"id": "", "created_at": "2023-03-19T05:40:46.816Z", "modified_at": "2025-01-17T21:45:54.449Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://wasteful-kinase.net/", "expires_at": "2024-07-13T07:40:45.762Z", "success_url": "https://unwieldy-lift.name", "return_url": null, "embed_origin": "", "amount": 328864, "discount_amount": 67168, "net_amount": 710560, "tax_amount": 164230, "tax_behavior": null, "total_amount": 754328, "currency": "New Taiwan Dollar", "allow_trial": null, "active_trial_interval": null, "active_trial_interval_count": 682397, "trial_end": "2024-01-01T01:21:07.047Z", "organization_id": "", "product_id": "", "product_price_id": null, "discount_id": "", "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": null, "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "optional", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 510328, "metadata": {"key": 8729.81, "key1": "", "key2": 302746}, "external_customer_id": null, "products": [{"id": "", "created_at": "2024-02-06T13:10:07.718Z", "modified_at": "2025-05-28T09:18:17.409Z", "trial_interval": "year", "trial_interval_count": 558100, "name": "", "description": "gee unlike aboard entice which break", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": 682397, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-01-17T21:45:54.449Z", "modified_at": "2024-01-01T01:21:07.047Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 720125, "legacy": true}, {"created_at": "2026-10-27T17:49:05.784Z", "modified_at": "2026-02-28T06:09:51.100Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "price_amount": 558100}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2024-02-06T13:10:07.718Z", "modified_at": "2025-05-28T09:18:17.409Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "gee unlike aboard entice which break", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 682397, "meter_interval": "week", "meter_interval_count": null, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-29T23:54:25.932Z", "modified_at": "2025-08-08T18:57:45.007Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": null, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 164230}}, {"created_at": "2025-05-29T09:31:05.865Z", "modified_at": "2024-06-03T08:35:03.062Z", "id": "", "source": "catalog", "amount_type": "seat_based", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 426798, "price_per_seat": 70808}], "minimum_seats": 792281, "maximum_seats": 558565}}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2024-02-06T13:10:07.718Z", "modified_at": "2025-05-28T09:18:17.409Z", "trial_interval": "year", "trial_interval_count": 754328, "name": "", "description": "gee unlike aboard entice which break", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 333080, "meter_interval": "year", "meter_interval_count": 846374, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2026-01-29T09:14:14.399Z", "modified_at": "2024-09-13T20:51:28.608Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 795829, "legacy": true}, {"created_at": "2023-11-28T19:26:30.837Z", "modified_at": "2025-10-14T04:57:44.285Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 801449, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2024-04-04T09:43:29.328Z", "modified_at": "2024-01-03T07:24:30.583Z", "trial_interval": "week", "trial_interval_count": 140837, "name": "", "description": "patroller fax sadly sick bitterly indeed grandson bravely loyally wholly", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 496454, "meter_interval": "day", "meter_interval_count": 968723, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-27T17:16:31.119Z", "modified_at": "2025-06-04T15:43:18.802Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 72487, "legacy": true}, {"created_at": "2025-11-21T17:30:50.622Z", "modified_at": "2024-03-20T10:42:26.864Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 426798, "price_per_seat": 70808}], "minimum_seats": 792281, "maximum_seats": 558565}}, {"created_at": "2025-02-06T04:48:01.265Z", "modified_at": "2024-01-15T02:31:30.334Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 849243, "maximum_amount": 295343, "preset_amount": 994380, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 349206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-20T22:00:21.061Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-01T19:20:04.513Z", "size_readable": "", "public_url": "https://noted-availability.info"}, {"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 349206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-20T22:00:21.061Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-01T19:20:04.513Z", "size_readable": "", "public_url": "https://noted-availability.info"}, {"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 349206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-20T22:00:21.061Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-01T19:20:04.513Z", "size_readable": "", "public_url": "https://noted-availability.info"}]}, "product_price": {"created_at": "2024-12-31T01:21:07.047Z", "modified_at": "2025-06-28T02:43:46.293Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 912409, "meter_id": "", "meter": {"id": "", "name": "", "unit": "token", "custom_label": "", "custom_multiplier": 465247}}, "prices": {"key": [], "key1": []}, "discount": {"duration": "once", "duration_in_months": 187379, "type": "fixed", "basis_points": 373595, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-09-18T09:12:02.157Z", "modified_at": "2023-07-11T01:18:07.226Z", "id": "", "metadata": {"key": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 704552, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-09-18T09:12:02.157Z", "modified_at": "2023-07-11T01:18:07.226Z", "id": "", "metadata": {"key": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 704552, "required": true}], "customer_metadata": {"key": 384374, "key1": 126671, "key2": 568803}}} + application/json: {"type": "checkout.updated", "timestamp": "2023-03-19T05:40:46.816Z", "data": {"id": "", "created_at": "2023-03-19T05:40:46.816Z", "modified_at": "2025-01-17T21:45:54.449Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://wasteful-kinase.net/", "expires_at": "2024-07-13T07:40:45.762Z", "success_url": "https://unwieldy-lift.name", "return_url": null, "embed_origin": "", "amount": 328864, "discount_amount": 67168, "net_amount": 710560, "tax_amount": 164230, "tax_behavior": null, "total_amount": 754328, "currency": "New Taiwan Dollar", "allow_trial": null, "active_trial_interval": null, "active_trial_interval_count": 682397, "trial_end": "2024-01-01T01:21:07.047Z", "organization_id": "", "product_id": "", "product_price_id": null, "discount_id": "", "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": null, "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": null, "payment_processor_metadata": {}, "billing_address_fields": {"country": "required", "state": "optional", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 510328, "metadata": {"key": 8729.81, "key1": "", "key2": 302746}, "external_customer_id": null, "products": [{"id": "", "created_at": "2024-02-06T13:10:07.718Z", "modified_at": "2025-05-28T09:18:17.409Z", "trial_interval": "year", "trial_interval_count": 558100, "name": "", "description": "gee unlike aboard entice which break", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": 682397, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-01-17T21:45:54.449Z", "modified_at": "2024-01-01T01:21:07.047Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 720125, "legacy": true}, {"created_at": "2026-10-27T17:49:05.784Z", "modified_at": "2026-02-28T06:09:51.100Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 558100, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2024-02-06T13:10:07.718Z", "modified_at": "2025-05-28T09:18:17.409Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "gee unlike aboard entice which break", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 682397, "meter_interval": "week", "meter_interval_count": null, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-06-29T23:54:25.932Z", "modified_at": "2025-08-08T18:57:45.007Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": null, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 164230}}, {"created_at": "2025-05-29T09:31:05.865Z", "modified_at": "2024-06-03T08:35:03.062Z", "id": "", "source": "catalog", "amount_type": "seat_based", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 426798, "price_per_seat": 70808}], "minimum_seats": 792281, "maximum_seats": 558565}}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": []}, {"id": "", "created_at": "2024-02-06T13:10:07.718Z", "modified_at": "2025-05-28T09:18:17.409Z", "trial_interval": "year", "trial_interval_count": 754328, "name": "", "description": "gee unlike aboard entice which break", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 333080, "meter_interval": "year", "meter_interval_count": 846374, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2026-01-29T09:14:14.399Z", "modified_at": "2024-09-13T20:51:28.608Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 795829, "legacy": true}, {"created_at": "2023-11-28T19:26:30.837Z", "modified_at": "2025-10-14T04:57:44.285Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 801449, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2024-04-04T09:43:29.328Z", "modified_at": "2024-01-03T07:24:30.583Z", "trial_interval": "week", "trial_interval_count": 140837, "name": "", "description": "patroller fax sadly sick bitterly indeed grandson bravely loyally wholly", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 496454, "meter_interval": "day", "meter_interval_count": 968723, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-27T17:16:31.119Z", "modified_at": "2025-06-04T15:43:18.802Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 72487, "legacy": true}, {"created_at": "2025-11-21T17:30:50.622Z", "modified_at": "2024-03-20T10:42:26.864Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 426798, "price_per_seat": 70808}], "minimum_seats": 792281, "maximum_seats": 558565}}, {"created_at": "2025-02-06T04:48:01.265Z", "modified_at": "2024-01-15T02:31:30.334Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 849243, "maximum_amount": 295343, "preset_amount": 994380, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-07-05T15:21:14.498Z", "modified_at": "2023-11-21T02:59:50.838Z", "type": "downloadables", "description": "highlight sandy overspend scratchy yet by", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 349206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-20T22:00:21.061Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-01T19:20:04.513Z", "size_readable": "", "public_url": "https://noted-availability.info"}, {"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 349206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-20T22:00:21.061Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-01T19:20:04.513Z", "size_readable": "", "public_url": "https://noted-availability.info"}, {"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 349206, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-20T22:00:21.061Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-01T19:20:04.513Z", "size_readable": "", "public_url": "https://noted-availability.info"}]}, "product_price": {"created_at": "2024-12-31T01:21:07.047Z", "modified_at": "2025-06-28T02:43:46.293Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 912409, "meter_id": "", "meter": {"id": "", "name": "", "unit": "token", "custom_label": "", "custom_multiplier": 465247}}, "prices": {"key": [], "key1": []}, "discount": {"duration": "once", "duration_in_months": 187379, "type": "fixed", "basis_points": 373595, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-09-18T09:12:02.157Z", "modified_at": "2023-07-11T01:18:07.226Z", "id": "", "metadata": {"key": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 704552, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-09-18T09:12:02.157Z", "modified_at": "2023-07-11T01:18:07.226Z", "id": "", "metadata": {"key": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 704552, "required": true}], "customer_metadata": {"key": 384374, "key1": 126671, "key2": 568803}}} responses: "200": application/json: "" @@ -2259,7 +2278,7 @@ examples: _endpointorder_created_post: speakeasy-default-endpointorder-created-post: requestBody: - application/json: {"type": "order.created", "timestamp": "2024-08-21T06:55:49.348Z", "data": {"id": "", "created_at": "2024-08-21T06:55:49.348Z", "modified_at": null, "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": true, "key1": 2184.01, "key2": ""}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-11-07T09:52:21.455Z", "modified_at": "2025-06-03T19:46:15.179Z", "metadata": {"key": 526331}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-10-25T07:11:48.501Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {}, "id": "", "created_at": "2025-02-09T20:19:15.400Z", "modified_at": "2023-03-30T07:05:37.419Z", "trial_interval": "day", "trial_interval_count": 952546, "name": "", "description": "against outbid to petty yeast off meanwhile colonialism", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 1806, "meter_interval": "day", "meter_interval_count": 952546, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "repeating", "type": "fixed", "basis_points": 1000, "created_at": "2023-03-20T16:46:25.677Z", "modified_at": "2023-03-06T18:58:41.541Z", "id": "", "metadata": {"key": 298954}, "name": "", "code": "", "starts_at": "2023-04-08T15:39:19.572Z", "ends_at": "2024-01-04T15:31:18.185Z", "max_redemptions": 313467, "redemptions_count": 237254, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": null, "items": [{"created_at": "2023-10-09T05:35:46.860Z", "modified_at": "2025-11-19T12:55:15.055Z", "id": "", "label": "", "amount": 921740, "tax_amount": 964357, "proration": true, "product_price_id": ""}, {"created_at": "2023-10-09T05:35:46.860Z", "modified_at": "2025-11-19T12:55:15.055Z", "id": "", "label": "", "amount": 921740, "tax_amount": 964357, "proration": true, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} + application/json: {"type": "order.created", "timestamp": "2024-08-21T06:55:49.348Z", "data": {"id": "", "created_at": "2024-08-21T06:55:49.348Z", "modified_at": null, "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": true, "key1": 2184.01, "key2": ""}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-11-07T09:52:21.455Z", "modified_at": "2025-06-03T19:46:15.179Z", "metadata": {"key": 526331}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-10-25T07:11:48.501Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {}, "id": "", "created_at": "2025-02-09T20:19:15.400Z", "modified_at": "2023-03-30T07:05:37.419Z", "trial_interval": "day", "trial_interval_count": 952546, "name": "", "description": "against outbid to petty yeast off meanwhile colonialism", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 1806, "meter_interval": "day", "meter_interval_count": 952546, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "repeating", "type": "fixed", "basis_points": 1000, "created_at": "2023-03-20T16:46:25.677Z", "modified_at": "2023-03-06T18:58:41.541Z", "id": "", "metadata": {"key": 298954}, "name": "", "code": "", "starts_at": "2023-04-08T15:39:19.572Z", "ends_at": "2024-01-04T15:31:18.185Z", "max_redemptions": 313467, "max_redemptions_per_customer": null, "redemptions_count": 237254, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": null, "items": [{"created_at": "2023-10-09T05:35:46.860Z", "modified_at": "2025-11-19T12:55:15.055Z", "id": "", "label": "", "amount": 921740, "tax_amount": 964357, "proration": true, "product_price_id": ""}, {"created_at": "2023-10-09T05:35:46.860Z", "modified_at": "2025-11-19T12:55:15.055Z", "id": "", "label": "", "amount": 921740, "tax_amount": 964357, "proration": true, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} responses: "200": application/json: "" @@ -2268,7 +2287,7 @@ examples: _endpointorder_updated_post: speakeasy-default-endpointorder-updated-post: requestBody: - application/json: {"type": "order.updated", "timestamp": "2023-10-25T00:08:50.290Z", "data": {"id": "", "created_at": "2023-10-25T00:08:50.290Z", "modified_at": "2024-01-08T20:00:47.692Z", "status": "partially_refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": false, "key1": 187509}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-12-03T05:16:11.415Z", "modified_at": "2023-03-11T05:58:05.184Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-06-26T15:51:37.068Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {}, "id": "", "created_at": "2024-07-10T12:45:44.731Z", "modified_at": "2024-09-19T13:13:25.785Z", "trial_interval": "week", "trial_interval_count": 804823, "name": "", "description": "bossy direct reservation quaintly atop interestingly", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 443415, "meter_interval": "week", "meter_interval_count": 804823, "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "duration_in_months": 227959, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-08-02T14:17:04.679Z", "modified_at": "2023-04-10T21:27:35.876Z", "id": "", "metadata": {"key": "", "key1": 330083}, "name": "", "code": "", "starts_at": "2023-09-01T14:56:03.459Z", "ends_at": "2024-10-01T02:03:16.161Z", "max_redemptions": 723901, "redemptions_count": 125128, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2024-10-31T22:22:01.280Z", "modified_at": "2025-05-03T18:27:32.620Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 340177, "status": "unpaid", "current_period_start": "2023-08-26T12:56:24.423Z", "current_period_end": "2024-02-06T09:06:51.703Z", "current_meter_period_start": "2025-01-05T18:11:55.943Z", "current_meter_period_end": "2026-06-26T08:06:49.783Z", "trial_start": "2024-01-06T18:11:55.943Z", "trial_end": "2025-06-26T08:06:49.783Z", "cancel_at_period_end": true, "canceled_at": "2024-03-28T15:10:13.508Z", "started_at": "2023-11-03T05:13:30.202Z", "ends_at": "2024-03-03T03:52:46.888Z", "ended_at": "2025-07-30T00:35:38.035Z", "pause_at_period_end": true, "paused_at": "2025-03-18T20:38:21.539Z", "resumes_at": "2025-12-19T23:11:19.433Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": null, "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": ""}, "items": [{"created_at": "2025-01-03T16:01:28.999Z", "modified_at": null, "id": "", "label": "", "amount": 516134, "tax_amount": 41202, "proration": false, "product_price_id": ""}, {"created_at": "2025-01-03T16:01:28.999Z", "modified_at": null, "id": "", "label": "", "amount": 516134, "tax_amount": 41202, "proration": false, "product_price_id": ""}, {"created_at": "2025-01-03T16:01:28.999Z", "modified_at": null, "id": "", "label": "", "amount": 516134, "tax_amount": 41202, "proration": false, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} + application/json: {"type": "order.updated", "timestamp": "2023-10-25T00:08:50.290Z", "data": {"id": "", "created_at": "2023-10-25T00:08:50.290Z", "modified_at": "2024-01-08T20:00:47.692Z", "status": "partially_refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": false, "key1": 187509}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-12-03T05:16:11.415Z", "modified_at": "2023-03-11T05:58:05.184Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-06-26T15:51:37.068Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {}, "id": "", "created_at": "2024-07-10T12:45:44.731Z", "modified_at": "2024-09-19T13:13:25.785Z", "trial_interval": "week", "trial_interval_count": 804823, "name": "", "description": "bossy direct reservation quaintly atop interestingly", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 443415, "meter_interval": "week", "meter_interval_count": 804823, "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "duration_in_months": 227959, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-08-02T14:17:04.679Z", "modified_at": "2023-04-10T21:27:35.876Z", "id": "", "metadata": {"key": "", "key1": 330083}, "name": "", "code": "", "starts_at": "2023-09-01T14:56:03.459Z", "ends_at": "2024-10-01T02:03:16.161Z", "max_redemptions": 723901, "max_redemptions_per_customer": 340177, "redemptions_count": 125128, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2024-10-31T22:22:01.280Z", "modified_at": "2025-05-03T18:27:32.620Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 340177, "status": "unpaid", "current_period_start": "2023-08-26T12:56:24.423Z", "current_period_end": "2024-02-06T09:06:51.703Z", "current_meter_period_start": "2025-01-05T18:11:55.943Z", "current_meter_period_end": "2026-06-26T08:06:49.783Z", "trial_start": "2024-01-06T18:11:55.943Z", "trial_end": "2025-06-26T08:06:49.783Z", "cancel_at_period_end": true, "canceled_at": "2024-03-28T15:10:13.508Z", "started_at": "2023-11-03T05:13:30.202Z", "ends_at": "2024-03-03T03:52:46.888Z", "ended_at": "2025-07-30T00:35:38.035Z", "pause_at_period_end": true, "paused_at": "2025-03-18T20:38:21.539Z", "resumes_at": "2025-12-19T23:11:19.433Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": null, "customer_cancellation_reason": "switched_service", "customer_cancellation_comment": ""}, "items": [{"created_at": "2025-01-03T16:01:28.999Z", "modified_at": null, "id": "", "label": "", "amount": 516134, "tax_amount": 41202, "proration": false, "product_price_id": ""}, {"created_at": "2025-01-03T16:01:28.999Z", "modified_at": null, "id": "", "label": "", "amount": 516134, "tax_amount": 41202, "proration": false, "product_price_id": ""}, {"created_at": "2025-01-03T16:01:28.999Z", "modified_at": null, "id": "", "label": "", "amount": 516134, "tax_amount": 41202, "proration": false, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} responses: "200": application/json: "" @@ -2277,7 +2296,7 @@ examples: _endpointorder_paid_post: speakeasy-default-endpointorder-paid-post: requestBody: - application/json: {"type": "order.paid", "timestamp": "2025-12-05T07:44:21.172Z", "data": {"id": "", "created_at": "2025-12-05T07:44:21.172Z", "modified_at": "2024-12-11T22:14:44.762Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-30T09:47:22.437Z", "modified_at": "2025-04-20T14:41:24.727Z", "metadata": {"key": 154136, "key1": false, "key2": true}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-06-08T00:11:47.056Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": "", "key1": false, "key2": 1122.47}, "id": "", "created_at": "2024-03-19T01:07:15.346Z", "modified_at": "2025-03-22T13:41:39.854Z", "trial_interval": "year", "trial_interval_count": 650431, "name": "", "description": "instead unnaturally curly scared but definite knowledgeably", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 856211, "meter_interval": "year", "meter_interval_count": 650431, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 458129, "type": "fixed", "basis_points": 400985, "created_at": "2025-12-02T15:10:04.656Z", "modified_at": "2024-10-30T18:07:50.242Z", "id": "", "metadata": {"key": 4652.15}, "name": "", "code": "", "starts_at": "2023-11-24T17:59:56.836Z", "ends_at": "2025-08-12T18:11:29.547Z", "max_redemptions": 727805, "redemptions_count": 584469, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2025-07-17T03:39:23.964Z", "modified_at": "2025-10-30T20:20:46.051Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 648656, "status": "canceled", "current_period_start": "2023-02-24T15:15:22.018Z", "current_period_end": "2023-12-07T15:09:08.144Z", "current_meter_period_start": "2026-12-21T22:38:27.436Z", "current_meter_period_end": "2025-01-09T03:46:58.354Z", "trial_start": "2025-12-21T22:38:27.436Z", "trial_end": "2024-01-10T03:46:58.354Z", "cancel_at_period_end": false, "canceled_at": "2023-07-01T03:36:16.430Z", "started_at": "2024-09-21T14:56:16.106Z", "ends_at": "2023-01-21T03:35:38.158Z", "ended_at": "2023-12-02T06:46:04.196Z", "pause_at_period_end": true, "paused_at": "2024-12-10T04:41:52.936Z", "resumes_at": "2025-11-18T23:59:53.508Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": ""}, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} + application/json: {"type": "order.paid", "timestamp": "2025-12-05T07:44:21.172Z", "data": {"id": "", "created_at": "2025-12-05T07:44:21.172Z", "modified_at": "2024-12-11T22:14:44.762Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-30T09:47:22.437Z", "modified_at": "2025-04-20T14:41:24.727Z", "metadata": {"key": 154136, "key1": false, "key2": true}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-06-08T00:11:47.056Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": "", "key1": false, "key2": 1122.47}, "id": "", "created_at": "2024-03-19T01:07:15.346Z", "modified_at": "2025-03-22T13:41:39.854Z", "trial_interval": "year", "trial_interval_count": 650431, "name": "", "description": "instead unnaturally curly scared but definite knowledgeably", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 856211, "meter_interval": "year", "meter_interval_count": 650431, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 458129, "type": "fixed", "basis_points": 1000, "created_at": "2025-12-02T15:10:04.656Z", "modified_at": "2024-10-30T18:07:50.242Z", "id": "", "metadata": {"key": 4652.15}, "name": "", "code": "", "starts_at": "2023-11-24T17:59:56.836Z", "ends_at": "2025-08-12T18:11:29.547Z", "max_redemptions": 727805, "max_redemptions_per_customer": 648656, "redemptions_count": 584469, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2025-07-17T03:39:23.964Z", "modified_at": "2025-10-30T20:20:46.051Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 648656, "status": "canceled", "current_period_start": "2023-02-24T15:15:22.018Z", "current_period_end": "2023-12-07T15:09:08.144Z", "current_meter_period_start": "2026-12-21T22:38:27.436Z", "current_meter_period_end": "2025-01-09T03:46:58.354Z", "trial_start": "2025-12-21T22:38:27.436Z", "trial_end": "2024-01-10T03:46:58.354Z", "cancel_at_period_end": false, "canceled_at": "2023-07-01T03:36:16.430Z", "started_at": "2024-09-21T14:56:16.106Z", "ends_at": "2023-01-21T03:35:38.158Z", "ended_at": "2023-12-02T06:46:04.196Z", "pause_at_period_end": true, "paused_at": "2024-12-10T04:41:52.936Z", "resumes_at": "2025-11-18T23:59:53.508Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "other", "customer_cancellation_comment": ""}, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} responses: "200": application/json: "" @@ -2286,7 +2305,7 @@ examples: _endpointorder_refunded_post: speakeasy-default-endpointorder-refunded-post: requestBody: - application/json: {"type": "order.refunded", "timestamp": "2024-07-23T18:00:11.615Z", "data": {"id": "", "created_at": "2024-07-23T18:00:11.615Z", "modified_at": "2024-08-23T03:13:11.383Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": 4542.91}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-08-11T17:50:11.031Z", "modified_at": "2023-02-24T05:25:29.794Z", "metadata": {"key": 97027, "key1": 958634}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-01-16T07:26:04.196Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 4016.73, "key1": 9058.31, "key2": true}, "id": "", "created_at": "2024-10-26T18:25:25.517Z", "modified_at": "2023-07-26T10:28:20.791Z", "trial_interval": "month", "trial_interval_count": 638840, "name": "", "description": null, "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 737679, "meter_interval": "month", "meter_interval_count": 638840, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 1000, "created_at": "2025-03-31T17:18:12.309Z", "modified_at": "2025-04-04T07:20:27.321Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": null, "ends_at": "2025-11-07T12:21:07.975Z", "max_redemptions": 986922, "redemptions_count": 691292, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2023-03-16T14:38:58.849Z", "modified_at": "2024-08-12T02:18:50.288Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 547568, "status": "past_due", "current_period_start": "2025-08-22T13:19:25.286Z", "current_period_end": "2025-05-03T08:49:50.424Z", "current_meter_period_start": "2024-11-18T10:04:04.704Z", "current_meter_period_end": "2026-09-27T15:34:09.130Z", "trial_start": "2023-11-19T10:04:04.704Z", "trial_end": "2025-09-27T15:34:09.130Z", "cancel_at_period_end": true, "canceled_at": "2023-11-21T12:57:47.903Z", "started_at": "2023-09-21T04:07:05.991Z", "ends_at": "2023-10-30T23:29:28.584Z", "ended_at": "2025-05-20T18:28:46.249Z", "pause_at_period_end": false, "paused_at": "2025-06-01T18:50:10.325Z", "resumes_at": "2025-01-10T05:58:29.990Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-01-22T05:05:29.797Z", "modified_at": "2025-11-07T21:20:59.535Z", "id": "", "label": "", "amount": 287841, "tax_amount": 922801, "proration": false, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} + application/json: {"type": "order.refunded", "timestamp": "2024-07-23T18:00:11.615Z", "data": {"id": "", "created_at": "2024-07-23T18:00:11.615Z", "modified_at": "2024-08-23T03:13:11.383Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": 4542.91}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-08-11T17:50:11.031Z", "modified_at": "2023-02-24T05:25:29.794Z", "metadata": {"key": 97027, "key1": 958634}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-01-16T07:26:04.196Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 4016.73, "key1": 9058.31, "key2": true}, "id": "", "created_at": "2024-10-26T18:25:25.517Z", "modified_at": "2023-07-26T10:28:20.791Z", "trial_interval": "month", "trial_interval_count": 638840, "name": "", "description": null, "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 737679, "meter_interval": "month", "meter_interval_count": 638840, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 1000, "created_at": "2025-03-31T17:18:12.309Z", "modified_at": "2025-04-04T07:20:27.321Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": null, "ends_at": "2025-11-07T12:21:07.975Z", "max_redemptions": 986922, "max_redemptions_per_customer": 547568, "redemptions_count": 691292, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2023-03-16T14:38:58.849Z", "modified_at": "2024-08-12T02:18:50.288Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 547568, "status": "past_due", "current_period_start": "2025-08-22T13:19:25.286Z", "current_period_end": "2025-05-03T08:49:50.424Z", "current_meter_period_start": "2024-11-18T10:04:04.704Z", "current_meter_period_end": "2026-09-27T15:34:09.130Z", "trial_start": "2023-11-19T10:04:04.704Z", "trial_end": "2025-09-27T15:34:09.130Z", "cancel_at_period_end": true, "canceled_at": "2023-11-21T12:57:47.903Z", "started_at": "2023-09-21T04:07:05.991Z", "ends_at": "2023-10-30T23:29:28.584Z", "ended_at": "2025-05-20T18:28:46.249Z", "pause_at_period_end": false, "paused_at": "2025-06-01T18:50:10.325Z", "resumes_at": "2025-01-10T05:58:29.990Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": ""}, "items": [{"created_at": "2023-01-22T05:05:29.797Z", "modified_at": "2025-11-07T21:20:59.535Z", "id": "", "label": "", "amount": 287841, "tax_amount": 922801, "proration": false, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}} responses: "200": application/json: "" @@ -2295,7 +2314,7 @@ examples: _endpointsubscription_created_post: speakeasy-default-endpointsubscription-created-post: requestBody: - application/json: {"type": "subscription.created", "timestamp": "2024-05-03T11:46:21.459Z", "data": {"created_at": "2024-05-03T11:46:21.459Z", "modified_at": "2025-01-12T06:30:14.360Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 445703, "status": "incomplete", "current_period_start": "2024-01-07T06:33:36.381Z", "current_period_end": "2024-07-30T16:54:44.427Z", "current_meter_period_start": "2024-12-02T10:52:23.880Z", "current_meter_period_end": "2025-05-29T05:21:44.072Z", "trial_start": "2023-12-03T10:52:23.880Z", "trial_end": "2024-05-29T05:21:44.072Z", "cancel_at_period_end": true, "canceled_at": "2023-09-10T18:39:16.136Z", "started_at": "2025-08-30T21:29:16.432Z", "ends_at": "2024-06-27T22:01:23.333Z", "ended_at": "2024-07-24T19:43:04.879Z", "pause_at_period_end": true, "paused_at": "2024-05-16T21:41:04.799Z", "resumes_at": "2025-02-02T21:22:53.116Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": false}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-05-18T22:55:50.482Z", "modified_at": "2024-08-04T23:52:10.438Z", "metadata": {"key": false, "key1": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-05-15T22:05:41.858Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-05-25T09:51:02.679Z", "modified_at": "2025-12-23T23:39:23.705Z", "trial_interval": "year", "trial_interval_count": 338753, "name": "", "description": "slink needily cemetery hydrocarbon a fledgling knit shirk appertain rural", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 677255, "meter_interval": "week", "meter_interval_count": 230636, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2025-01-12T06:30:14.360Z", "modified_at": "2023-05-11T16:29:33.481Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 363951, "maximum_amount": 267138, "preset_amount": 230636, "legacy": true}, {"created_at": "2025-09-02T19:02:23.015Z", "modified_at": "2024-08-18T21:45:43.735Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 300534, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-08-16T04:04:01.242Z", "modified_at": "2023-08-30T05:19:40.088Z", "type": "meter_credit", "description": "courageously quick-witted out equally toward though quietly", "selectable": true, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": 3195.27}, "visibility": "private", "properties": {"units": 371901, "rollover": false, "meter_id": ""}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 719695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-21T14:37:14.488Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T06:08:47.416Z", "size_readable": "", "public_url": "https://repentant-unit.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 719695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-21T14:37:14.488Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T06:08:47.416Z", "size_readable": "", "public_url": "https://repentant-unit.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 719695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-21T14:37:14.488Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T06:08:47.416Z", "size_readable": "", "public_url": "https://repentant-unit.org/"}], "attached_custom_fields": []}, "discount": {"duration": "once", "type": "fixed", "basis_points": 745503, "created_at": "2024-04-19T20:53:32.186Z", "modified_at": "2024-11-15T00:04:04.545Z", "id": "", "metadata": {"key": 3699.53}, "name": "", "code": "", "starts_at": "2024-10-15T21:24:43.202Z", "ends_at": "2025-09-26T06:55:01.272Z", "max_redemptions": 104800, "redemptions_count": 570322, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-11-26T09:15:00.973Z", "modified_at": "2024-01-19T16:01:53.249Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 125871, "legacy": true}], "meters": [{"created_at": "2025-05-17T01:58:02.155Z", "modified_at": "2024-09-29T09:35:40.427Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 201601, "key1": true, "key2": 2057.75}, "created_at": "2025-03-06T04:32:46.256Z", "modified_at": "2024-01-13T00:47:03.334Z", "id": "", "name": "", "unit": "token", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2025-05-17T01:58:02.155Z", "modified_at": "2024-09-29T09:35:40.427Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 201601, "key1": true, "key2": 2057.75}, "created_at": "2025-03-06T04:32:46.256Z", "modified_at": "2024-01-13T00:47:03.334Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2025-05-17T01:58:02.155Z", "modified_at": "2024-09-29T09:35:40.427Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 201601, "key1": true, "key2": 2057.75}, "created_at": "2025-03-06T04:32:46.256Z", "modified_at": "2024-01-13T00:47:03.334Z", "id": "", "name": "", "unit": "custom", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-01-06T06:33:36.381Z", "modified_at": "2025-07-30T16:54:44.427Z", "id": "", "applies_at": "2024-10-19T18:48:25.568Z", "product_id": "", "seats": 230391}}} + application/json: {"type": "subscription.created", "timestamp": "2024-05-03T11:46:21.459Z", "data": {"created_at": "2024-05-03T11:46:21.459Z", "modified_at": "2025-01-12T06:30:14.360Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 445703, "status": "incomplete", "current_period_start": "2024-01-07T06:33:36.381Z", "current_period_end": "2024-07-30T16:54:44.427Z", "current_meter_period_start": "2024-12-02T10:52:23.880Z", "current_meter_period_end": "2025-05-29T05:21:44.072Z", "trial_start": "2023-12-03T10:52:23.880Z", "trial_end": "2024-05-29T05:21:44.072Z", "cancel_at_period_end": true, "canceled_at": "2023-09-10T18:39:16.136Z", "started_at": "2025-08-30T21:29:16.432Z", "ends_at": "2024-06-27T22:01:23.333Z", "ended_at": "2024-07-24T19:43:04.879Z", "pause_at_period_end": true, "paused_at": "2024-05-16T21:41:04.799Z", "resumes_at": "2025-02-02T21:22:53.116Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {"key": false}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-05-18T22:55:50.482Z", "modified_at": "2024-08-04T23:52:10.438Z", "metadata": {"key": false, "key1": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-05-15T22:05:41.858Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-05-25T09:51:02.679Z", "modified_at": "2025-12-23T23:39:23.705Z", "trial_interval": "year", "trial_interval_count": 338753, "name": "", "description": "slink needily cemetery hydrocarbon a fledgling knit shirk appertain rural", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 677255, "meter_interval": "week", "meter_interval_count": 230636, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2025-01-12T06:30:14.360Z", "modified_at": "2023-05-11T16:29:33.481Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 363951, "maximum_amount": 267138, "preset_amount": 230636, "legacy": true}, {"created_at": "2025-09-02T19:02:23.015Z", "modified_at": "2024-08-18T21:45:43.735Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 300534, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-08-16T04:04:01.242Z", "modified_at": "2023-08-30T05:19:40.088Z", "type": "meter_credit", "description": "courageously quick-witted out equally toward though quietly", "selectable": true, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": 3195.27}, "visibility": "private", "properties": {"units": 371901, "rollover": false, "meter_id": ""}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 719695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-21T14:37:14.488Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T06:08:47.416Z", "size_readable": "", "public_url": "https://repentant-unit.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 719695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-21T14:37:14.488Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T06:08:47.416Z", "size_readable": "", "public_url": "https://repentant-unit.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/lost+found", "mime_type": "", "size": 719695, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-21T14:37:14.488Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T06:08:47.416Z", "size_readable": "", "public_url": "https://repentant-unit.org/"}], "attached_custom_fields": []}, "discount": {"duration": "once", "duration_in_months": 306983, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-04-19T20:53:32.186Z", "modified_at": "2024-11-15T00:04:04.545Z", "id": "", "metadata": {"key": 3699.53}, "name": "", "code": "", "starts_at": "2024-10-15T21:24:43.202Z", "ends_at": "2025-09-26T06:55:01.272Z", "max_redemptions": 104800, "max_redemptions_per_customer": 469182, "redemptions_count": 570322, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-11-26T09:15:00.973Z", "modified_at": "2024-01-19T16:01:53.249Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 125871, "legacy": true}], "meters": [{"created_at": "2025-05-17T01:58:02.155Z", "modified_at": "2024-09-29T09:35:40.427Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 201601, "key1": true, "key2": 2057.75}, "created_at": "2025-03-06T04:32:46.256Z", "modified_at": "2024-01-13T00:47:03.334Z", "id": "", "name": "", "unit": "token", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2025-05-17T01:58:02.155Z", "modified_at": "2024-09-29T09:35:40.427Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 201601, "key1": true, "key2": 2057.75}, "created_at": "2025-03-06T04:32:46.256Z", "modified_at": "2024-01-13T00:47:03.334Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2025-05-17T01:58:02.155Z", "modified_at": "2024-09-29T09:35:40.427Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 201601, "key1": true, "key2": 2057.75}, "created_at": "2025-03-06T04:32:46.256Z", "modified_at": "2024-01-13T00:47:03.334Z", "id": "", "name": "", "unit": "custom", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-01-06T06:33:36.381Z", "modified_at": "2025-07-30T16:54:44.427Z", "id": "", "applies_at": "2024-10-19T18:48:25.568Z", "product_id": "", "seats": 230391}}} responses: "200": application/json: "" @@ -2304,7 +2323,7 @@ examples: _endpointsubscription_updated_post: speakeasy-default-endpointsubscription-updated-post: requestBody: - application/json: {"type": "subscription.updated", "timestamp": "2023-06-24T13:26:25.969Z", "data": {"created_at": "2023-06-24T13:26:25.969Z", "modified_at": "2024-10-16T16:24:20.274Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 159270, "status": "canceled", "current_period_start": "2024-06-19T12:29:28.503Z", "current_period_end": "2023-08-24T22:14:10.131Z", "current_meter_period_start": "2025-05-25T12:11:24.717Z", "current_meter_period_end": "2025-07-08T02:17:23.799Z", "trial_start": "2024-05-25T12:11:24.717Z", "trial_end": "2024-07-08T02:17:23.799Z", "cancel_at_period_end": false, "canceled_at": "2025-08-31T06:08:08.476Z", "started_at": "2023-06-01T08:01:27.951Z", "ends_at": "2025-01-23T22:07:32.693Z", "ended_at": "2025-05-14T13:55:44.367Z", "pause_at_period_end": true, "paused_at": "2026-03-19T13:26:31.175Z", "resumes_at": "2024-06-13T15:07:05.619Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": 477870, "key1": true, "key2": 485359}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-01-10T06:45:35.933Z", "modified_at": "2024-01-24T02:08:13.039Z", "metadata": {"key": 117983, "key1": 8500.16}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-08-09T14:29:57.545Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-12-02T17:09:45.787Z", "modified_at": "2025-03-11T00:51:56.943Z", "trial_interval": "week", "trial_interval_count": 488614, "name": "", "description": "obnoxiously save following clinch striking juicy", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 597339, "meter_interval": "year", "meter_interval_count": 888007, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": false, "key1": 884041, "key2": 4257.66}, "prices": [{"created_at": "2024-10-16T16:24:20.274Z", "modified_at": "2024-01-05T22:20:15.867Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 488614, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/srv", "mime_type": "", "size": 29348, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2023-10-03T10:28:13.472Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-07T09:47:56.854Z", "size_readable": "", "public_url": "https://flowery-promise.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/srv", "mime_type": "", "size": 29348, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2023-10-03T10:28:13.472Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-07T09:47:56.854Z", "size_readable": "", "public_url": "https://flowery-promise.org/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-01-10T20:33:55.554Z", "modified_at": "2023-03-14T14:16:19.041Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 766194, "required": false}]}, "discount": {"duration": "once", "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-06-09T06:11:59.062Z", "modified_at": "2024-09-28T05:16:48.757Z", "id": "", "metadata": {"key": 962223, "key1": 587522}, "name": "", "code": "", "starts_at": "2023-04-12T20:54:06.410Z", "ends_at": "2025-03-19T14:28:57.223Z", "max_redemptions": 852845, "redemptions_count": 658199, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [{"created_at": "2025-06-07T13:44:19.881Z", "modified_at": "2023-12-06T20:26:36.699Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 6882, "key1": 556425, "key2": 117069}, "created_at": "2023-05-21T02:26:27.963Z", "modified_at": "2025-06-09T17:54:52.162Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": [{"conjunction": "or", "clauses": []}, {"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-06-07T13:44:19.881Z", "modified_at": "2023-12-06T20:26:36.699Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 6882, "key1": 556425, "key2": 117069}, "created_at": "2023-05-21T02:26:27.963Z", "modified_at": "2025-06-09T17:54:52.162Z", "id": "", "name": "", "unit": "token", "filter": {"conjunction": "and", "clauses": [{"conjunction": "or", "clauses": []}, {"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-07-08T02:17:23.799Z", "modified_at": "2025-06-20T20:38:29.855Z", "id": "", "applies_at": "2026-03-19T13:26:31.175Z", "product_id": "", "seats": 215261}}} + application/json: {"type": "subscription.updated", "timestamp": "2023-06-24T13:26:25.969Z", "data": {"created_at": "2023-06-24T13:26:25.969Z", "modified_at": "2024-10-16T16:24:20.274Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 159270, "status": "canceled", "current_period_start": "2024-06-19T12:29:28.503Z", "current_period_end": "2023-08-24T22:14:10.131Z", "current_meter_period_start": "2025-05-25T12:11:24.717Z", "current_meter_period_end": "2025-07-08T02:17:23.799Z", "trial_start": "2024-05-25T12:11:24.717Z", "trial_end": "2024-07-08T02:17:23.799Z", "cancel_at_period_end": false, "canceled_at": "2025-08-31T06:08:08.476Z", "started_at": "2023-06-01T08:01:27.951Z", "ends_at": "2025-01-23T22:07:32.693Z", "ended_at": "2025-05-14T13:55:44.367Z", "pause_at_period_end": true, "paused_at": "2026-03-19T13:26:31.175Z", "resumes_at": "2024-06-13T15:07:05.619Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": 477870, "key1": true, "key2": 485359}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-01-10T06:45:35.933Z", "modified_at": "2024-01-24T02:08:13.039Z", "metadata": {"key": 117983, "key1": 8500.16}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-08-09T14:29:57.545Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-12-02T17:09:45.787Z", "modified_at": "2025-03-11T00:51:56.943Z", "trial_interval": "week", "trial_interval_count": 488614, "name": "", "description": "obnoxiously save following clinch striking juicy", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 597339, "meter_interval": "year", "meter_interval_count": 888007, "is_recurring": true, "is_archived": false, "organization_id": "", "metadata": {"key": false, "key1": 884041, "key2": 4257.66}, "prices": [{"created_at": "2024-10-16T16:24:20.274Z", "modified_at": "2024-01-05T22:20:15.867Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 488614, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/srv", "mime_type": "", "size": 29348, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2023-10-03T10:28:13.472Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-07T09:47:56.854Z", "size_readable": "", "public_url": "https://flowery-promise.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/srv", "mime_type": "", "size": 29348, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2023-10-03T10:28:13.472Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-10-07T09:47:56.854Z", "size_readable": "", "public_url": "https://flowery-promise.org/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-01-10T20:33:55.554Z", "modified_at": "2023-03-14T14:16:19.041Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 766194, "required": false}]}, "discount": {"duration": "once", "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-06-09T06:11:59.062Z", "modified_at": "2024-09-28T05:16:48.757Z", "id": "", "metadata": {"key": 962223, "key1": 587522}, "name": "", "code": "", "starts_at": "2023-04-12T20:54:06.410Z", "ends_at": "2025-03-19T14:28:57.223Z", "max_redemptions": 852845, "max_redemptions_per_customer": 597339, "redemptions_count": 658199, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [{"created_at": "2025-06-07T13:44:19.881Z", "modified_at": "2023-12-06T20:26:36.699Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 6882, "key1": 556425, "key2": 117069}, "created_at": "2023-05-21T02:26:27.963Z", "modified_at": "2025-06-09T17:54:52.162Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": [{"conjunction": "or", "clauses": []}, {"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-06-07T13:44:19.881Z", "modified_at": "2023-12-06T20:26:36.699Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 6882, "key1": 556425, "key2": 117069}, "created_at": "2023-05-21T02:26:27.963Z", "modified_at": "2025-06-09T17:54:52.162Z", "id": "", "name": "", "unit": "token", "filter": {"conjunction": "and", "clauses": [{"conjunction": "or", "clauses": []}, {"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-07-08T02:17:23.799Z", "modified_at": "2025-06-20T20:38:29.855Z", "id": "", "applies_at": "2026-03-19T13:26:31.175Z", "product_id": "", "seats": 215261}}} responses: "200": application/json: "" @@ -2313,7 +2332,7 @@ examples: _endpointsubscription_active_post: speakeasy-default-endpointsubscription-active-post: requestBody: - application/json: {"type": "subscription.active", "timestamp": "2023-08-13T01:28:21.362Z", "data": {"created_at": "2023-08-13T01:28:21.362Z", "modified_at": "2024-06-25T00:41:05.678Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 204435, "status": "past_due", "current_period_start": "2023-06-09T14:14:48.363Z", "current_period_end": "2024-08-12T01:28:21.362Z", "current_meter_period_start": "2024-10-11T10:17:29.274Z", "current_meter_period_end": "2024-12-17T04:45:55.702Z", "trial_start": "2023-10-12T10:17:29.274Z", "trial_end": "2023-12-18T04:45:55.702Z", "cancel_at_period_end": true, "canceled_at": null, "started_at": "2023-07-21T07:29:31.409Z", "ends_at": "2025-08-05T11:38:46.213Z", "ended_at": "2024-09-05T04:27:23.768Z", "pause_at_period_end": false, "paused_at": "2025-10-11T10:49:29.519Z", "resumes_at": "2024-04-08T09:06:19.384Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "metadata": {"key": false}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-08-17T18:35:42.212Z", "modified_at": "2025-01-01T23:32:39.659Z", "metadata": {"key": 7303.56, "key1": 796236}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": null, "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-11-05T10:18:40.300Z", "modified_at": "2024-04-23T18:24:43.408Z", "trial_interval": "week", "trial_interval_count": 145614, "name": "", "description": "athwart fail wound oh nor boohoo reasoning against since", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 493639, "meter_interval": null, "meter_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 722592}, "prices": [], "benefits": [{"id": "", "created_at": "2025-05-21T10:49:13.924Z", "modified_at": null, "type": "license_keys", "description": "chime softly outgoing gray", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {}, "visibility": "draft", "properties": {"prefix": "", "expires": {"ttl": 18256, "timeframe": "day"}, "activations": {"limit": 776442, "enable_customer_admin": false}, "limit_usage": 89994}, "visibility_configurable": true}, {"id": "", "created_at": "2023-02-11T00:08:34.711Z", "modified_at": "2024-10-21T08:00:16.195Z", "type": "github_repository", "description": "as draft noon kettledrum alligator", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 331688, "key1": 10869, "key2": true}, "visibility": "private", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}, "visibility_configurable": true}, {"id": "", "created_at": "2023-02-11T00:08:34.711Z", "modified_at": "2024-10-21T08:00:16.195Z", "type": "github_repository", "description": "as draft noon kettledrum alligator", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 331688, "key1": 10869, "key2": true}, "visibility": "public", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 980211, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-01T03:11:19.881Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-05T22:00:20.852Z", "size_readable": "", "public_url": "https://shabby-integer.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 980211, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-01T03:11:19.881Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-05T22:00:20.852Z", "size_readable": "", "public_url": "https://shabby-integer.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 980211, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-01T03:11:19.881Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-05T22:00:20.852Z", "size_readable": "", "public_url": "https://shabby-integer.org"}], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-10-09T08:41:16.911Z", "modified_at": "2025-08-16T07:28:28.929Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-04-06T16:40:05.860Z", "ends_at": "2023-01-06T22:21:47.288Z", "max_redemptions": null, "redemptions_count": 313365, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-06-25T00:41:05.678Z", "modified_at": "2025-09-12T00:30:21.037Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 89762, "maximum_amount": null, "preset_amount": null, "legacy": true}, {"created_at": "2024-09-14T15:19:58.463Z", "modified_at": "2024-07-30T05:01:30.550Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 720352, "maximum_amount": 761885, "preset_amount": 542678, "legacy": true}, {"created_at": "2025-09-14T15:19:58.463Z", "modified_at": "2025-07-30T05:01:30.550Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "minimum_amount": 514935, "maximum_amount": 277670, "preset_amount": 783985}], "meters": [], "pending_update": {"created_at": "2024-06-08T14:14:48.363Z", "modified_at": null, "id": "", "applies_at": "2024-02-09T14:19:47.352Z", "product_id": null, "seats": 183679}}} + application/json: {"type": "subscription.active", "timestamp": "2023-08-13T01:28:21.362Z", "data": {"created_at": "2023-08-13T01:28:21.362Z", "modified_at": "2024-06-25T00:41:05.678Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 204435, "status": "past_due", "current_period_start": "2023-06-09T14:14:48.363Z", "current_period_end": "2024-08-12T01:28:21.362Z", "current_meter_period_start": "2024-10-11T10:17:29.274Z", "current_meter_period_end": "2024-12-17T04:45:55.702Z", "trial_start": "2023-10-12T10:17:29.274Z", "trial_end": "2023-12-18T04:45:55.702Z", "cancel_at_period_end": true, "canceled_at": null, "started_at": "2023-07-21T07:29:31.409Z", "ends_at": "2025-08-05T11:38:46.213Z", "ended_at": "2024-09-05T04:27:23.768Z", "pause_at_period_end": false, "paused_at": "2025-10-11T10:49:29.519Z", "resumes_at": "2024-04-08T09:06:19.384Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": "", "metadata": {"key": false}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-08-17T18:35:42.212Z", "modified_at": "2025-01-01T23:32:39.659Z", "metadata": {"key": 7303.56, "key1": 796236}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": null, "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-11-05T10:18:40.300Z", "modified_at": "2024-04-23T18:24:43.408Z", "trial_interval": "week", "trial_interval_count": 145614, "name": "", "description": "athwart fail wound oh nor boohoo reasoning against since", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 493639, "meter_interval": null, "meter_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 722592}, "prices": [], "benefits": [{"id": "", "created_at": "2025-05-21T10:49:13.924Z", "modified_at": null, "type": "license_keys", "description": "chime softly outgoing gray", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {}, "visibility": "draft", "properties": {"prefix": "", "expires": {"ttl": 18256, "timeframe": "day"}, "activations": {"limit": 776442, "enable_customer_admin": false}, "limit_usage": 89994}, "visibility_configurable": true}, {"id": "", "created_at": "2023-02-11T00:08:34.711Z", "modified_at": "2024-10-21T08:00:16.195Z", "type": "github_repository", "description": "as draft noon kettledrum alligator", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 331688, "key1": 10869, "key2": true}, "visibility": "private", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}, "visibility_configurable": true}, {"id": "", "created_at": "2023-02-11T00:08:34.711Z", "modified_at": "2024-10-21T08:00:16.195Z", "type": "github_repository", "description": "as draft noon kettledrum alligator", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 331688, "key1": 10869, "key2": true}, "visibility": "public", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 980211, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-01T03:11:19.881Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-05T22:00:20.852Z", "size_readable": "", "public_url": "https://shabby-integer.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 980211, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-01T03:11:19.881Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-05T22:00:20.852Z", "size_readable": "", "public_url": "https://shabby-integer.org"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libexec", "mime_type": "", "size": 980211, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-01T03:11:19.881Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-05-05T22:00:20.852Z", "size_readable": "", "public_url": "https://shabby-integer.org"}], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-10-09T08:41:16.911Z", "modified_at": "2025-08-16T07:28:28.929Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-04-06T16:40:05.860Z", "ends_at": "2023-01-06T22:21:47.288Z", "max_redemptions": null, "max_redemptions_per_customer": 493639, "redemptions_count": 313365, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-06-25T00:41:05.678Z", "modified_at": "2025-09-12T00:30:21.037Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 89762, "maximum_amount": null, "preset_amount": null, "legacy": true}, {"created_at": "2024-09-14T15:19:58.463Z", "modified_at": "2024-07-30T05:01:30.550Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 720352, "maximum_amount": 761885, "preset_amount": 542678, "legacy": true}, {"created_at": "2025-09-14T15:19:58.463Z", "modified_at": "2025-07-30T05:01:30.550Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 514935, "maximum_amount": 277670, "preset_amount": 783985, "legacy": true}], "meters": [], "pending_update": {"created_at": "2024-06-08T14:14:48.363Z", "modified_at": null, "id": "", "applies_at": "2024-02-09T14:19:47.352Z", "product_id": null, "seats": 183679}}} responses: "200": application/json: "" @@ -2322,7 +2341,7 @@ examples: _endpointsubscription_canceled_post: speakeasy-default-endpointsubscription-canceled-post: requestBody: - application/json: {"type": "subscription.canceled", "timestamp": "2025-02-09T04:39:02.332Z", "data": {"created_at": "2025-02-09T04:39:02.332Z", "modified_at": "2023-04-18T10:38:03.481Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 702732, "status": "active", "current_period_start": "2023-06-17T04:15:56.819Z", "current_period_end": "2023-06-02T15:48:16.857Z", "current_meter_period_start": "2026-04-09T17:46:08.645Z", "current_meter_period_end": null, "trial_start": "2025-04-09T17:46:08.645Z", "trial_end": null, "cancel_at_period_end": false, "canceled_at": "2024-01-07T18:54:45.602Z", "started_at": "2025-02-23T12:23:49.579Z", "ends_at": "2023-11-16T08:24:59.166Z", "ended_at": "2023-07-21T16:25:14.433Z", "pause_at_period_end": true, "paused_at": "2024-09-16T03:46:49.566Z", "resumes_at": "2024-06-16T04:15:56.819Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": null, "customer_cancellation_reason": null, "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-10-25T05:52:42.846Z", "modified_at": "2023-09-20T10:20:50.540Z", "metadata": {"key": true}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-07-13T08:26:56.650Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-06-11T17:21:10.206Z", "modified_at": "2025-03-18T13:26:34.470Z", "trial_interval": "year", "trial_interval_count": 538272, "name": "", "description": "unimpressively stiffen promptly", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 98032, "meter_interval": "day", "meter_interval_count": 846866, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": true}, "prices": [{"created_at": "2023-04-18T10:38:03.481Z", "modified_at": "2025-08-08T10:15:56.533Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 739654, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 715800}}, {"created_at": "2025-04-18T11:08:34.147Z", "modified_at": "2023-05-05T03:28:24.281Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 25751, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-21T18:00:22.332Z", "modified_at": "2023-05-12T19:14:12.206Z", "type": "downloadables", "description": "ostrich smog zowie loyally naturally noisily castanet pace deliberately", "selectable": false, "deletable": true, "is_deleted": false, "organization_id": "", "metadata": {}, "visibility": "public", "properties": {"archived": {"key": true, "key1": true}, "files": []}, "visibility_configurable": false}, {"id": "", "created_at": "2025-12-18T22:12:17.302Z", "modified_at": "2024-10-10T09:48:09.804Z", "type": "custom", "description": "knavishly goat programme intrigue elegantly fooey decisive", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": "", "metadata": {"key": false, "key1": 922.01, "key2": 5307.16}, "visibility": "draft", "properties": {"note": ""}, "visibility_configurable": true}, {"id": "", "created_at": "2024-06-11T13:23:03.299Z", "modified_at": "2024-10-18T20:00:03.185Z", "type": "meter_credit", "description": "at like through stale yum corny", "selectable": true, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": false}, "visibility": "public", "properties": {"units": 743161, "rollover": false, "meter_id": ""}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 91402, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-02-20T02:39:11.781Z", "size_readable": "", "public_url": "https://young-obesity.org"}, {"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 91402, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-02-20T02:39:11.781Z", "size_readable": "", "public_url": "https://young-obesity.org"}], "attached_custom_fields": []}, "discount": {"duration": "once", "type": "fixed", "basis_points": 942713, "created_at": "2025-05-02T10:03:23.149Z", "modified_at": "2024-03-07T17:30:21.663Z", "id": "", "metadata": {"key": "", "key1": false, "key2": ""}, "name": "", "code": "", "starts_at": "2025-11-05T08:42:03.906Z", "ends_at": null, "max_redemptions": 510938, "redemptions_count": 760335, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-08-20T02:19:30.433Z", "modified_at": "2024-01-03T22:38:10.292Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "day", "minimum_amount": 271209, "maximum_amount": 239444, "preset_amount": 972363, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-08-12T22:41:41.907Z", "modified_at": "2024-08-03T03:14:29.655Z", "id": "", "applies_at": "2024-06-01T15:48:16.857Z", "product_id": "", "seats": 339222}}} + application/json: {"type": "subscription.canceled", "timestamp": "2025-02-09T04:39:02.332Z", "data": {"created_at": "2025-02-09T04:39:02.332Z", "modified_at": "2023-04-18T10:38:03.481Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 702732, "status": "active", "current_period_start": "2023-06-17T04:15:56.819Z", "current_period_end": "2023-06-02T15:48:16.857Z", "current_meter_period_start": "2026-04-09T17:46:08.645Z", "current_meter_period_end": null, "trial_start": "2025-04-09T17:46:08.645Z", "trial_end": null, "cancel_at_period_end": false, "canceled_at": "2024-01-07T18:54:45.602Z", "started_at": "2025-02-23T12:23:49.579Z", "ends_at": "2023-11-16T08:24:59.166Z", "ended_at": "2023-07-21T16:25:14.433Z", "pause_at_period_end": true, "paused_at": "2024-09-16T03:46:49.566Z", "resumes_at": "2024-06-16T04:15:56.819Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": null, "customer_cancellation_reason": null, "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-10-25T05:52:42.846Z", "modified_at": "2023-09-20T10:20:50.540Z", "metadata": {"key": true}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-07-13T08:26:56.650Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-06-11T17:21:10.206Z", "modified_at": "2025-03-18T13:26:34.470Z", "trial_interval": "year", "trial_interval_count": 538272, "name": "", "description": "unimpressively stiffen promptly", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 98032, "meter_interval": "day", "meter_interval_count": 846866, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": true}, "prices": [{"created_at": "2023-04-18T10:38:03.481Z", "modified_at": "2025-08-08T10:15:56.533Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 739654, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 715800}}, {"created_at": "2025-04-18T11:08:34.147Z", "modified_at": "2023-05-05T03:28:24.281Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 25751, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-09-21T18:00:22.332Z", "modified_at": "2023-05-12T19:14:12.206Z", "type": "downloadables", "description": "ostrich smog zowie loyally naturally noisily castanet pace deliberately", "selectable": false, "deletable": true, "is_deleted": false, "organization_id": "", "metadata": {}, "visibility": "public", "properties": {"archived": {"key": true, "key1": true}, "files": []}, "visibility_configurable": false}, {"id": "", "created_at": "2025-12-18T22:12:17.302Z", "modified_at": "2024-10-10T09:48:09.804Z", "type": "custom", "description": "knavishly goat programme intrigue elegantly fooey decisive", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": "", "metadata": {"key": false, "key1": 922.01, "key2": 5307.16}, "visibility": "draft", "properties": {"note": ""}, "visibility_configurable": true}, {"id": "", "created_at": "2024-06-11T13:23:03.299Z", "modified_at": "2024-10-18T20:00:03.185Z", "type": "meter_credit", "description": "at like through stale yum corny", "selectable": true, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": false}, "visibility": "public", "properties": {"units": 743161, "rollover": false, "meter_id": ""}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 91402, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-02-20T02:39:11.781Z", "size_readable": "", "public_url": "https://young-obesity.org"}, {"id": "", "organization_id": "", "name": "", "path": "/var/yp", "mime_type": "", "size": 91402, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-02-20T02:39:11.781Z", "size_readable": "", "public_url": "https://young-obesity.org"}], "attached_custom_fields": []}, "discount": {"duration": "once", "type": "fixed", "basis_points": 1000, "created_at": "2025-05-02T10:03:23.149Z", "modified_at": "2024-03-07T17:30:21.663Z", "id": "", "metadata": {"key": "", "key1": false, "key2": ""}, "name": "", "code": "", "starts_at": "2025-11-05T08:42:03.906Z", "ends_at": null, "max_redemptions": 510938, "max_redemptions_per_customer": 98032, "redemptions_count": 760335, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-08-20T02:19:30.433Z", "modified_at": "2024-01-03T22:38:10.292Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "day", "minimum_amount": 271209, "maximum_amount": 239444, "preset_amount": 972363, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-08-12T22:41:41.907Z", "modified_at": "2024-08-03T03:14:29.655Z", "id": "", "applies_at": "2024-06-01T15:48:16.857Z", "product_id": "", "seats": 339222}}} responses: "200": application/json: "" @@ -2331,7 +2350,7 @@ examples: _endpointsubscription_uncanceled_post: speakeasy-default-endpointsubscription-uncanceled-post: requestBody: - application/json: {"type": "subscription.uncanceled", "timestamp": "2023-02-06T17:25:10.106Z", "data": {"created_at": "2023-02-06T17:25:10.106Z", "modified_at": "2023-01-25T07:20:02.381Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 33508, "status": "canceled", "current_period_start": "2024-04-11T19:08:16.655Z", "current_period_end": "2023-08-23T01:03:59.107Z", "current_meter_period_start": null, "current_meter_period_end": "2024-01-25T07:20:02.381Z", "trial_start": null, "trial_end": "2023-01-25T07:20:02.381Z", "cancel_at_period_end": true, "canceled_at": "2024-11-16T02:01:16.824Z", "started_at": null, "ends_at": "2023-12-23T04:50:00.016Z", "ended_at": "2024-10-18T16:25:47.209Z", "pause_at_period_end": false, "paused_at": "2024-07-01T17:11:35.307Z", "resumes_at": "2025-04-11T19:08:16.655Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": null, "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-10-01T20:42:25.530Z", "modified_at": "2024-07-04T17:30:56.477Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-12-20T09:31:52.259Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-03-26T06:19:23.237Z", "modified_at": "2024-05-11T18:08:21.251Z", "trial_interval": "week", "trial_interval_count": 809387, "name": "", "description": "questioningly proliferate yet vanish mooch yowza hopeful", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 22176, "meter_interval": "day", "meter_interval_count": 554424, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-01-25T07:20:02.381Z", "modified_at": "2024-03-21T16:37:42.322Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 107066, "maximum_amount": 251812, "preset_amount": 625077, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-07-09T11:35:46.121Z", "modified_at": "2024-07-14T11:45:04.348Z", "type": "downloadables", "description": "esteemed aha arcade", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 549444}, "visibility": "draft", "properties": {"archived": {"key": false, "key1": false, "key2": true}, "files": [""]}, "visibility_configurable": true}, {"id": "", "created_at": "2023-07-17T10:10:30.145Z", "modified_at": "2024-02-22T01:39:19.437Z", "type": "github_repository", "description": "hmph frantically for into unfurl rapidly when", "selectable": false, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": ""}, "visibility": "draft", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}, "visibility_configurable": false}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/namedb", "mime_type": "", "size": 865781, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": "2024-09-05T02:35:48.322Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-06T10:04:39.843Z", "size_readable": "", "public_url": "https://normal-giant.org/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-05-08T20:53:14.936Z", "modified_at": "2025-08-01T19:32:49.347Z", "id": "", "metadata": {"key": 791230}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 887720, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-08T20:53:14.936Z", "modified_at": "2025-08-01T19:32:49.347Z", "id": "", "metadata": {"key": 791230}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 887720, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-08T20:53:14.936Z", "modified_at": "2025-08-01T19:32:49.347Z", "id": "", "metadata": {"key": 791230}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 887720, "required": false}]}, "discount": {"duration": "once", "type": "fixed", "basis_points": 408479, "created_at": "2023-03-14T02:37:49.424Z", "modified_at": "2025-12-23T02:41:08.695Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-07-07T16:21:42.534Z", "ends_at": "2023-05-08T21:16:10.476Z", "max_redemptions": 431440, "redemptions_count": 127195, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-12-23T04:50:00.016Z", "modified_at": "2024-10-18T16:25:47.209Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 138645, "maximum_amount": 95755, "preset_amount": 417130, "legacy": true}], "meters": [{"created_at": "2025-11-08T06:13:24.540Z", "modified_at": "2023-05-26T16:36:35.734Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 479423, "key1": 327992}, "created_at": "2025-01-03T20:59:19.837Z", "modified_at": "2024-09-23T23:32:35.223Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-11-08T06:13:24.540Z", "modified_at": "2023-05-26T16:36:35.734Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 479423, "key1": 327992}, "created_at": "2025-01-03T20:59:19.837Z", "modified_at": "2024-09-23T23:32:35.223Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-11-08T06:13:24.540Z", "modified_at": "2023-05-26T16:36:35.734Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 479423, "key1": 327992}, "created_at": "2025-01-03T20:59:19.837Z", "modified_at": "2024-09-23T23:32:35.223Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-03-21T16:37:42.322Z", "modified_at": "2026-06-06T02:06:49.326Z", "id": "", "applies_at": "2025-04-11T19:08:16.655Z", "product_id": "", "seats": 251812}}} + application/json: {"type": "subscription.uncanceled", "timestamp": "2023-02-06T17:25:10.106Z", "data": {"created_at": "2023-02-06T17:25:10.106Z", "modified_at": "2023-01-25T07:20:02.381Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 33508, "status": "canceled", "current_period_start": "2024-04-11T19:08:16.655Z", "current_period_end": "2023-08-23T01:03:59.107Z", "current_meter_period_start": null, "current_meter_period_end": "2024-01-25T07:20:02.381Z", "trial_start": null, "trial_end": "2023-01-25T07:20:02.381Z", "cancel_at_period_end": true, "canceled_at": "2024-11-16T02:01:16.824Z", "started_at": null, "ends_at": "2023-12-23T04:50:00.016Z", "ended_at": "2024-10-18T16:25:47.209Z", "pause_at_period_end": false, "paused_at": "2024-07-01T17:11:35.307Z", "resumes_at": "2025-04-11T19:08:16.655Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": null, "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-10-01T20:42:25.530Z", "modified_at": "2024-07-04T17:30:56.477Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-12-20T09:31:52.259Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-03-26T06:19:23.237Z", "modified_at": "2024-05-11T18:08:21.251Z", "trial_interval": "week", "trial_interval_count": 809387, "name": "", "description": "questioningly proliferate yet vanish mooch yowza hopeful", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 22176, "meter_interval": "day", "meter_interval_count": 554424, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-01-25T07:20:02.381Z", "modified_at": "2024-03-21T16:37:42.322Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 107066, "maximum_amount": 251812, "preset_amount": 625077, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-07-09T11:35:46.121Z", "modified_at": "2024-07-14T11:45:04.348Z", "type": "downloadables", "description": "esteemed aha arcade", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 549444}, "visibility": "draft", "properties": {"archived": {"key": false, "key1": false, "key2": true}, "files": [""]}, "visibility_configurable": true}, {"id": "", "created_at": "2023-07-17T10:10:30.145Z", "modified_at": "2024-02-22T01:39:19.437Z", "type": "github_repository", "description": "hmph frantically for into unfurl rapidly when", "selectable": false, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": ""}, "visibility": "draft", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "admin"}, "visibility_configurable": false}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/namedb", "mime_type": "", "size": 865781, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": "2024-09-05T02:35:48.322Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-06T10:04:39.843Z", "size_readable": "", "public_url": "https://normal-giant.org/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-05-08T20:53:14.936Z", "modified_at": "2025-08-01T19:32:49.347Z", "id": "", "metadata": {"key": 791230}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 887720, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-08T20:53:14.936Z", "modified_at": "2025-08-01T19:32:49.347Z", "id": "", "metadata": {"key": 791230}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 887720, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-05-08T20:53:14.936Z", "modified_at": "2025-08-01T19:32:49.347Z", "id": "", "metadata": {"key": 791230}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 887720, "required": false}]}, "discount": {"duration": "once", "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-03-14T02:37:49.424Z", "modified_at": "2025-12-23T02:41:08.695Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-07-07T16:21:42.534Z", "ends_at": "2023-05-08T21:16:10.476Z", "max_redemptions": 431440, "max_redemptions_per_customer": 22176, "redemptions_count": 127195, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-12-23T04:50:00.016Z", "modified_at": "2024-10-18T16:25:47.209Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 138645, "maximum_amount": 95755, "preset_amount": 417130, "legacy": true}], "meters": [{"created_at": "2025-11-08T06:13:24.540Z", "modified_at": "2023-05-26T16:36:35.734Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 479423, "key1": 327992}, "created_at": "2025-01-03T20:59:19.837Z", "modified_at": "2024-09-23T23:32:35.223Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-11-08T06:13:24.540Z", "modified_at": "2023-05-26T16:36:35.734Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 479423, "key1": 327992}, "created_at": "2025-01-03T20:59:19.837Z", "modified_at": "2024-09-23T23:32:35.223Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-11-08T06:13:24.540Z", "modified_at": "2023-05-26T16:36:35.734Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": 479423, "key1": 327992}, "created_at": "2025-01-03T20:59:19.837Z", "modified_at": "2024-09-23T23:32:35.223Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-03-21T16:37:42.322Z", "modified_at": "2026-06-06T02:06:49.326Z", "id": "", "applies_at": "2025-04-11T19:08:16.655Z", "product_id": "", "seats": 251812}}} responses: "200": application/json: "" @@ -2385,7 +2404,7 @@ examples: _endpointorganization_updated_post: speakeasy-default-endpointorganization-updated-post: requestBody: - application/json: {"type": "organization.updated", "timestamp": "2025-08-19T15:02:44.139Z", "data": {"created_at": "2025-08-19T15:02:44.139Z", "modified_at": "2025-08-23T00:45:50.780Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": null, "proration_behavior": "prorate", "allow_customer_updates": false, "email": "Lemuel44@gmail.com", "website": "", "socials": [{"platform": "tiktok", "url": "https://grizzled-patroller.info/"}, {"platform": "tiktok", "url": "https://grizzled-patroller.info/"}], "status": "active", "details_submitted_at": null, "sso_enforced": false, "default_presentment_currency": "", "default_tax_behavior": "exclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "proration_behavior": "invoice", "benefit_revocation_grace_period": 877397, "prevent_trial_abuse": false, "allow_customer_updates": false}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_cycled_after_trial": false, "subscription_past_due": true, "subscription_paused": false, "subscription_resumed": false, "subscription_renewal_reminder": false, "subscription_revoked": true, "subscription_trial_conversion_reminder": false, "subscription_uncanceled": false, "subscription_updated": true}, "customer_portal_settings": {"usage": {"show": true}, "subscription": {"update_seats": true, "update_plan": true}}, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": false, "subscription_renewals": false, "payouts": false, "refunds": true, "api_access": true, "dashboard_access": true}}} + application/json: {"type": "organization.updated", "timestamp": "2025-08-19T15:02:44.139Z", "data": {"created_at": "2025-08-19T15:02:44.139Z", "modified_at": "2025-08-23T00:45:50.780Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": null, "proration_behavior": "prorate", "allow_customer_updates": false, "email": "Lemuel44@gmail.com", "website": "", "socials": [{"platform": "tiktok", "url": "https://grizzled-patroller.info/"}, {"platform": "tiktok", "url": "https://grizzled-patroller.info/"}], "status": "active", "details_submitted_at": null, "onboarding_resubmission_requested_at": "2026-05-07T21:24:48.059Z", "sso_enforced": false, "default_presentment_currency": "", "default_tax_behavior": "exclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "proration_behavior": "invoice", "benefit_revocation_grace_period": 877397, "prevent_trial_abuse": false, "allow_customer_updates": false}, "customer_email_settings": {"order_confirmation": false, "payment_method_expiration_reminder": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": true, "subscription_cycled_after_trial": false, "subscription_past_due": true, "subscription_paused": false, "subscription_resumed": false, "subscription_renewal_reminder": false, "subscription_revoked": true, "subscription_trial_conversion_reminder": false, "subscription_uncanceled": false, "subscription_updated": true}, "customer_portal_settings": {"usage": {"show": true}, "subscription": {"update_seats": true, "update_plan": true}}, "embed_hosts": [], "embed_hosts_enforced": true, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": false, "subscription_renewals": false, "payouts": false, "refunds": true, "api_access": true, "dashboard_access": true}}} responses: "200": application/json: "" @@ -2462,7 +2481,7 @@ examples: application/json: {"name": "", "slug": ""} responses: "201": - application/json: {"created_at": "2024-12-19T02:20:41.368Z", "modified_at": "2024-07-08T16:38:56.712Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://menacing-draft.net", "proration_behavior": "prorate", "allow_customer_updates": false, "email": "Ursula99@yahoo.com", "website": "", "socials": [{"platform": "facebook", "url": "https://likable-commodity.biz/"}], "status": "denied", "details_submitted_at": "2024-04-04T18:10:47.254Z", "sso_enforced": false, "default_presentment_currency": "", "default_tax_behavior": "inclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "proration_behavior": "prorate", "benefit_revocation_grace_period": 655199, "prevent_trial_abuse": false, "allow_customer_updates": true}, "customer_email_settings": {"order_confirmation": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_cycled_after_trial": false, "subscription_past_due": false, "subscription_paused": false, "subscription_resumed": false, "subscription_renewal_reminder": false, "subscription_revoked": false, "subscription_trial_conversion_reminder": false, "subscription_uncanceled": true, "subscription_updated": false}, "customer_portal_settings": {"usage": {"show": false}, "subscription": {"update_seats": false, "update_plan": false}}, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": false, "subscription_renewals": false, "payouts": false, "refunds": false, "api_access": false, "dashboard_access": false}} + application/json: {"created_at": "2024-12-19T02:20:41.368Z", "modified_at": "2024-07-08T16:38:56.712Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://menacing-draft.net", "proration_behavior": "prorate", "allow_customer_updates": false, "email": "Ursula99@yahoo.com", "website": "", "socials": [{"platform": "facebook", "url": "https://likable-commodity.biz/"}], "status": "denied", "details_submitted_at": "2024-04-04T18:10:47.254Z", "onboarding_resubmission_requested_at": "2026-03-11T17:26:29.230Z", "sso_enforced": false, "default_presentment_currency": "", "default_tax_behavior": "inclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "proration_behavior": "prorate", "benefit_revocation_grace_period": 655199, "prevent_trial_abuse": false, "allow_customer_updates": true}, "customer_email_settings": {"order_confirmation": false, "payment_method_expiration_reminder": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_cycled_after_trial": false, "subscription_past_due": false, "subscription_paused": false, "subscription_resumed": false, "subscription_renewal_reminder": false, "subscription_revoked": false, "subscription_trial_conversion_reminder": false, "subscription_uncanceled": true, "subscription_updated": false}, "customer_portal_settings": {"usage": {"show": false}, "subscription": {"update_seats": false, "update_plan": false}}, "embed_hosts": ["", "", ""], "embed_hosts_enforced": false, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": false, "subscription_renewals": false, "payouts": false, "refunds": false, "api_access": false, "dashboard_access": false}} "422": application/json: {} "403": @@ -2474,7 +2493,7 @@ examples: id: "1dbfc517-0bbf-4301-9ba8-555ca42b9737" responses: "200": - application/json: {"created_at": "2024-06-18T23:12:24.609Z", "modified_at": "2023-11-22T07:49:02.109Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://far-off-resource.com", "proration_behavior": "invoice", "allow_customer_updates": true, "email": "Dejon.Jakubowski-Bashirian6@gmail.com", "website": null, "socials": [{"platform": "other", "url": "https://tedious-habit.com"}, {"platform": "other", "url": "https://tedious-habit.com"}, {"platform": "other", "url": "https://tedious-habit.com"}], "status": "denied", "details_submitted_at": "2023-07-16T01:59:28.607Z", "sso_enforced": true, "default_presentment_currency": "", "default_tax_behavior": "inclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "proration_behavior": "prorate", "benefit_revocation_grace_period": 488109, "prevent_trial_abuse": false, "allow_customer_updates": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": false, "subscription_cycled_after_trial": true, "subscription_past_due": false, "subscription_paused": true, "subscription_resumed": true, "subscription_renewal_reminder": true, "subscription_revoked": true, "subscription_trial_conversion_reminder": true, "subscription_uncanceled": false, "subscription_updated": true}, "customer_portal_settings": {"usage": {"show": false}, "subscription": {"update_seats": true, "update_plan": false}}, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": true, "subscription_renewals": true, "payouts": false, "refunds": false, "api_access": true, "dashboard_access": false}} + application/json: {"created_at": "2024-06-18T23:12:24.609Z", "modified_at": "2023-11-22T07:49:02.109Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://far-off-resource.com", "proration_behavior": "invoice", "allow_customer_updates": true, "email": "Dejon.Jakubowski-Bashirian6@gmail.com", "website": null, "socials": [{"platform": "other", "url": "https://tedious-habit.com"}, {"platform": "other", "url": "https://tedious-habit.com"}, {"platform": "other", "url": "https://tedious-habit.com"}], "status": "denied", "details_submitted_at": "2023-07-16T01:59:28.607Z", "onboarding_resubmission_requested_at": "2025-04-06T22:00:49.347Z", "sso_enforced": true, "default_presentment_currency": "", "default_tax_behavior": "inclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "proration_behavior": "prorate", "benefit_revocation_grace_period": 488109, "prevent_trial_abuse": false, "allow_customer_updates": false}, "customer_email_settings": {"order_confirmation": true, "payment_method_expiration_reminder": true, "subscription_cancellation": true, "subscription_confirmation": true, "subscription_cycled": false, "subscription_cycled_after_trial": true, "subscription_past_due": false, "subscription_paused": true, "subscription_resumed": true, "subscription_renewal_reminder": true, "subscription_revoked": true, "subscription_trial_conversion_reminder": true, "subscription_uncanceled": false, "subscription_updated": true}, "customer_portal_settings": {"usage": {"show": false}, "subscription": {"update_seats": true, "update_plan": false}}, "embed_hosts": ["", "", ""], "embed_hosts_enforced": false, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": true, "subscription_renewals": true, "payouts": false, "refunds": false, "api_access": true, "dashboard_access": false}} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2485,10 +2504,10 @@ examples: path: id: "1dbfc517-0bbf-4301-9ba8-555ca42b9737" requestBody: - application/json: {} + application/json: {"embed_hosts": ["example.com", "*.example.com", "localhost:3000"]} responses: "200": - application/json: {"created_at": "2024-01-10T12:09:47.665Z", "modified_at": "2025-07-12T14:18:16.022Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://juvenile-deed.name/", "proration_behavior": "invoice", "allow_customer_updates": false, "email": "Stanford.Streich62@gmail.com", "website": "", "socials": [{"platform": "github", "url": "https://violent-ownership.org/"}], "status": "snoozed", "details_submitted_at": "2024-05-08T13:53:13.516Z", "sso_enforced": true, "default_presentment_currency": "", "default_tax_behavior": "inclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "proration_behavior": "invoice", "benefit_revocation_grace_period": 341703, "prevent_trial_abuse": false, "allow_customer_updates": false}, "customer_email_settings": {"order_confirmation": true, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_cycled_after_trial": true, "subscription_past_due": true, "subscription_paused": false, "subscription_resumed": false, "subscription_renewal_reminder": false, "subscription_revoked": true, "subscription_trial_conversion_reminder": false, "subscription_uncanceled": true, "subscription_updated": false}, "customer_portal_settings": {"usage": {"show": false}, "subscription": {"update_seats": true, "update_plan": true}}, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": false, "subscription_renewals": false, "payouts": false, "refunds": true, "api_access": true, "dashboard_access": true}} + application/json: {"created_at": "2024-01-10T12:09:47.665Z", "modified_at": "2025-07-12T14:18:16.022Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://juvenile-deed.name/", "proration_behavior": "invoice", "allow_customer_updates": false, "email": "Stanford.Streich62@gmail.com", "website": "", "socials": [{"platform": "github", "url": "https://violent-ownership.org/"}], "status": "snoozed", "details_submitted_at": "2024-05-08T13:53:13.516Z", "onboarding_resubmission_requested_at": "2026-05-23T11:37:55.182Z", "sso_enforced": true, "default_presentment_currency": "", "default_tax_behavior": "inclusive", "feature_settings": {"issue_funding_enabled": false, "seat_based_pricing_enabled": false, "wallets_enabled": false, "member_model_enabled": false, "checkout_localization_enabled": false, "reset_proration_behavior_enabled": false, "off_session_charges_enabled": false, "slack_benefit_enabled": false, "preview_access_enabled": false, "disputes_enabled": false, "sso_enabled": false, "compass_enabled": false, "merchant_migration_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "proration_behavior": "invoice", "benefit_revocation_grace_period": 341703, "prevent_trial_abuse": false, "allow_customer_updates": false}, "customer_email_settings": {"order_confirmation": true, "payment_method_expiration_reminder": false, "subscription_cancellation": false, "subscription_confirmation": false, "subscription_cycled": false, "subscription_cycled_after_trial": true, "subscription_past_due": true, "subscription_paused": false, "subscription_resumed": false, "subscription_renewal_reminder": false, "subscription_revoked": true, "subscription_trial_conversion_reminder": false, "subscription_uncanceled": true, "subscription_updated": false}, "customer_portal_settings": {"usage": {"show": false}, "subscription": {"update_seats": true, "update_plan": true}}, "embed_hosts": ["", ""], "embed_hosts_enforced": true, "account_id": "", "payout_account_id": "", "capabilities": {"checkout_payments": false, "subscription_renewals": false, "payouts": false, "refunds": true, "api_access": true, "dashboard_access": true}} "403": application/json: {"error": "NotPermitted", "detail": ""} "404": @@ -2506,7 +2525,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2024-03-26T10:08:00.196Z", "id": "", "amount": 492124, "currency": "Rial Omani", "recurring_interval": "year", "recurring_interval_count": 742797, "status": "canceled", "current_period_start": "2025-09-23T15:13:06.761Z", "current_period_end": "2023-09-22T22:50:40.236Z", "current_meter_period_start": "2025-10-01T10:10:26.018Z", "current_meter_period_end": "2024-12-04T04:37:49.573Z", "trial_start": "2024-10-01T10:10:26.018Z", "trial_end": "2023-12-05T04:37:49.573Z", "cancel_at_period_end": true, "canceled_at": "2024-06-12T10:43:36.497Z", "started_at": "2025-03-14T07:47:35.696Z", "ends_at": "2025-07-03T16:46:46.137Z", "ended_at": "2024-03-20T05:19:38.088Z", "pause_at_period_end": true, "paused_at": "2025-12-06T12:43:23.208Z", "resumes_at": "2026-04-10T00:55:03.476Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": true, "key1": 142409}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-24T17:03:16.161Z", "modified_at": "2025-05-07T18:20:34.107Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-06-25T13:44:42.918Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2024-12-09T00:06:17.749Z", "modified_at": "2025-08-24T16:27:54.472Z", "trial_interval": "week", "trial_interval_count": 960252, "name": "", "description": "er making aha doing offset oh incidentally aside hm", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 616371, "meter_interval": "week", "meter_interval_count": 380876, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": false, "key1": false, "key2": false}, "prices": [], "benefits": [{"id": "", "created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-05-11T08:58:06.412Z", "type": "custom", "description": "border pink insert sonnet membership access made-up aha an", "selectable": false, "deletable": true, "is_deleted": false, "organization_id": "", "metadata": {"key": ""}, "visibility": "public", "properties": {"note": ""}, "visibility_configurable": false}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "private", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": true}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "private", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}]}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 1000, "created_at": "2024-12-04T04:37:49.573Z", "modified_at": "2025-06-23T08:50:11.993Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2024-09-21T22:50:40.236Z", "ends_at": "2026-05-03T04:33:34.190Z", "max_redemptions": 265915, "redemptions_count": 732961, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-10-18T10:38:39.548Z", "modified_at": "2026-10-31T10:08:37.629Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 671896, "legacy": true}, {"created_at": "2023-09-22T22:50:40.236Z", "modified_at": "2025-05-03T04:33:34.190Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 834580, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-06-23T08:50:11.993Z", "modified_at": "2026-11-18T10:27:58.317Z", "id": "", "applies_at": "2026-04-10T00:55:03.476Z", "product_id": "", "seats": 241744}}, {"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2024-03-26T10:08:00.196Z", "id": "", "amount": 492124, "currency": "Rial Omani", "recurring_interval": "year", "recurring_interval_count": 308570, "status": "canceled", "current_period_start": "2025-09-23T15:13:06.761Z", "current_period_end": "2023-09-22T22:50:40.236Z", "current_meter_period_start": "2024-09-15T08:48:24.676Z", "current_meter_period_end": "2026-01-21T03:46:39.937Z", "trial_start": "2025-09-23T15:13:06.761Z", "trial_end": "2023-09-22T22:50:40.236Z", "cancel_at_period_end": true, "canceled_at": "2024-06-12T10:43:36.497Z", "started_at": "2025-03-14T07:47:35.696Z", "ends_at": "2025-07-03T16:46:46.137Z", "ended_at": "2024-03-20T05:19:38.088Z", "pause_at_period_end": false, "paused_at": "2024-11-10T17:51:02.571Z", "resumes_at": "2024-08-23T17:03:16.161Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": true, "key1": 142409}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-24T17:03:16.161Z", "modified_at": "2025-05-07T18:20:34.107Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-06-25T13:44:42.918Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2024-12-09T00:06:17.749Z", "modified_at": "2025-08-24T16:27:54.472Z", "trial_interval": "year", "trial_interval_count": 265915, "name": "", "description": "er making aha doing offset oh incidentally aside hm", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 492124, "meter_interval": "year", "meter_interval_count": 50877, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": false, "key1": false, "key2": false}, "prices": [], "benefits": [{"id": "", "created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-05-11T08:58:06.412Z", "type": "custom", "description": "border pink insert sonnet membership access made-up aha an", "selectable": false, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": ""}, "visibility": "private", "properties": {"note": ""}, "visibility_configurable": false}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "public", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": false}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "draft", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 786734, "type": "fixed", "basis_points": 1000, "created_at": "2026-04-30T02:52:35.936Z", "modified_at": "2024-10-28T13:21:35.872Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2026-09-12T12:57:56.639Z", "ends_at": "2024-11-10T17:51:02.571Z", "max_redemptions": 215064, "redemptions_count": 776767, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-04-30T02:52:35.936Z", "modified_at": "2023-10-29T13:21:35.872Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 262272, "legacy": true}, {"created_at": "2023-08-24T17:03:16.161Z", "modified_at": "2025-05-07T18:20:34.107Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 827165, "maximum_amount": 310545, "preset_amount": 154160, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-06-23T08:50:11.993Z", "modified_at": "2026-11-18T10:27:58.317Z", "id": "", "applies_at": "2026-04-10T00:55:03.476Z", "product_id": "", "seats": 241744}}], "pagination": {"total_count": 947589, "max_page": 388476}} + application/json: {"items": [{"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2024-03-26T10:08:00.196Z", "id": "", "amount": 492124, "currency": "Rial Omani", "recurring_interval": "year", "recurring_interval_count": 742797, "status": "canceled", "current_period_start": "2025-09-23T15:13:06.761Z", "current_period_end": "2023-09-22T22:50:40.236Z", "current_meter_period_start": "2025-10-01T10:10:26.018Z", "current_meter_period_end": "2024-12-04T04:37:49.573Z", "trial_start": "2024-10-01T10:10:26.018Z", "trial_end": "2023-12-05T04:37:49.573Z", "cancel_at_period_end": true, "canceled_at": "2024-06-12T10:43:36.497Z", "started_at": "2025-03-14T07:47:35.696Z", "ends_at": "2025-07-03T16:46:46.137Z", "ended_at": "2024-03-20T05:19:38.088Z", "pause_at_period_end": true, "paused_at": "2025-12-06T12:43:23.208Z", "resumes_at": "2026-04-10T00:55:03.476Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": true, "key1": 142409}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-24T17:03:16.161Z", "modified_at": "2025-05-07T18:20:34.107Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-06-25T13:44:42.918Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2024-12-09T00:06:17.749Z", "modified_at": "2025-08-24T16:27:54.472Z", "trial_interval": "week", "trial_interval_count": 960252, "name": "", "description": "er making aha doing offset oh incidentally aside hm", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 616371, "meter_interval": "week", "meter_interval_count": 380876, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": false, "key1": false, "key2": false}, "prices": [], "benefits": [{"id": "", "created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-05-11T08:58:06.412Z", "type": "custom", "description": "border pink insert sonnet membership access made-up aha an", "selectable": false, "deletable": true, "is_deleted": false, "organization_id": "", "metadata": {"key": ""}, "visibility": "public", "properties": {"note": ""}, "visibility_configurable": false}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "private", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": true}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "private", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}]}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 1000, "created_at": "2024-12-04T04:37:49.573Z", "modified_at": "2025-06-23T08:50:11.993Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2024-09-21T22:50:40.236Z", "ends_at": "2026-05-03T04:33:34.190Z", "max_redemptions": 265915, "max_redemptions_per_customer": 943817, "redemptions_count": 834580, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-10-18T10:38:39.548Z", "modified_at": "2026-10-31T10:08:37.629Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 671896, "legacy": true}, {"created_at": "2023-09-22T22:50:40.236Z", "modified_at": "2025-05-03T04:33:34.190Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 834580, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-06-23T08:50:11.993Z", "modified_at": "2026-11-18T10:27:58.317Z", "id": "", "applies_at": "2026-04-10T00:55:03.476Z", "product_id": "", "seats": 241744}}, {"created_at": "2024-11-06T13:01:30.486Z", "modified_at": "2024-03-26T10:08:00.196Z", "id": "", "amount": 492124, "currency": "Rial Omani", "recurring_interval": "year", "recurring_interval_count": 308570, "status": "canceled", "current_period_start": "2025-09-23T15:13:06.761Z", "current_period_end": "2023-09-22T22:50:40.236Z", "current_meter_period_start": "2024-09-15T08:48:24.676Z", "current_meter_period_end": "2026-01-21T03:46:39.937Z", "trial_start": "2025-09-23T15:13:06.761Z", "trial_end": "2023-09-22T22:50:40.236Z", "cancel_at_period_end": true, "canceled_at": "2024-06-12T10:43:36.497Z", "started_at": "2025-03-14T07:47:35.696Z", "ends_at": "2025-07-03T16:46:46.137Z", "ended_at": "2024-03-20T05:19:38.088Z", "pause_at_period_end": false, "paused_at": "2024-11-10T17:51:02.571Z", "resumes_at": "2024-08-23T17:03:16.161Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": true, "key1": 142409}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-08-24T17:03:16.161Z", "modified_at": "2025-05-07T18:20:34.107Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-06-25T13:44:42.918Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"id": "", "created_at": "2024-12-09T00:06:17.749Z", "modified_at": "2025-08-24T16:27:54.472Z", "trial_interval": "year", "trial_interval_count": 265915, "name": "", "description": "er making aha doing offset oh incidentally aside hm", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 492124, "meter_interval": "year", "meter_interval_count": 50877, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": false, "key1": false, "key2": false}, "prices": [], "benefits": [{"id": "", "created_at": "2025-04-05T16:53:07.702Z", "modified_at": "2024-05-11T08:58:06.412Z", "type": "custom", "description": "border pink insert sonnet membership access made-up aha an", "selectable": false, "deletable": true, "is_deleted": true, "organization_id": "", "metadata": {"key": ""}, "visibility": "private", "properties": {"note": ""}, "visibility_configurable": false}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "public", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": false}, {"id": "", "created_at": "2025-05-20T14:55:17.223Z", "modified_at": "2025-04-09T10:13:23.999Z", "type": "github_repository", "description": "quarrelsome joyously diligently mmm joshingly sailor or jury annex", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 810447, "key1": 8377.26, "key2": 623085}, "visibility": "draft", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "push"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/include", "mime_type": "", "size": 39873, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-10-09T14:35:38.900Z", "version": null, "service": "product_media", "is_uploaded": false, "created_at": "2023-06-02T18:03:00.031Z", "size_readable": "", "public_url": "https://aggravating-graffiti.info/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-08-14T02:26:18.152Z", "modified_at": null, "id": "", "metadata": {"key": 496263, "key1": "", "key2": ""}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 561607, "required": false}]}, "discount": {"duration": "forever", "duration_in_months": 775657, "type": "percentage", "basis_points": 1000, "created_at": "2024-10-28T13:21:35.872Z", "modified_at": "2024-10-23T14:08:09.547Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2024-08-23T17:03:16.161Z", "ends_at": "2026-05-07T18:20:34.107Z", "max_redemptions": 50877, "max_redemptions_per_customer": 827165, "redemptions_count": 645990, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-04-30T02:52:35.936Z", "modified_at": "2023-10-29T13:21:35.872Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 262272, "legacy": true}, {"created_at": "2023-08-24T17:03:16.161Z", "modified_at": "2025-05-07T18:20:34.107Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 827165, "maximum_amount": 310545, "preset_amount": 154160, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-06-23T08:50:11.993Z", "modified_at": "2026-11-18T10:27:58.317Z", "id": "", "applies_at": "2026-04-10T00:55:03.476Z", "product_id": "", "seats": 241744}}], "pagination": {"total_count": 947589, "max_page": 388476}} "422": application/json: {} subscriptions:export: @@ -2527,7 +2546,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-10-24T15:26:40.431Z", "modified_at": "2023-07-28T23:00:02.724Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 270660, "status": "active", "current_period_start": "2025-04-05T21:01:12.454Z", "current_period_end": "2024-10-23T15:26:40.431Z", "current_meter_period_start": "2025-06-09T21:26:52.968Z", "current_meter_period_end": "2026-09-03T08:50:28.234Z", "trial_start": "2024-06-09T21:26:52.968Z", "trial_end": "2025-09-03T08:50:28.234Z", "cancel_at_period_end": true, "canceled_at": "2025-05-09T12:42:07.453Z", "started_at": "2025-12-16T12:13:32.171Z", "ends_at": "2025-07-23T18:45:11.258Z", "ended_at": null, "pause_at_period_end": false, "paused_at": "2025-08-08T06:50:28.568Z", "resumes_at": "2024-01-20T10:40:24.645Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": null, "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-06-01T00:25:19.556Z", "modified_at": null, "metadata": {"key": 8941.51, "key1": 393.1}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-03-15T13:55:38.252Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-04-22T11:34:07.174Z", "modified_at": "2024-01-28T05:15:18.595Z", "trial_interval": "year", "trial_interval_count": 753537, "name": "", "description": "solder crossly except yet", "visibility": "draft", "recurring_interval": null, "recurring_interval_count": 190655, "meter_interval": "week", "meter_interval_count": 640239, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-07-28T23:00:02.724Z", "modified_at": "2025-03-22T08:23:39.797Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 753537, "legacy": true}, {"created_at": "2023-10-17T03:10:19.145Z", "modified_at": "2024-12-02T16:50:43.309Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 852903, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 768823, "storage_version": "", "checksum_etag": null, "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-22T03:27:39.662Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-06-30T04:51:26.931Z", "size_readable": "", "public_url": "https://gigantic-spring.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 768823, "storage_version": "", "checksum_etag": null, "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-22T03:27:39.662Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-06-30T04:51:26.931Z", "size_readable": "", "public_url": "https://gigantic-spring.name/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-20T15:07:05.822Z", "modified_at": "2025-07-11T03:45:02.430Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 61252, "required": true}]}, "discount": {"duration": "once", "duration_in_months": 342177, "type": "fixed", "amount": 861306, "currency": "CFA Franc BCEAO", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-04-20T11:08:19.373Z", "modified_at": "2023-06-26T04:56:35.602Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-05-19T07:23:10.203Z", "ends_at": null, "max_redemptions": 381050, "redemptions_count": 60295, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [], "pending_update": {"created_at": "2026-09-23T23:03:44.833Z", "modified_at": "2026-04-05T21:01:12.454Z", "id": "", "applies_at": "2024-01-20T10:40:24.645Z", "product_id": "", "seats": 784242}} + application/json: {"created_at": "2023-10-24T15:26:40.431Z", "modified_at": "2023-07-28T23:00:02.724Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 270660, "status": "active", "current_period_start": "2025-04-05T21:01:12.454Z", "current_period_end": "2024-10-23T15:26:40.431Z", "current_meter_period_start": "2025-06-09T21:26:52.968Z", "current_meter_period_end": "2026-09-03T08:50:28.234Z", "trial_start": "2024-06-09T21:26:52.968Z", "trial_end": "2025-09-03T08:50:28.234Z", "cancel_at_period_end": true, "canceled_at": "2025-05-09T12:42:07.453Z", "started_at": "2025-12-16T12:13:32.171Z", "ends_at": "2025-07-23T18:45:11.258Z", "ended_at": null, "pause_at_period_end": false, "paused_at": "2025-08-08T06:50:28.568Z", "resumes_at": "2024-01-20T10:40:24.645Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": null, "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-06-01T00:25:19.556Z", "modified_at": null, "metadata": {"key": 8941.51, "key1": 393.1}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-03-15T13:55:38.252Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-04-22T11:34:07.174Z", "modified_at": "2024-01-28T05:15:18.595Z", "trial_interval": "year", "trial_interval_count": 753537, "name": "", "description": "solder crossly except yet", "visibility": "draft", "recurring_interval": null, "recurring_interval_count": 190655, "meter_interval": "week", "meter_interval_count": 640239, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2023-07-28T23:00:02.724Z", "modified_at": "2025-03-22T08:23:39.797Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 753537, "legacy": true}, {"created_at": "2023-10-17T03:10:19.145Z", "modified_at": "2024-12-02T16:50:43.309Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 852903, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 768823, "storage_version": "", "checksum_etag": null, "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-22T03:27:39.662Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-06-30T04:51:26.931Z", "size_readable": "", "public_url": "https://gigantic-spring.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/mail", "mime_type": "", "size": 768823, "storage_version": "", "checksum_etag": null, "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-22T03:27:39.662Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-06-30T04:51:26.931Z", "size_readable": "", "public_url": "https://gigantic-spring.name/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-20T15:07:05.822Z", "modified_at": "2025-07-11T03:45:02.430Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 61252, "required": true}]}, "discount": {"duration": "once", "duration_in_months": 342177, "type": "fixed", "amount": 861306, "currency": "CFA Franc BCEAO", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-04-20T11:08:19.373Z", "modified_at": "2023-06-26T04:56:35.602Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-05-19T07:23:10.203Z", "ends_at": null, "max_redemptions": 381050, "max_redemptions_per_customer": 190655, "redemptions_count": 60295, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [], "pending_update": {"created_at": "2026-09-23T23:03:44.833Z", "modified_at": "2026-04-05T21:01:12.454Z", "id": "", "applies_at": "2024-01-20T10:40:24.645Z", "product_id": "", "seats": 784242}} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2541,7 +2560,7 @@ examples: application/json: {"product_id": ""} responses: "200": - application/json: {"created_at": "2023-12-04T14:44:14.136Z", "modified_at": "2023-05-01T08:54:32.351Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 297120, "status": "canceled", "current_period_start": "2024-10-27T19:14:25.505Z", "current_period_end": "2025-11-08T09:51:13.337Z", "current_meter_period_start": "2024-12-03T14:44:14.136Z", "current_meter_period_end": "2024-04-30T08:54:32.351Z", "trial_start": "2023-12-04T14:44:14.136Z", "trial_end": "2023-05-01T08:54:32.351Z", "cancel_at_period_end": false, "canceled_at": "2023-05-16T23:35:19.423Z", "started_at": "2023-11-02T08:09:24.083Z", "ends_at": "2025-04-12T21:04:51.008Z", "ended_at": "2023-12-10T00:14:34.013Z", "pause_at_period_end": true, "paused_at": "2026-10-16T09:14:58.817Z", "resumes_at": "2025-10-27T19:14:25.505Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": null, "metadata": {"key": 7847.22, "key1": true}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-12-28T05:26:01.320Z", "modified_at": "2023-07-10T03:03:20.499Z", "metadata": {"key": 6844.97}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-09T13:23:35.812Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-08-15T15:06:53.828Z", "modified_at": "2025-03-30T01:15:57.619Z", "trial_interval": "year", "trial_interval_count": 827417, "name": "", "description": null, "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 891943, "meter_interval": "year", "meter_interval_count": 838393, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": 6842.69}, "prices": [{"created_at": "2025-09-04T13:39:15.428Z", "modified_at": "2023-06-09T23:09:57.743Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 607483, "maximum_amount": 951105, "preset_amount": 838393, "legacy": true}], "benefits": [], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-08-28T05:31:36.934Z", "modified_at": "2025-01-12T20:56:10.352Z", "id": "", "metadata": {"key": "", "key1": true}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 610180, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-08-28T05:31:36.934Z", "modified_at": "2025-01-12T20:56:10.352Z", "id": "", "metadata": {"key": "", "key1": true}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 610180, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-08-28T05:31:36.934Z", "modified_at": "2025-01-12T20:56:10.352Z", "id": "", "metadata": {"key": "", "key1": true}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 610180, "required": true}]}, "discount": {"duration": "forever", "duration_in_months": 913858, "type": "percentage", "amount": 925698, "currency": "Pound Sterling", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-01-31T19:57:33.256Z", "modified_at": "2024-11-08T18:43:15.968Z", "id": "", "metadata": {"key": 2646.89}, "name": "", "code": "", "starts_at": "2025-02-01T12:19:14.944Z", "ends_at": "2023-04-23T06:57:38.844Z", "max_redemptions": 467745, "redemptions_count": 167766, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-11-02T08:09:24.083Z", "modified_at": "2025-04-12T21:04:51.008Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 203413, "legacy": true}, {"created_at": "2024-11-01T08:09:24.083Z", "modified_at": "2026-04-12T21:04:51.008Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 365268, "maximum_amount": null, "preset_amount": 740074, "legacy": true}, {"created_at": "2023-12-26T01:37:45.354Z", "modified_at": "2023-11-30T02:22:41.602Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 563833, "legacy": true}], "meters": [{"created_at": "2025-04-18T21:57:33.981Z", "modified_at": "2024-10-02T20:14:14.923Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2024-07-09T16:42:12.156Z", "modified_at": "2025-01-04T07:19:55.953Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "and", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-04-18T21:57:33.981Z", "modified_at": "2024-10-02T20:14:14.923Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2024-07-09T16:42:12.156Z", "modified_at": "2025-01-04T07:19:55.953Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "and", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-04-18T08:25:13.474Z", "modified_at": "2025-09-07T02:23:54.975Z", "id": "", "applies_at": "2026-07-07T21:05:18.372Z", "product_id": "", "seats": 278595}} + application/json: {"created_at": "2023-12-04T14:44:14.136Z", "modified_at": "2023-05-01T08:54:32.351Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 297120, "status": "canceled", "current_period_start": "2024-10-27T19:14:25.505Z", "current_period_end": "2025-11-08T09:51:13.337Z", "current_meter_period_start": "2024-12-03T14:44:14.136Z", "current_meter_period_end": "2024-04-30T08:54:32.351Z", "trial_start": "2023-12-04T14:44:14.136Z", "trial_end": "2023-05-01T08:54:32.351Z", "cancel_at_period_end": false, "canceled_at": "2023-05-16T23:35:19.423Z", "started_at": "2023-11-02T08:09:24.083Z", "ends_at": "2025-04-12T21:04:51.008Z", "ended_at": "2023-12-10T00:14:34.013Z", "pause_at_period_end": true, "paused_at": "2026-10-16T09:14:58.817Z", "resumes_at": "2025-10-27T19:14:25.505Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": null, "metadata": {"key": 7847.22, "key1": true}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-12-28T05:26:01.320Z", "modified_at": "2023-07-10T03:03:20.499Z", "metadata": {"key": 6844.97}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-09T13:23:35.812Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-08-15T15:06:53.828Z", "modified_at": "2025-03-30T01:15:57.619Z", "trial_interval": "year", "trial_interval_count": 827417, "name": "", "description": null, "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 891943, "meter_interval": "year", "meter_interval_count": 838393, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {"key": "", "key1": 6842.69}, "prices": [{"created_at": "2025-09-04T13:39:15.428Z", "modified_at": "2023-06-09T23:09:57.743Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 607483, "maximum_amount": 951105, "preset_amount": 838393, "legacy": true}], "benefits": [], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-08-28T05:31:36.934Z", "modified_at": "2025-01-12T20:56:10.352Z", "id": "", "metadata": {"key": "", "key1": true}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 610180, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-08-28T05:31:36.934Z", "modified_at": "2025-01-12T20:56:10.352Z", "id": "", "metadata": {"key": "", "key1": true}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 610180, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-08-28T05:31:36.934Z", "modified_at": "2025-01-12T20:56:10.352Z", "id": "", "metadata": {"key": "", "key1": true}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 610180, "required": true}]}, "discount": {"duration": "forever", "duration_in_months": 913858, "type": "percentage", "amount": 925698, "currency": "Pound Sterling", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-01-31T19:57:33.256Z", "modified_at": "2024-11-08T18:43:15.968Z", "id": "", "metadata": {"key": 2646.89}, "name": "", "code": "", "starts_at": "2025-02-01T12:19:14.944Z", "ends_at": "2023-04-23T06:57:38.844Z", "max_redemptions": 467745, "max_redemptions_per_customer": 891943, "redemptions_count": 167766, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-11-02T08:09:24.083Z", "modified_at": "2025-04-12T21:04:51.008Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 203413, "legacy": true}, {"created_at": "2024-11-01T08:09:24.083Z", "modified_at": "2026-04-12T21:04:51.008Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 365268, "maximum_amount": null, "preset_amount": 740074, "legacy": true}, {"created_at": "2023-12-26T01:37:45.354Z", "modified_at": "2023-11-30T02:22:41.602Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 563833, "legacy": true}], "meters": [{"created_at": "2025-04-18T21:57:33.981Z", "modified_at": "2024-10-02T20:14:14.923Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2024-07-09T16:42:12.156Z", "modified_at": "2025-01-04T07:19:55.953Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "and", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}, {"created_at": "2025-04-18T21:57:33.981Z", "modified_at": "2024-10-02T20:14:14.923Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2024-07-09T16:42:12.156Z", "modified_at": "2025-01-04T07:19:55.953Z", "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "and", "clauses": []}]}, "aggregation": {"func": "avg", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2025-04-18T08:25:13.474Z", "modified_at": "2025-09-07T02:23:54.975Z", "id": "", "applies_at": "2026-07-07T21:05:18.372Z", "product_id": "", "seats": 278595}} "403": application/json: {"error": "AlreadyCanceledSubscription", "detail": ""} "404": @@ -2559,7 +2578,7 @@ examples: id: "" responses: "200": - application/json: {"created_at": "2023-04-13T16:53:14.377Z", "modified_at": "2023-10-09T16:03:24.107Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 93707, "status": "past_due", "current_period_start": "2024-09-21T11:35:55.569Z", "current_period_end": "2025-03-29T10:01:06.463Z", "current_meter_period_start": null, "current_meter_period_end": "2024-10-08T16:03:24.107Z", "trial_start": null, "trial_end": "2023-10-09T16:03:24.107Z", "cancel_at_period_end": true, "canceled_at": "2025-09-12T16:35:27.128Z", "started_at": "2025-07-19T10:57:44.516Z", "ends_at": "2023-01-14T16:02:07.001Z", "ended_at": "2024-04-09T01:58:52.778Z", "pause_at_period_end": true, "paused_at": "2024-05-28T00:12:33.005Z", "resumes_at": "2025-09-21T11:35:55.569Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "metadata": {"key": "", "key1": false}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-02-06T08:24:11.064Z", "modified_at": null, "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-08-01T19:22:16.612Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-14T01:49:23.359Z", "modified_at": "2023-02-27T03:18:26.391Z", "trial_interval": "week", "trial_interval_count": 618257, "name": "", "description": "yowza meh ethyl where once exotic", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 256997, "meter_interval": "month", "meter_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 3063.89, "key1": true}, "prices": [{"created_at": "2023-10-09T16:03:24.107Z", "modified_at": "2023-10-18T20:01:51.483Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 574346, "legacy": true}, {"created_at": "2025-08-14T22:40:27.533Z", "modified_at": "2024-09-14T11:29:54.406Z", "id": "", "source": "catalog", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [], "minimum_seats": 956795, "maximum_seats": null}}, {"created_at": "2025-09-25T04:14:25.732Z", "modified_at": "2025-11-14T15:31:42.442Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 606069, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-10-30T15:15:07.973Z", "modified_at": "2025-02-25T11:02:14.286Z", "type": "meter_credit", "description": "circa cassava because", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 3478.81, "key1": "", "key2": true}, "visibility": "draft", "properties": {"units": 921282, "rollover": false, "meter_id": ""}, "visibility_configurable": true}, {"id": "", "created_at": "2023-10-30T15:15:07.973Z", "modified_at": "2025-02-25T11:02:14.286Z", "type": "meter_credit", "description": "circa cassava because", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 3478.81, "key1": "", "key2": true}, "visibility": "draft", "properties": {"units": 921282, "rollover": false, "meter_id": ""}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 105567, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-02T19:01:45.651Z", "size_readable": "", "public_url": "https://inconsequential-slide.com"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 105567, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-02T19:01:45.651Z", "size_readable": "", "public_url": "https://inconsequential-slide.com"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 105567, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-02T19:01:45.651Z", "size_readable": "", "public_url": "https://inconsequential-slide.com"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-04-12T03:15:38.858Z", "modified_at": "2025-07-13T21:55:11.751Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 712744, "required": false}]}, "discount": {"duration": "repeating", "duration_in_months": 153470, "type": "fixed", "basis_points": 284416, "created_at": "2024-03-23T02:00:57.683Z", "modified_at": "2025-01-27T19:18:40.809Z", "id": "", "metadata": {"key": 4126.15, "key1": 3937.48}, "name": "", "code": null, "starts_at": "2025-06-08T16:09:35.643Z", "ends_at": "2024-02-05T12:40:28.600Z", "max_redemptions": 819891, "redemptions_count": 779464, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-02-22T08:55:01.084Z", "modified_at": "2026-05-21T20:43:29.354Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 983207, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": null, "custom_multiplier": 52133}}, {"created_at": "2023-04-14T01:49:23.359Z", "modified_at": "2023-02-27T03:18:26.391Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 93707, "maximum_amount": 75257, "preset_amount": 135909, "legacy": true}, {"created_at": "2025-09-15T17:22:16.784Z", "modified_at": "2024-11-04T09:40:35.837Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 803091, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 178824}}], "meters": [{"created_at": "2023-06-22T22:55:35.524Z", "modified_at": "2023-05-11T08:44:43.261Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 561011}, "created_at": "2024-02-17T07:16:15.047Z", "modified_at": null, "id": "", "name": "", "unit": "token", "filter": {"conjunction": "or", "clauses": [{"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2023-06-22T22:55:35.524Z", "modified_at": "2023-05-11T08:44:43.261Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 561011}, "created_at": "2024-02-17T07:16:15.047Z", "modified_at": null, "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2023-06-22T22:55:35.524Z", "modified_at": "2023-05-11T08:44:43.261Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 561011}, "created_at": "2024-02-17T07:16:15.047Z", "modified_at": null, "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2026-09-12T16:35:27.128Z", "modified_at": "2026-07-19T10:57:44.516Z", "id": "", "applies_at": "2024-09-14T11:29:54.406Z", "product_id": null, "seats": 423433}} + application/json: {"created_at": "2023-04-13T16:53:14.377Z", "modified_at": "2023-10-09T16:03:24.107Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 93707, "status": "past_due", "current_period_start": "2024-09-21T11:35:55.569Z", "current_period_end": "2025-03-29T10:01:06.463Z", "current_meter_period_start": null, "current_meter_period_end": "2024-10-08T16:03:24.107Z", "trial_start": null, "trial_end": "2023-10-09T16:03:24.107Z", "cancel_at_period_end": true, "canceled_at": "2025-09-12T16:35:27.128Z", "started_at": "2025-07-19T10:57:44.516Z", "ends_at": "2023-01-14T16:02:07.001Z", "ended_at": "2024-04-09T01:58:52.778Z", "pause_at_period_end": true, "paused_at": "2024-05-28T00:12:33.005Z", "resumes_at": "2025-09-21T11:35:55.569Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "metadata": {"key": "", "key1": false}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-02-06T08:24:11.064Z", "modified_at": null, "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-08-01T19:22:16.612Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2023-04-14T01:49:23.359Z", "modified_at": "2023-02-27T03:18:26.391Z", "trial_interval": "week", "trial_interval_count": 618257, "name": "", "description": "yowza meh ethyl where once exotic", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 256997, "meter_interval": "month", "meter_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {"key": 3063.89, "key1": true}, "prices": [{"created_at": "2023-10-09T16:03:24.107Z", "modified_at": "2023-10-18T20:01:51.483Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 574346, "legacy": true}, {"created_at": "2025-08-14T22:40:27.533Z", "modified_at": "2024-09-14T11:29:54.406Z", "id": "", "source": "catalog", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [], "minimum_seats": 956795, "maximum_seats": null}}, {"created_at": "2025-09-25T04:14:25.732Z", "modified_at": "2025-11-14T15:31:42.442Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 606069, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-10-30T15:15:07.973Z", "modified_at": "2025-02-25T11:02:14.286Z", "type": "meter_credit", "description": "circa cassava because", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 3478.81, "key1": "", "key2": true}, "visibility": "draft", "properties": {"units": 921282, "rollover": false, "meter_id": ""}, "visibility_configurable": true}, {"id": "", "created_at": "2023-10-30T15:15:07.973Z", "modified_at": "2025-02-25T11:02:14.286Z", "type": "meter_credit", "description": "circa cassava because", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": 3478.81, "key1": "", "key2": true}, "visibility": "draft", "properties": {"units": 921282, "rollover": false, "meter_id": ""}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 105567, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-02T19:01:45.651Z", "size_readable": "", "public_url": "https://inconsequential-slide.com"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 105567, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-02T19:01:45.651Z", "size_readable": "", "public_url": "https://inconsequential-slide.com"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 105567, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-10-02T19:01:45.651Z", "size_readable": "", "public_url": "https://inconsequential-slide.com"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-04-12T03:15:38.858Z", "modified_at": "2025-07-13T21:55:11.751Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 712744, "required": false}]}, "discount": {"duration": "repeating", "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-03-23T02:00:57.683Z", "modified_at": "2025-01-27T19:18:40.809Z", "id": "", "metadata": {"key": 4126.15, "key1": 3937.48}, "name": "", "code": null, "starts_at": "2025-06-08T16:09:35.643Z", "ends_at": "2024-02-05T12:40:28.600Z", "max_redemptions": 819891, "max_redemptions_per_customer": 256997, "redemptions_count": 779464, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-02-22T08:55:01.084Z", "modified_at": "2026-05-21T20:43:29.354Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 983207, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": null, "custom_multiplier": 52133}}, {"created_at": "2023-04-14T01:49:23.359Z", "modified_at": "2023-02-27T03:18:26.391Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 93707, "maximum_amount": 75257, "preset_amount": 135909, "legacy": true}, {"created_at": "2025-09-15T17:22:16.784Z", "modified_at": "2024-11-04T09:40:35.837Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 803091, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 178824}}], "meters": [{"created_at": "2023-06-22T22:55:35.524Z", "modified_at": "2023-05-11T08:44:43.261Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 561011}, "created_at": "2024-02-17T07:16:15.047Z", "modified_at": null, "id": "", "name": "", "unit": "token", "filter": {"conjunction": "or", "clauses": [{"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2023-06-22T22:55:35.524Z", "modified_at": "2023-05-11T08:44:43.261Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 561011}, "created_at": "2024-02-17T07:16:15.047Z", "modified_at": null, "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}, {"created_at": "2023-06-22T22:55:35.524Z", "modified_at": "2023-05-11T08:44:43.261Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {"key": false, "key1": 561011}, "created_at": "2024-02-17T07:16:15.047Z", "modified_at": null, "id": "", "name": "", "unit": "scalar", "filter": {"conjunction": "or", "clauses": [{"conjunction": "or", "clauses": []}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""}}], "pending_update": {"created_at": "2026-09-12T16:35:27.128Z", "modified_at": "2026-07-19T10:57:44.516Z", "id": "", "applies_at": "2024-09-14T11:29:54.406Z", "product_id": null, "seats": 423433}} "403": application/json: {"error": "AlreadyCanceledSubscription", "detail": ""} "404": @@ -2799,7 +2818,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2023-03-26T01:22:53.189Z", "modified_at": "2024-02-10T15:29:33.963Z", "status": "refunded", "paid": true, "subtotal_amount": 15468, "discount_amount": 962179, "net_amount": 308936, "tax_amount": 449820, "total_amount": 375942, "applied_balance_amount": 901379, "due_amount": 465509, "refunded_amount": 70124, "refunded_tax_amount": 297395, "currency": "Balboa", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-03-16T14:29:40.056Z", "modified_at": "2024-12-01T04:46:22.222Z", "metadata": {"key": 7966.23}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-01T05:52:58.262Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"metadata": {}, "id": "", "created_at": "2025-02-24T18:51:29.694Z", "modified_at": "2025-04-13T23:14:41.573Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "expense pip blue furthermore gnash frail yet ugly", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 465509, "meter_interval": "week", "meter_interval_count": null, "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "duration_in_months": 782667, "type": "percentage", "basis_points": 224838, "created_at": "2024-11-05T22:56:54.203Z", "modified_at": "2024-08-14T13:19:22.767Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-03-15T19:46:41.506Z", "ends_at": "2025-06-29T08:50:29.569Z", "max_redemptions": 759343, "redemptions_count": 214063, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": false, "key1": 6606.6}, "created_at": "2024-07-13T07:19:52.472Z", "modified_at": "2023-05-30T18:04:05.234Z", "id": "", "amount": 941727, "currency": "CFA Franc BCEAO", "recurring_interval": "month", "recurring_interval_count": 76694, "status": "past_due", "current_period_start": "2023-08-06T07:04:45.093Z", "current_period_end": "2024-09-25T19:02:24.370Z", "current_meter_period_start": "2025-02-09T15:29:33.963Z", "current_meter_period_end": "2024-01-17T22:53:29.526Z", "trial_start": "2024-02-10T15:29:33.963Z", "trial_end": "2023-01-17T22:53:29.526Z", "cancel_at_period_end": true, "canceled_at": "2023-09-12T07:04:22.765Z", "started_at": "2023-01-18T06:49:58.589Z", "ends_at": "2023-10-25T10:02:37.340Z", "ended_at": "2023-07-26T14:27:14.451Z", "pause_at_period_end": false, "paused_at": "2026-12-22T21:16:05.601Z", "resumes_at": "2025-02-16T00:46:28.734Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2024-02-19T18:25:16.033Z", "modified_at": "2025-09-17T15:07:41.764Z", "id": "", "label": "", "amount": 92904, "tax_amount": 275681, "proration": false, "product_price_id": ""}, {"created_at": "2024-02-19T18:25:16.033Z", "modified_at": "2025-09-17T15:07:41.764Z", "id": "", "label": "", "amount": 92904, "tax_amount": 275681, "proration": false, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}], "pagination": {"total_count": 754496, "max_page": 599128}} + application/json: {"items": [{"id": "", "created_at": "2023-03-26T01:22:53.189Z", "modified_at": "2024-02-10T15:29:33.963Z", "status": "refunded", "paid": true, "subtotal_amount": 15468, "discount_amount": 962179, "net_amount": 308936, "tax_amount": 449820, "total_amount": 375942, "applied_balance_amount": 901379, "due_amount": 465509, "refunded_amount": 70124, "refunded_tax_amount": 297395, "currency": "Balboa", "billing_reason": "subscription_cycle", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-03-16T14:29:40.056Z", "modified_at": "2024-12-01T04:46:22.222Z", "metadata": {"key": 7966.23}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-09-01T05:52:58.262Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=blank"}, "product": {"metadata": {}, "id": "", "created_at": "2025-02-24T18:51:29.694Z", "modified_at": "2025-04-13T23:14:41.573Z", "trial_interval": "week", "trial_interval_count": null, "name": "", "description": "expense pip blue furthermore gnash frail yet ugly", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 465509, "meter_interval": "week", "meter_interval_count": null, "is_recurring": true, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 76694, "type": "percentage", "basis_points": 1000, "created_at": "2025-02-09T15:29:33.963Z", "modified_at": "2024-01-17T22:53:29.526Z", "id": "", "metadata": {"key": 991685}, "name": "", "code": "", "starts_at": "2024-03-17T20:33:29.574Z", "ends_at": "2025-12-15T04:25:43.168Z", "max_redemptions": 567767, "max_redemptions_per_customer": 365393, "redemptions_count": 168484, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": false, "key1": 6606.6}, "created_at": "2024-07-13T07:19:52.472Z", "modified_at": "2023-05-30T18:04:05.234Z", "id": "", "amount": 941727, "currency": "CFA Franc BCEAO", "recurring_interval": "month", "recurring_interval_count": 76694, "status": "past_due", "current_period_start": "2023-08-06T07:04:45.093Z", "current_period_end": "2024-09-25T19:02:24.370Z", "current_meter_period_start": "2025-02-09T15:29:33.963Z", "current_meter_period_end": "2024-01-17T22:53:29.526Z", "trial_start": "2024-02-10T15:29:33.963Z", "trial_end": "2023-01-17T22:53:29.526Z", "cancel_at_period_end": true, "canceled_at": "2023-09-12T07:04:22.765Z", "started_at": "2023-01-18T06:49:58.589Z", "ends_at": "2023-10-25T10:02:37.340Z", "ended_at": "2023-07-26T14:27:14.451Z", "pause_at_period_end": false, "paused_at": "2026-12-22T21:16:05.601Z", "resumes_at": "2025-02-16T00:46:28.734Z", "customer_id": "", "product_id": "", "discount_id": null, "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2024-02-19T18:25:16.033Z", "modified_at": "2025-09-17T15:07:41.764Z", "id": "", "label": "", "amount": 92904, "tax_amount": 275681, "proration": false, "product_price_id": ""}, {"created_at": "2024-02-19T18:25:16.033Z", "modified_at": "2025-09-17T15:07:41.764Z", "id": "", "label": "", "amount": 92904, "tax_amount": 275681, "proration": false, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720}], "pagination": {"total_count": 754496, "max_page": 599128}} "422": application/json: {} orders:get: @@ -2809,7 +2828,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2023-12-28T18:05:05.494Z", "modified_at": "2025-08-19T01:46:15.037Z", "status": "paid", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": ""}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-07-30T11:43:08.034Z", "modified_at": "2025-11-17T01:23:41.514Z", "metadata": {"key": true}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-03-07T16:00:18.030Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 709557, "key1": true, "key2": 1589.86}, "id": "", "created_at": "2024-06-13T05:22:39.981Z", "modified_at": "2025-08-06T17:05:37.045Z", "trial_interval": "month", "trial_interval_count": 421146, "name": "", "description": "tarry subexpression brr huzzah officially", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 566234, "meter_interval": "month", "meter_interval_count": 421146, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "type": "percentage", "basis_points": 815092, "created_at": "2025-09-19T21:21:56.106Z", "modified_at": "2024-05-14T12:13:50.338Z", "id": "", "metadata": {"key": false}, "name": "", "code": null, "starts_at": "2025-01-27T04:15:28.556Z", "ends_at": "2023-02-03T06:50:58.764Z", "max_redemptions": 31256, "redemptions_count": 737846, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": null, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} + application/json: {"id": "", "created_at": "2023-12-28T18:05:05.494Z", "modified_at": "2025-08-19T01:46:15.037Z", "status": "paid", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": false, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {"key": ""}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-07-30T11:43:08.034Z", "modified_at": "2025-11-17T01:23:41.514Z", "metadata": {"key": true}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-03-07T16:00:18.030Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 709557, "key1": true, "key2": 1589.86}, "id": "", "created_at": "2024-06-13T05:22:39.981Z", "modified_at": "2025-08-06T17:05:37.045Z", "trial_interval": "month", "trial_interval_count": 421146, "name": "", "description": "tarry subexpression brr huzzah officially", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 566234, "meter_interval": "month", "meter_interval_count": 421146, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "once", "duration_in_months": 566234, "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-09-19T21:21:56.106Z", "modified_at": "2024-05-14T12:13:50.338Z", "id": "", "metadata": {"key": false}, "name": "", "code": null, "starts_at": "2025-01-27T04:15:28.556Z", "ends_at": "2023-02-03T06:50:58.764Z", "max_redemptions": 31256, "max_redemptions_per_customer": 421146, "redemptions_count": 737846, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": null, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2862,7 +2881,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2025-12-02T21:32:42.156Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://punctual-guacamole.org", "expires_at": "2023-08-19T15:22:33.462Z", "success_url": "https://biodegradable-coal.com", "return_url": "https://definite-finer.org/", "embed_origin": "", "amount": 780504, "discount_amount": 766358, "net_amount": 630886, "tax_amount": 936353, "tax_behavior": "inclusive", "total_amount": 994328, "currency": "Algerian Dinar", "allow_trial": true, "active_trial_interval": "week", "active_trial_interval_count": 332812, "trial_end": "2024-12-26T22:49:45.749Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "disabled", "line2": "optional"}, "trial_interval": "month", "trial_interval_count": 902613, "metadata": {"key": 507672, "key1": 563944}, "external_customer_id": "", "products": [{"id": "", "created_at": "2023-11-04T01:52:59.639Z", "modified_at": null, "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "dally bungalow congregate howl", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 345801, "meter_interval": "week", "meter_interval_count": 332812, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}]}, {"id": "", "created_at": "2023-11-04T01:52:59.639Z", "modified_at": null, "trial_interval": "day", "trial_interval_count": 780504, "name": "", "description": "dally bungalow congregate howl", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 332812, "meter_interval": "month", "meter_interval_count": 645390, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}]}], "product": {"id": "", "created_at": "2025-10-08T08:06:47.691Z", "modified_at": "2023-01-13T21:51:28.028Z", "trial_interval": "month", "trial_interval_count": 936353, "name": "", "description": "wildly edge except so calculus square", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 662364, "meter_interval": "year", "meter_interval_count": 951282, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2025-12-02T21:32:42.156Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 645390, "legacy": true}, {"created_at": "2024-05-29T22:42:00.703Z", "modified_at": "2026-05-05T10:21:47.685Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 241940, "maximum_amount": 733508, "preset_amount": 262775, "legacy": true}, {"created_at": "2025-04-19T22:15:44.328Z", "modified_at": "2024-07-26T10:32:13.861Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 762494, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": null}}], "benefits": [{"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}]}, "product_price": {"created_at": "2026-12-02T21:32:42.156Z", "modified_at": "2025-09-19T19:41:27.901Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 210438, "maximum_amount": 66960, "preset_amount": 136812, "legacy": true}, "prices": {"key": [], "key1": [{"created_at": "2026-01-04T19:59:21.584Z", "modified_at": "2026-05-29T18:03:23.625Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 439463, "maximum_amount": 287383, "preset_amount": 381287, "legacy": true}]}, "discount": null, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": 163571, "key1": 954376}}], "pagination": {"total_count": 608889, "max_page": 572838}} + application/json: {"items": [{"id": "", "created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2025-12-02T21:32:42.156Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://punctual-guacamole.org", "expires_at": "2023-08-19T15:22:33.462Z", "success_url": "https://biodegradable-coal.com", "return_url": "https://definite-finer.org/", "embed_origin": "", "amount": 780504, "discount_amount": 766358, "net_amount": 630886, "tax_amount": 936353, "tax_behavior": "inclusive", "total_amount": 994328, "currency": "Algerian Dinar", "allow_trial": true, "active_trial_interval": "week", "active_trial_interval_count": 332812, "trial_end": "2024-12-26T22:49:45.749Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "disabled", "line2": "optional"}, "trial_interval": "month", "trial_interval_count": 902613, "metadata": {"key": 507672, "key1": 563944}, "external_customer_id": "", "products": [{"id": "", "created_at": "2023-11-04T01:52:59.639Z", "modified_at": null, "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "dally bungalow congregate howl", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 345801, "meter_interval": "week", "meter_interval_count": 332812, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}]}, {"id": "", "created_at": "2023-11-04T01:52:59.639Z", "modified_at": null, "trial_interval": "day", "trial_interval_count": 780504, "name": "", "description": "dally bungalow congregate howl", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 332812, "meter_interval": "month", "meter_interval_count": 645390, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}, {"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}]}], "product": {"id": "", "created_at": "2025-10-08T08:06:47.691Z", "modified_at": "2023-01-13T21:51:28.028Z", "trial_interval": "month", "trial_interval_count": 936353, "name": "", "description": "wildly edge except so calculus square", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 662364, "meter_interval": "year", "meter_interval_count": 951282, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-07-14T12:00:22.546Z", "modified_at": "2025-12-02T21:32:42.156Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 645390, "legacy": true}, {"created_at": "2024-05-29T22:42:00.703Z", "modified_at": "2026-05-05T10:21:47.685Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 241940, "maximum_amount": 733508, "preset_amount": 262775, "legacy": true}, {"created_at": "2025-04-19T22:15:44.328Z", "modified_at": "2024-07-26T10:32:13.861Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 762494, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": null}}], "benefits": [{"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-12-18T03:04:16.879Z", "modified_at": "2025-12-13T18:59:55.618Z", "type": "custom", "description": "tennis badly hoick", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/etc/periodic", "mime_type": "", "size": 790983, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-28T15:09:33.411Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2023-03-27T20:48:20.123Z", "size_readable": "", "public_url": "https://skeletal-solvency.com"}]}, "product_price": {"created_at": "2026-12-02T21:32:42.156Z", "modified_at": "2025-09-19T19:41:27.901Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 210438, "maximum_amount": 66960, "preset_amount": 136812, "legacy": true}, "prices": {"key": [], "key1": [{"created_at": "2026-01-04T19:59:21.584Z", "modified_at": "2026-05-29T18:03:23.625Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 439463, "maximum_amount": 287383, "preset_amount": 381287, "legacy": true}]}, "discount": null, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": 163571, "key1": 954376}}], "pagination": {"total_count": 608889, "max_page": 572838}} "422": application/json: {} checkouts:create: @@ -2871,7 +2890,7 @@ examples: application/json: {"allow_discount_codes": true, "require_billing_address": false, "allow_trial": true, "is_business_customer": false, "customer_name": "John Doe", "customer_billing_address": {"country": "US"}, "locale": "en", "products": ["", "", ""]} responses: "201": - application/json: {"id": "", "created_at": "2024-01-03T23:26:44.843Z", "modified_at": "2023-01-06T02:40:29.447Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://willing-outset.info/", "expires_at": "2025-05-04T00:57:38.223Z", "success_url": "https://wonderful-adrenalin.info", "return_url": "https://great-fen.com", "embed_origin": "", "amount": 267381, "discount_amount": 51493, "net_amount": 549002, "tax_amount": 457933, "tax_behavior": "exclusive", "total_amount": 901758, "currency": "Singapore Dollar", "allow_trial": false, "active_trial_interval": "year", "active_trial_interval_count": 324391, "trial_end": null, "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "optional", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 632047, "metadata": {"key": true, "key1": 633599}, "external_customer_id": "", "products": [{"id": "", "created_at": "2024-02-11T14:47:29.817Z", "modified_at": "2023-12-03T20:20:32.728Z", "trial_interval": "year", "trial_interval_count": 978623, "name": "", "description": "mousse psst pulp because connect deer coordination drum behind yieldingly", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 974785, "meter_interval": "year", "meter_interval_count": 324391, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-01-03T23:26:44.843Z", "modified_at": "2023-01-06T02:40:29.447Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 779234, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": null, "custom_multiplier": 470625}}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/tmp", "mime_type": "", "size": 957931, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-05-06T15:29:56.878Z", "version": null, "service": "product_media", "is_uploaded": true, "created_at": "2024-04-02T19:44:45.852Z", "size_readable": "", "public_url": "https://nervous-jet.com/"}]}], "product": {"id": "", "created_at": "2025-06-14T10:40:20.746Z", "modified_at": "2025-01-27T16:41:51.128Z", "trial_interval": null, "trial_interval_count": 452269, "name": "", "description": "over competent powerfully", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 324391, "meter_interval": "month", "meter_interval_count": 779234, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-01-14T08:53:43.010Z", "modified_at": "2024-05-10T16:28:30.439Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 901758, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 12199}}], "benefits": [], "medias": []}, "product_price": {"created_at": "2024-01-06T02:40:29.447Z", "modified_at": "2025-05-30T19:19:24.495Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 779234, "maximum_amount": 978623, "preset_amount": null, "legacy": true}, "prices": {"key": [{"created_at": "2024-10-20T01:12:01.458Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 923554, "maximum_amount": 473815, "preset_amount": 299082, "legacy": true}]}, "discount": {"duration": "forever", "duration_in_months": 602692, "type": "percentage", "basis_points": 1000, "id": "", "name": "", "code": null}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": true, "key1": 753950, "key2": ""}} + application/json: {"id": "", "created_at": "2024-01-03T23:26:44.843Z", "modified_at": "2023-01-06T02:40:29.447Z", "payment_processor": "stripe", "status": "failed", "client_secret": "", "url": "https://willing-outset.info/", "expires_at": "2025-05-04T00:57:38.223Z", "success_url": "https://wonderful-adrenalin.info", "return_url": "https://great-fen.com", "embed_origin": "", "amount": 267381, "discount_amount": 51493, "net_amount": 549002, "tax_amount": 457933, "tax_behavior": "exclusive", "total_amount": 901758, "currency": "Singapore Dollar", "allow_trial": false, "active_trial_interval": "year", "active_trial_interval_count": 324391, "trial_end": null, "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "optional", "postal_code": "required", "line1": "required", "line2": "disabled"}, "trial_interval": "week", "trial_interval_count": 632047, "metadata": {"key": true, "key1": 633599}, "external_customer_id": "", "products": [{"id": "", "created_at": "2024-02-11T14:47:29.817Z", "modified_at": "2023-12-03T20:20:32.728Z", "trial_interval": "year", "trial_interval_count": 978623, "name": "", "description": "mousse psst pulp because connect deer coordination drum behind yieldingly", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 974785, "meter_interval": "year", "meter_interval_count": 324391, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-01-03T23:26:44.843Z", "modified_at": "2023-01-06T02:40:29.447Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 779234, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": null, "custom_multiplier": 470625}}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/var/tmp", "mime_type": "", "size": 957931, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-05-06T15:29:56.878Z", "version": null, "service": "product_media", "is_uploaded": true, "created_at": "2024-04-02T19:44:45.852Z", "size_readable": "", "public_url": "https://nervous-jet.com/"}]}], "product": {"id": "", "created_at": "2025-06-14T10:40:20.746Z", "modified_at": "2025-01-27T16:41:51.128Z", "trial_interval": null, "trial_interval_count": 452269, "name": "", "description": "over competent powerfully", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 324391, "meter_interval": "month", "meter_interval_count": 779234, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-01-14T08:53:43.010Z", "modified_at": "2024-05-10T16:28:30.439Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 901758, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 12199}}], "benefits": [], "medias": []}, "product_price": {"created_at": "2024-01-06T02:40:29.447Z", "modified_at": "2025-05-30T19:19:24.495Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 779234, "maximum_amount": 978623, "preset_amount": null, "legacy": true}, "prices": {"key": [{"created_at": "2024-10-20T01:12:01.458Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 923554, "maximum_amount": 473815, "preset_amount": 299082, "legacy": true}]}, "discount": {"duration": "forever", "duration_in_months": 602692, "type": "percentage", "basis_points": 1000, "id": "", "name": "", "code": null}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": true, "key1": 753950, "key2": ""}} "422": application/json: {} checkouts:get: @@ -2881,7 +2900,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2024-08-11T03:11:01.239Z", "modified_at": "2025-11-29T01:58:06.554Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://dirty-maestro.info", "expires_at": "2023-10-11T06:44:37.699Z", "success_url": "https://low-hope.name", "return_url": "https://willing-ribbon.net/", "embed_origin": "", "amount": 604568, "discount_amount": 435126, "net_amount": 202456, "tax_amount": 729244, "tax_behavior": "inclusive", "total_amount": 885841, "currency": "Tugrik", "allow_trial": true, "active_trial_interval": "day", "active_trial_interval_count": 759954, "trial_end": "2023-08-04T19:41:02.160Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": ""}, "billing_address_fields": {"country": "optional", "state": "required", "city": "disabled", "postal_code": "disabled", "line1": "disabled", "line2": "required"}, "trial_interval": "week", "trial_interval_count": 626845, "metadata": {"key": "", "key1": 1174.35}, "external_customer_id": "", "products": [{"id": "", "created_at": "2023-08-31T20:57:39.863Z", "modified_at": "2023-04-27T14:53:08.193Z", "trial_interval": "week", "trial_interval_count": 565134, "name": "", "description": "inveigle fooey frankly", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 172766, "meter_interval": "day", "meter_interval_count": 759954, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}, {"id": "", "created_at": "2023-08-31T20:57:39.863Z", "modified_at": "2023-04-27T14:53:08.193Z", "trial_interval": "week", "trial_interval_count": 178822, "name": "", "description": "inveigle fooey frankly", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 759954, "meter_interval": "day", "meter_interval_count": 387522, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}, {"id": "", "created_at": "2023-08-31T20:57:39.863Z", "modified_at": "2023-04-27T14:53:08.193Z", "trial_interval": "year", "trial_interval_count": 221002, "name": "", "description": "inveigle fooey frankly", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 196916, "meter_interval": "month", "meter_interval_count": 427596, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}], "product": {"id": "", "created_at": "2024-04-29T21:31:34.931Z", "modified_at": null, "trial_interval": "week", "trial_interval_count": 16708, "name": "", "description": "silk plus an cavernous vamoose", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 387522, "meter_interval": "month", "meter_interval_count": 435126, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-29T01:58:06.554Z", "modified_at": "2025-02-24T18:28:07.898Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 486695, "maximum_amount": 601699, "preset_amount": 604568, "legacy": true}, {"created_at": "2023-07-15T23:44:52.247Z", "modified_at": "2025-08-28T21:08:23.306Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 472045, "maximum_amount": 16708, "preset_amount": 342156, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}, "product_price": {"created_at": "2026-02-24T18:28:07.898Z", "modified_at": "2025-08-14T06:11:53.782Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 486695, "meter_id": "", "meter": {"id": "", "name": "", "unit": "token", "custom_label": "", "custom_multiplier": 729244}}, "prices": {"key": [], "key1": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 1000, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-09-07T23:03:34.581Z", "modified_at": "2025-12-24T16:06:04.760Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 200397, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-07T23:03:34.581Z", "modified_at": "2025-12-24T16:06:04.760Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 200397, "required": true}], "customer_metadata": {"key": 154385}} + application/json: {"id": "", "created_at": "2024-08-11T03:11:01.239Z", "modified_at": "2025-11-29T01:58:06.554Z", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://dirty-maestro.info", "expires_at": "2023-10-11T06:44:37.699Z", "success_url": "https://low-hope.name", "return_url": "https://willing-ribbon.net/", "embed_origin": "", "amount": 604568, "discount_amount": 435126, "net_amount": 202456, "tax_amount": 729244, "tax_behavior": "inclusive", "total_amount": 885841, "currency": "Tugrik", "allow_trial": true, "active_trial_interval": "day", "active_trial_interval_count": 759954, "trial_end": "2023-08-04T19:41:02.160Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": "", "key1": ""}, "billing_address_fields": {"country": "optional", "state": "required", "city": "disabled", "postal_code": "disabled", "line1": "disabled", "line2": "required"}, "trial_interval": "week", "trial_interval_count": 626845, "metadata": {"key": "", "key1": 1174.35}, "external_customer_id": "", "products": [{"id": "", "created_at": "2023-08-31T20:57:39.863Z", "modified_at": "2023-04-27T14:53:08.193Z", "trial_interval": "week", "trial_interval_count": 565134, "name": "", "description": "inveigle fooey frankly", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 172766, "meter_interval": "day", "meter_interval_count": 759954, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}, {"id": "", "created_at": "2023-08-31T20:57:39.863Z", "modified_at": "2023-04-27T14:53:08.193Z", "trial_interval": "week", "trial_interval_count": 178822, "name": "", "description": "inveigle fooey frankly", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": 759954, "meter_interval": "day", "meter_interval_count": 387522, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}, {"id": "", "created_at": "2023-08-31T20:57:39.863Z", "modified_at": "2023-04-27T14:53:08.193Z", "trial_interval": "year", "trial_interval_count": 221002, "name": "", "description": "inveigle fooey frankly", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 196916, "meter_interval": "month", "meter_interval_count": 427596, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}], "product": {"id": "", "created_at": "2024-04-29T21:31:34.931Z", "modified_at": null, "trial_interval": "week", "trial_interval_count": 16708, "name": "", "description": "silk plus an cavernous vamoose", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 387522, "meter_interval": "month", "meter_interval_count": 435126, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-29T01:58:06.554Z", "modified_at": "2025-02-24T18:28:07.898Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 486695, "maximum_amount": 601699, "preset_amount": 604568, "legacy": true}, {"created_at": "2023-07-15T23:44:52.247Z", "modified_at": "2025-08-28T21:08:23.306Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 472045, "maximum_amount": 16708, "preset_amount": 342156, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-11-01T21:53:06.694Z", "modified_at": "2023-01-04T18:26:29.729Z", "type": "meter_credit", "description": "gosh ashamed viciously swat", "selectable": true, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 8837, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T05:04:28.264Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-01-31T09:04:35.400Z", "size_readable": "", "public_url": "https://woeful-alb.com"}]}, "product_price": {"created_at": "2026-02-24T18:28:07.898Z", "modified_at": "2025-08-14T06:11:53.782Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 486695, "meter_id": "", "meter": {"id": "", "name": "", "unit": "token", "custom_label": "", "custom_multiplier": 729244}}, "prices": {"key": [], "key1": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 1000, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-09-07T23:03:34.581Z", "modified_at": "2025-12-24T16:06:04.760Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 200397, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-07T23:03:34.581Z", "modified_at": "2025-12-24T16:06:04.760Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 200397, "required": true}], "customer_metadata": {"key": 154385}} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -2895,7 +2914,7 @@ examples: application/json: {"customer_name": "John Doe", "customer_billing_address": {"country": "US"}, "locale": "en"} responses: "200": - application/json: {"id": "", "created_at": "2025-08-11T13:37:19.351Z", "modified_at": "2025-01-17T16:36:47.350Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://quiet-longboat.name/", "expires_at": "2024-06-26T17:48:32.882Z", "success_url": "https://flawless-conversation.com/", "return_url": "https://winding-pliers.biz", "embed_origin": "", "amount": 854455, "discount_amount": 294901, "net_amount": 889166, "tax_amount": 922052, "tax_behavior": "exclusive", "total_amount": 719988, "currency": "Rufiyaa", "allow_trial": false, "active_trial_interval": "year", "active_trial_interval_count": 682201, "trial_end": "2023-04-12T18:01:42.534Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": null, "allow_discount_codes": false, "require_billing_address": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": null, "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "disabled", "postal_code": "disabled", "line1": "required", "line2": "required"}, "trial_interval": "month", "trial_interval_count": 495203, "metadata": {"key": 175107, "key1": "", "key2": 598875}, "external_customer_id": "", "products": [{"id": "", "created_at": "2024-10-08T05:33:56.764Z", "modified_at": "2023-07-14T21:58:46.090Z", "trial_interval": null, "trial_interval_count": 186577, "name": "", "description": "where underneath ignorant smoke pearl interesting meh amid", "visibility": "draft", "recurring_interval": null, "recurring_interval_count": 870044, "meter_interval": "year", "meter_interval_count": 682201, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-12-25T00:35:50.501Z", "modified_at": "2025-09-30T14:39:02.951Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "day", "minimum_amount": 108195, "maximum_amount": 854455, "preset_amount": 889166, "legacy": true}, {"created_at": "2026-02-28T02:33:50.620Z", "modified_at": "2024-04-08T13:08:19.870Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [], "minimum_seats": 97618, "maximum_seats": 780629}}], "benefits": [{"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}]}, {"id": "", "created_at": "2024-10-08T05:33:56.764Z", "modified_at": "2023-07-14T21:58:46.090Z", "trial_interval": "day", "trial_interval_count": 294901, "name": "", "description": "where underneath ignorant smoke pearl interesting meh amid", "visibility": "public", "recurring_interval": null, "recurring_interval_count": 682201, "meter_interval": "day", "meter_interval_count": null, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-09-01T12:37:02.777Z", "modified_at": "2025-10-07T13:38:06.522Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 615287, "legacy": true}, {"created_at": "2024-02-21T06:51:40.935Z", "modified_at": null, "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 391538, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}]}], "product": {"id": "", "created_at": "2023-09-02T08:09:15.374Z", "modified_at": "2023-01-08T13:18:17.680Z", "trial_interval": "year", "trial_interval_count": 719988, "name": "", "description": null, "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 92838, "meter_interval": "day", "meter_interval_count": 767514, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}]}, "product_price": {"created_at": "2024-09-29T23:37:22.091Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 495203, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 840966}}, "prices": {"key": [], "key1": []}, "discount": null, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-09-18T08:05:49.385Z", "modified_at": "2023-01-31T14:16:46.453Z", "id": "", "metadata": {"key": 376311, "key1": "", "key2": 112991}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 115053, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-18T08:05:49.385Z", "modified_at": "2023-01-31T14:16:46.453Z", "id": "", "metadata": {"key": 376311, "key1": "", "key2": 112991}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 115053, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-18T08:05:49.385Z", "modified_at": "2023-01-31T14:16:46.453Z", "id": "", "metadata": {"key": 376311, "key1": "", "key2": 112991}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 115053, "required": true}], "customer_metadata": {}} + application/json: {"id": "", "created_at": "2025-08-11T13:37:19.351Z", "modified_at": "2025-01-17T16:36:47.350Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://quiet-longboat.name/", "expires_at": "2024-06-26T17:48:32.882Z", "success_url": "https://flawless-conversation.com/", "return_url": "https://winding-pliers.biz", "embed_origin": "", "amount": 854455, "discount_amount": 294901, "net_amount": 889166, "tax_amount": 922052, "tax_behavior": "exclusive", "total_amount": 719988, "currency": "Rufiyaa", "allow_trial": false, "active_trial_interval": "year", "active_trial_interval_count": 682201, "trial_end": "2023-04-12T18:01:42.534Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": null, "allow_discount_codes": false, "require_billing_address": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": null, "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "billing_address_fields": {"country": "required", "state": "disabled", "city": "disabled", "postal_code": "disabled", "line1": "required", "line2": "required"}, "trial_interval": "month", "trial_interval_count": 495203, "metadata": {"key": 175107, "key1": "", "key2": 598875}, "external_customer_id": "", "products": [{"id": "", "created_at": "2024-10-08T05:33:56.764Z", "modified_at": "2023-07-14T21:58:46.090Z", "trial_interval": null, "trial_interval_count": 186577, "name": "", "description": "where underneath ignorant smoke pearl interesting meh amid", "visibility": "draft", "recurring_interval": null, "recurring_interval_count": 870044, "meter_interval": "year", "meter_interval_count": 682201, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-12-25T00:35:50.501Z", "modified_at": "2025-09-30T14:39:02.951Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "day", "minimum_amount": 108195, "maximum_amount": 854455, "preset_amount": 889166, "legacy": true}, {"created_at": "2026-02-28T02:33:50.620Z", "modified_at": "2024-04-08T13:08:19.870Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [], "minimum_seats": 97618, "maximum_seats": 780629}}], "benefits": [{"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}]}, {"id": "", "created_at": "2024-10-08T05:33:56.764Z", "modified_at": "2023-07-14T21:58:46.090Z", "trial_interval": "day", "trial_interval_count": 294901, "name": "", "description": "where underneath ignorant smoke pearl interesting meh amid", "visibility": "public", "recurring_interval": null, "recurring_interval_count": 682201, "meter_interval": "day", "meter_interval_count": null, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-09-01T12:37:02.777Z", "modified_at": "2025-10-07T13:38:06.522Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 615287, "legacy": true}, {"created_at": "2024-02-21T06:51:40.935Z", "modified_at": null, "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 391538, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}]}], "product": {"id": "", "created_at": "2023-09-02T08:09:15.374Z", "modified_at": "2023-01-08T13:18:17.680Z", "trial_interval": "year", "trial_interval_count": 719988, "name": "", "description": null, "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 92838, "meter_interval": "day", "meter_interval_count": 767514, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2024-08-22T08:39:31.775Z", "modified_at": "2024-02-01T17:03:37.242Z", "type": "discord", "description": "overconfidently overplay down unless dilate before optimistically while curly by", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}, {"id": "", "organization_id": "", "name": "", "path": "/Applications", "mime_type": "", "size": 72601, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-08T03:26:06.485Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-12T01:25:31.801Z", "size_readable": "", "public_url": "https://inexperienced-valuable.name/"}]}, "product_price": {"created_at": "2024-09-29T23:37:22.091Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 495203, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 840966}}, "prices": {"key": [], "key1": []}, "discount": null, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-09-18T08:05:49.385Z", "modified_at": "2023-01-31T14:16:46.453Z", "id": "", "metadata": {"key": 376311, "key1": "", "key2": 112991}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 115053, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-18T08:05:49.385Z", "modified_at": "2023-01-31T14:16:46.453Z", "id": "", "metadata": {"key": 376311, "key1": "", "key2": 112991}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 115053, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-09-18T08:05:49.385Z", "modified_at": "2023-01-31T14:16:46.453Z", "id": "", "metadata": {"key": 376311, "key1": "", "key2": 112991}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 115053, "required": true}], "customer_metadata": {}} "403": application/json: {"error": "AlreadyActiveSubscriptionError", "detail": ""} "404": @@ -2909,7 +2928,7 @@ examples: client_secret: "" responses: "200": - application/json: {"id": "", "created_at": "2025-06-24T05:51:11.116Z", "modified_at": "2025-07-21T02:35:25.261Z", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://simplistic-nudge.net", "expires_at": "2024-08-27T15:59:15.813Z", "success_url": "https://damp-ostrich.net", "return_url": "https://thorny-mathematics.net", "embed_origin": "", "amount": 129651, "discount_amount": 979690, "net_amount": 68566, "tax_amount": 755934, "tax_behavior": "exclusive", "total_amount": 778145, "currency": "CFA Franc BCEAO", "allow_trial": false, "active_trial_interval": "year", "active_trial_interval_count": 558443, "trial_end": "2025-03-31T17:00:49.512Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "disabled", "postal_code": "optional", "line1": "disabled", "line2": "disabled"}, "products": [{"id": "", "created_at": "2025-11-10T10:55:29.910Z", "modified_at": "2025-02-27T16:08:01.240Z", "trial_interval": "month", "trial_interval_count": 867631, "name": "", "description": "gut yahoo mechanic advancement pace", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 844979, "meter_interval": "year", "meter_interval_count": 558443, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2023-03-27T23:50:15.369Z", "modified_at": "2025-11-11T17:18:47.743Z", "type": "github_repository", "description": "whenever valiantly potentially till", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}]}, {"id": "", "created_at": "2025-11-10T10:55:29.910Z", "modified_at": "2025-02-27T16:08:01.240Z", "trial_interval": "month", "trial_interval_count": 173963, "name": "", "description": "gut yahoo mechanic advancement pace", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 558443, "meter_interval": "month", "meter_interval_count": 678253, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2023-03-27T23:50:15.369Z", "modified_at": "2025-11-11T17:18:47.743Z", "type": "github_repository", "description": "whenever valiantly potentially till", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}]}], "product": {"id": "", "created_at": "2025-06-13T01:03:58.697Z", "modified_at": "2023-05-03T05:36:23.041Z", "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "blah toward against unhappy hot however", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 748822, "meter_interval": "year", "meter_interval_count": 628782, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-07-21T02:35:25.261Z", "modified_at": "2025-05-19T02:18:24.778Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 162606, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 129651}}, {"created_at": "2024-10-15T01:42:45.699Z", "modified_at": "2026-05-02T20:18:21.996Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 814176, "maximum_amount": 880694, "preset_amount": 679018, "legacy": true}, {"created_at": "2025-03-12T04:59:11.184Z", "modified_at": "2025-06-11T08:05:03.606Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 433632, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-03-27T23:50:15.369Z", "modified_at": "2025-11-11T17:18:47.743Z", "type": "github_repository", "description": "whenever valiantly potentially till", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}]}, "product_price": {"created_at": "2026-05-19T02:18:24.778Z", "modified_at": "2025-10-29T23:16:41.742Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 230020, "legacy": true}, "prices": {"key": [{"created_at": "2024-11-20T03:28:45.411Z", "modified_at": "2023-07-10T15:56:39.492Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 950981, "maximum_amount": 731029, "preset_amount": 814176, "legacy": true}], "key1": []}, "discount": {"duration": "once", "type": "percentage", "basis_points": 207850, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-11-25T05:44:46.275Z", "modified_at": "2023-04-04T00:17:57.339Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://colorful-packaging.biz", "proration_behavior": "prorate", "allow_customer_updates": false}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-07-25T14:36:16.639Z", "modified_at": "2025-08-30T21:44:31.855Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 817087, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-07-25T14:36:16.639Z", "modified_at": "2025-08-30T21:44:31.855Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 817087, "required": true}]} + application/json: {"id": "", "created_at": "2025-06-24T05:51:11.116Z", "modified_at": "2025-07-21T02:35:25.261Z", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://simplistic-nudge.net", "expires_at": "2024-08-27T15:59:15.813Z", "success_url": "https://damp-ostrich.net", "return_url": "https://thorny-mathematics.net", "embed_origin": "", "amount": 129651, "discount_amount": 979690, "net_amount": 68566, "tax_amount": 755934, "tax_behavior": "exclusive", "total_amount": 778145, "currency": "CFA Franc BCEAO", "allow_trial": false, "active_trial_interval": "year", "active_trial_interval_count": 558443, "trial_end": "2025-03-31T17:00:49.512Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": "", "key1": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "disabled", "postal_code": "optional", "line1": "disabled", "line2": "disabled"}, "products": [{"id": "", "created_at": "2025-11-10T10:55:29.910Z", "modified_at": "2025-02-27T16:08:01.240Z", "trial_interval": "month", "trial_interval_count": 867631, "name": "", "description": "gut yahoo mechanic advancement pace", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 844979, "meter_interval": "year", "meter_interval_count": 558443, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2023-03-27T23:50:15.369Z", "modified_at": "2025-11-11T17:18:47.743Z", "type": "github_repository", "description": "whenever valiantly potentially till", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}]}, {"id": "", "created_at": "2025-11-10T10:55:29.910Z", "modified_at": "2025-02-27T16:08:01.240Z", "trial_interval": "month", "trial_interval_count": 173963, "name": "", "description": "gut yahoo mechanic advancement pace", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 558443, "meter_interval": "month", "meter_interval_count": 678253, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2023-03-27T23:50:15.369Z", "modified_at": "2025-11-11T17:18:47.743Z", "type": "github_repository", "description": "whenever valiantly potentially till", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}]}], "product": {"id": "", "created_at": "2025-06-13T01:03:58.697Z", "modified_at": "2023-05-03T05:36:23.041Z", "trial_interval": "year", "trial_interval_count": null, "name": "", "description": "blah toward against unhappy hot however", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 748822, "meter_interval": "year", "meter_interval_count": 628782, "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-07-21T02:35:25.261Z", "modified_at": "2025-05-19T02:18:24.778Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 162606, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 129651}}, {"created_at": "2024-10-15T01:42:45.699Z", "modified_at": "2026-05-02T20:18:21.996Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 814176, "maximum_amount": 880694, "preset_amount": 679018, "legacy": true}, {"created_at": "2025-03-12T04:59:11.184Z", "modified_at": "2025-06-11T08:05:03.606Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 433632, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-03-27T23:50:15.369Z", "modified_at": "2025-11-11T17:18:47.743Z", "type": "github_repository", "description": "whenever valiantly potentially till", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/share", "mime_type": "", "size": 53813, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-09T23:56:37.016Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-12-28T20:57:02.041Z", "size_readable": "", "public_url": "https://timely-ice-cream.info"}]}, "product_price": {"created_at": "2026-05-19T02:18:24.778Z", "modified_at": "2025-10-29T23:16:41.742Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 230020, "legacy": true}, "prices": {"key": [{"created_at": "2024-11-20T03:28:45.411Z", "modified_at": "2023-07-10T15:56:39.492Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 950981, "maximum_amount": 731029, "preset_amount": 814176, "legacy": true}], "key1": []}, "discount": {"duration": "once", "type": "percentage", "basis_points": 207850, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-11-25T05:44:46.275Z", "modified_at": "2023-04-04T00:17:57.339Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://colorful-packaging.biz", "proration_behavior": "prorate", "allow_customer_updates": false}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-07-25T14:36:16.639Z", "modified_at": "2025-08-30T21:44:31.855Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 817087, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2023-07-25T14:36:16.639Z", "modified_at": "2025-08-30T21:44:31.855Z", "id": "", "metadata": {}, "type": "checkbox", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 817087, "required": true}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "410": @@ -2925,7 +2944,7 @@ examples: application/json: {"customer_name": "John Doe", "customer_billing_address": null, "locale": "en", "allow_trial": false} responses: "200": - application/json: {"id": "", "created_at": "2024-07-23T03:29:25.334Z", "modified_at": "2023-09-18T08:32:05.837Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://oddball-final.com", "expires_at": "2024-03-02T01:02:20.912Z", "success_url": "https://illiterate-ownership.com/", "return_url": null, "embed_origin": "", "amount": 566134, "discount_amount": 108102, "net_amount": 304494, "tax_amount": 824826, "tax_behavior": null, "total_amount": 528924, "currency": "Comoro Franc", "allow_trial": null, "active_trial_interval": null, "active_trial_interval_count": 192380, "trial_end": "2023-10-31T15:08:35.342Z", "organization_id": "", "product_id": "", "product_price_id": null, "discount_id": "", "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "products": [{"id": "", "created_at": "2025-08-18T21:55:12.162Z", "modified_at": "2024-12-17T22:23:13.690Z", "trial_interval": "month", "trial_interval_count": 138062, "name": "", "description": "instead divert indeed oh phrase fisherman bowling but upon airmail", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": 192380, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-30T20:21:38.608Z", "modified_at": "2023-10-31T15:08:35.342Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 330194, "legacy": true}, {"created_at": "2023-08-03T11:06:01.091Z", "modified_at": "2024-11-28T20:27:45.245Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 566134, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-04-25T20:23:37.760Z", "modified_at": "2023-11-02T06:39:34.543Z", "type": "custom", "description": "rebuke sun intensely", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 291762, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-23T19:57:40.076Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-20T03:17:22.448Z", "size_readable": "", "public_url": "https://valuable-declaration.info"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 291762, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-23T19:57:40.076Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-20T03:17:22.448Z", "size_readable": "", "public_url": "https://valuable-declaration.info"}]}], "product": {"id": "", "created_at": "2024-01-05T10:50:28.777Z", "modified_at": "2024-04-21T11:49:06.390Z", "trial_interval": "day", "trial_interval_count": 636727, "name": "", "description": null, "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 192380, "meter_interval": "week", "meter_interval_count": 568620, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-16T12:17:31.920Z", "modified_at": "2024-08-02T16:48:24.620Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 67913, "maximum_amount": 437805, "preset_amount": 546487, "legacy": true}, {"created_at": "2024-02-08T00:22:42.494Z", "modified_at": "2025-10-13T00:42:35.938Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 317412, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 388726}}], "benefits": [{"id": "", "created_at": "2023-04-25T20:23:37.760Z", "modified_at": "2023-11-02T06:39:34.543Z", "type": "custom", "description": "rebuke sun intensely", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2023-04-25T20:23:37.760Z", "modified_at": "2023-11-02T06:39:34.543Z", "type": "custom", "description": "rebuke sun intensely", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-10-30T15:08:35.342Z", "modified_at": "2025-09-15T04:58:49.882Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 195677, "maximum_amount": 636727, "preset_amount": 784848, "legacy": true}, "prices": {"key": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 639439, "id": "", "name": "", "code": null}, "organization": {"created_at": "2023-09-07T11:25:07.070Z", "modified_at": "2023-05-12T10:01:16.059Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://mixed-netsuke.com/", "proration_behavior": "invoice", "allow_customer_updates": true}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-12-17T08:24:12.865Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 439492, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-12-17T08:24:12.865Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 439492, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-12-17T08:24:12.865Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 439492, "required": false}]} + application/json: {"id": "", "created_at": "2024-07-23T03:29:25.334Z", "modified_at": "2023-09-18T08:32:05.837Z", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://oddball-final.com", "expires_at": "2024-03-02T01:02:20.912Z", "success_url": "https://illiterate-ownership.com/", "return_url": null, "embed_origin": "", "amount": 566134, "discount_amount": 108102, "net_amount": 304494, "tax_amount": 824826, "tax_behavior": null, "total_amount": 528924, "currency": "Comoro Franc", "allow_trial": null, "active_trial_interval": null, "active_trial_interval_count": 192380, "trial_end": "2023-10-31T15:08:35.342Z", "organization_id": "", "product_id": "", "product_price_id": null, "discount_id": "", "allow_discount_codes": true, "require_billing_address": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": null, "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "optional", "city": "required", "postal_code": "required", "line1": "required", "line2": "disabled"}, "products": [{"id": "", "created_at": "2025-08-18T21:55:12.162Z", "modified_at": "2024-12-17T22:23:13.690Z", "trial_interval": "month", "trial_interval_count": 138062, "name": "", "description": "instead divert indeed oh phrase fisherman bowling but upon airmail", "visibility": "draft", "recurring_interval": "year", "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": 192380, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-07-30T20:21:38.608Z", "modified_at": "2023-10-31T15:08:35.342Z", "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 330194, "legacy": true}, {"created_at": "2023-08-03T11:06:01.091Z", "modified_at": "2024-11-28T20:27:45.245Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 566134, "legacy": true}], "benefits": [{"id": "", "created_at": "2023-04-25T20:23:37.760Z", "modified_at": "2023-11-02T06:39:34.543Z", "type": "custom", "description": "rebuke sun intensely", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 291762, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-23T19:57:40.076Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-20T03:17:22.448Z", "size_readable": "", "public_url": "https://valuable-declaration.info"}, {"id": "", "organization_id": "", "name": "", "path": "/sbin", "mime_type": "", "size": 291762, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-23T19:57:40.076Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-20T03:17:22.448Z", "size_readable": "", "public_url": "https://valuable-declaration.info"}]}], "product": {"id": "", "created_at": "2024-01-05T10:50:28.777Z", "modified_at": "2024-04-21T11:49:06.390Z", "trial_interval": "day", "trial_interval_count": 636727, "name": "", "description": null, "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 192380, "meter_interval": "week", "meter_interval_count": 568620, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-11-16T12:17:31.920Z", "modified_at": "2024-08-02T16:48:24.620Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 67913, "maximum_amount": 437805, "preset_amount": 546487, "legacy": true}, {"created_at": "2024-02-08T00:22:42.494Z", "modified_at": "2025-10-13T00:42:35.938Z", "id": "", "source": "catalog", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "unit_amount": "", "cap_amount": 317412, "meter_id": "", "meter": {"id": "", "name": "", "unit": "scalar", "custom_label": "", "custom_multiplier": 388726}}], "benefits": [{"id": "", "created_at": "2023-04-25T20:23:37.760Z", "modified_at": "2023-11-02T06:39:34.543Z", "type": "custom", "description": "rebuke sun intensely", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2023-04-25T20:23:37.760Z", "modified_at": "2023-11-02T06:39:34.543Z", "type": "custom", "description": "rebuke sun intensely", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": []}, "product_price": {"created_at": "2024-10-30T15:08:35.342Z", "modified_at": "2025-09-15T04:58:49.882Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 195677, "maximum_amount": 636727, "preset_amount": 784848, "legacy": true}, "prices": {"key": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 639439, "id": "", "name": "", "code": null}, "organization": {"created_at": "2023-09-07T11:25:07.070Z", "modified_at": "2023-05-12T10:01:16.059Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": "https://mixed-netsuke.com/", "proration_behavior": "invoice", "allow_customer_updates": true}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-12-17T08:24:12.865Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 439492, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-12-17T08:24:12.865Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 439492, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-03-31T08:25:33.432Z", "modified_at": "2025-12-17T08:24:12.865Z", "id": "", "metadata": {}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 439492, "required": false}]} "403": application/json: {"error": "AlreadyActiveSubscriptionError", "detail": ""} "404": @@ -2943,7 +2962,7 @@ examples: application/json: {"customer_name": "John Doe", "customer_billing_address": {"country": "US"}, "locale": "en", "allow_trial": false} responses: "200": - application/json: {"id": "", "created_at": "2023-03-02T01:35:00.551Z", "modified_at": "2024-02-06T20:08:33.394Z", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://earnest-mountain.biz/", "expires_at": "2023-05-03T06:41:51.564Z", "success_url": "https://amazing-airmail.biz", "return_url": "https://tinted-fun.com/", "embed_origin": "", "amount": 340812, "discount_amount": 983591, "net_amount": 119432, "tax_amount": 315526, "tax_behavior": "inclusive", "total_amount": 280139, "currency": "Lek", "allow_trial": true, "active_trial_interval": "day", "active_trial_interval_count": 366642, "trial_end": null, "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "required", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "required"}, "products": [], "product": {"id": "", "created_at": "2023-12-22T07:23:53.362Z", "modified_at": null, "trial_interval": "month", "trial_interval_count": 111568, "name": "", "description": null, "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 54804, "meter_interval": "day", "meter_interval_count": 366642, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-07-29T04:50:02.330Z", "modified_at": "2023-01-09T13:54:39.340Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 111568, "maximum_amount": 27642, "preset_amount": null, "legacy": true}, {"created_at": "2024-01-09T12:43:40.308Z", "modified_at": "2023-05-11T21:32:37.055Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 280139, "legacy": true}, {"created_at": "2024-03-30T19:58:01.924Z", "modified_at": "2023-04-26T10:07:32.939Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 304892, "maximum_amount": 308257, "preset_amount": 774216, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-02-20T06:26:56.148Z", "modified_at": "2024-03-08T22:44:58.041Z", "type": "downloadables", "description": "jovially condense sleepy as porter interior forage which", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 923962, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-15T18:38:57.765Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-04-15T23:25:20.301Z", "size_readable": "", "public_url": "https://measly-transparency.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 923962, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-15T18:38:57.765Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-04-15T23:25:20.301Z", "size_readable": "", "public_url": "https://measly-transparency.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 923962, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-15T18:38:57.765Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-04-15T23:25:20.301Z", "size_readable": "", "public_url": "https://measly-transparency.biz"}]}, "product_price": null, "prices": {"key": []}, "discount": {"duration": "repeating", "duration_in_months": 54804, "type": "fixed", "amount": 794922, "currency": "Lilangeni", "amounts": {"eur": 900, "usd": 1000}, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-03-10T13:26:15.309Z", "modified_at": "2025-01-22T15:08:25.650Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": null, "proration_behavior": "prorate", "allow_customer_updates": true}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-06-01T04:51:14.846Z", "modified_at": "2023-04-07T11:22:11.779Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 256145, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-01T04:51:14.846Z", "modified_at": "2023-04-07T11:22:11.779Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 256145, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-01T04:51:14.846Z", "modified_at": "2023-04-07T11:22:11.779Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 256145, "required": false}], "customer_session_token": ""} + application/json: {"id": "", "created_at": "2023-03-02T01:35:00.551Z", "modified_at": "2024-02-06T20:08:33.394Z", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://earnest-mountain.biz/", "expires_at": "2023-05-03T06:41:51.564Z", "success_url": "https://amazing-airmail.biz", "return_url": "https://tinted-fun.com/", "embed_origin": "", "amount": 340812, "discount_amount": 983591, "net_amount": 119432, "tax_amount": 315526, "tax_behavior": "inclusive", "total_amount": 280139, "currency": "Lek", "allow_trial": true, "active_trial_interval": "day", "active_trial_interval_count": 366642, "trial_end": null, "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "is_business_customer": true, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "required", "state": "required", "city": "disabled", "postal_code": "optional", "line1": "required", "line2": "required"}, "products": [], "product": {"id": "", "created_at": "2023-12-22T07:23:53.362Z", "modified_at": null, "trial_interval": "month", "trial_interval_count": 111568, "name": "", "description": null, "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": 54804, "meter_interval": "day", "meter_interval_count": 366642, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-07-29T04:50:02.330Z", "modified_at": "2023-01-09T13:54:39.340Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 111568, "maximum_amount": 27642, "preset_amount": null, "legacy": true}, {"created_at": "2024-01-09T12:43:40.308Z", "modified_at": "2023-05-11T21:32:37.055Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 280139, "legacy": true}, {"created_at": "2024-03-30T19:58:01.924Z", "modified_at": "2023-04-26T10:07:32.939Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": null, "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 304892, "maximum_amount": 308257, "preset_amount": 774216, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-02-20T06:26:56.148Z", "modified_at": "2024-03-08T22:44:58.041Z", "type": "downloadables", "description": "jovially condense sleepy as porter interior forage which", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 923962, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-15T18:38:57.765Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-04-15T23:25:20.301Z", "size_readable": "", "public_url": "https://measly-transparency.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 923962, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-15T18:38:57.765Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-04-15T23:25:20.301Z", "size_readable": "", "public_url": "https://measly-transparency.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 923962, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-15T18:38:57.765Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-04-15T23:25:20.301Z", "size_readable": "", "public_url": "https://measly-transparency.biz"}]}, "product_price": null, "prices": {"key": []}, "discount": {"duration": "repeating", "duration_in_months": 54804, "type": "fixed", "amount": 794922, "currency": "Lilangeni", "amounts": {"eur": 900, "usd": 1000}, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-03-10T13:26:15.309Z", "modified_at": "2025-01-22T15:08:25.650Z", "id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "name": "", "slug": "", "avatar_url": null, "proration_behavior": "prorate", "allow_customer_updates": true}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-06-01T04:51:14.846Z", "modified_at": "2023-04-07T11:22:11.779Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 256145, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-01T04:51:14.846Z", "modified_at": "2023-04-07T11:22:11.779Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 256145, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-06-01T04:51:14.846Z", "modified_at": "2023-04-07T11:22:11.779Z", "id": "", "metadata": {"key": ""}, "type": "number", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 256145, "required": false}], "customer_session_token": ""} "400": application/json: {"error": "PaymentError", "detail": ""} "403": @@ -3108,7 +3127,7 @@ examples: limit: 10 responses: "200": - application/json: {"items": [{"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "trial_interval": "year", "trial_interval_count": 379186, "metadata": {"key": 269522}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://wretched-peony.com/", "return_url": "https://punctual-glider.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 962255, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-05-30T08:30:33.019Z", "trial_interval": "week", "trial_interval_count": 269522, "name": "", "description": "partially yellow gadzooks gleefully reassuringly qua around", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 962255, "meter_interval": "year", "meter_interval_count": 379186, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 987277, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 349360}}, {"created_at": "2025-02-11T18:32:20.472Z", "modified_at": "2025-03-25T11:30:39.715Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 825064, "maximum_amount": 470214, "preset_amount": 586539, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}, {"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}]}], "discount": {"duration": "once", "duration_in_months": 354366, "type": "fixed", "basis_points": 140653, "created_at": "2024-08-19T15:49:46.374Z", "modified_at": "2024-11-08T09:13:07.988Z", "id": "", "metadata": {"key": 6965.21, "key1": 727000}, "name": "", "code": "", "starts_at": "2023-08-16T05:03:04.814Z", "ends_at": "2023-11-17T21:19:16.987Z", "max_redemptions": 65553, "redemptions_count": 331792, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://forsaken-hamburger.info/"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "trial_interval": "week", "trial_interval_count": 656194, "metadata": {"key": 269522}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://wretched-peony.com/", "return_url": "https://uniform-gallery.org/", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 379186, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-05-30T08:30:33.019Z", "trial_interval": "month", "trial_interval_count": 743139, "name": "", "description": "partially yellow gadzooks gleefully reassuringly qua around", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 379186, "meter_interval": "year", "meter_interval_count": 987277, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2026-02-11T18:32:20.472Z", "modified_at": "2026-03-25T11:30:39.715Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 645690, "maximum_amount": 436870, "preset_amount": 491106, "legacy": true}, {"created_at": "2025-01-30T11:54:59.602Z", "modified_at": "2025-12-23T14:11:20.089Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 267903, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}, {"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}]}], "discount": {"duration": "once", "duration_in_months": 354366, "type": "fixed", "basis_points": 140653, "created_at": "2024-08-19T15:49:46.374Z", "modified_at": "2024-11-08T09:13:07.988Z", "id": "", "metadata": {"key": 6965.21, "key1": 727000}, "name": "", "code": "", "starts_at": "2023-08-16T05:03:04.814Z", "ends_at": "2023-11-17T21:19:16.987Z", "max_redemptions": 65553, "redemptions_count": 331792, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://forsaken-hamburger.info/"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "trial_interval": "week", "trial_interval_count": 958373, "metadata": {"key": 269522}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://wretched-peony.com/", "return_url": "https://tidy-reorganisation.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 438333, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-05-30T08:30:33.019Z", "trial_interval": "year", "trial_interval_count": 470214, "name": "", "description": "partially yellow gadzooks gleefully reassuringly qua around", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 438333, "meter_interval": "month", "meter_interval_count": 118659, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-05-10T20:25:13.672Z", "modified_at": "2025-05-08T20:04:34.423Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 992328, "price_per_seat": 961970}], "minimum_seats": 142420, "maximum_seats": 574177}}, {"created_at": "2023-04-05T16:33:44.616Z", "modified_at": "2023-12-19T09:15:06.533Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 363007, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}, {"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}]}], "discount": {"duration": "once", "duration_in_months": 354366, "type": "fixed", "basis_points": 140653, "created_at": "2024-08-19T15:49:46.374Z", "modified_at": "2024-11-08T09:13:07.988Z", "id": "", "metadata": {"key": 6965.21, "key1": 727000}, "name": "", "code": "", "starts_at": "2023-08-16T05:03:04.814Z", "ends_at": "2023-11-17T21:19:16.987Z", "max_redemptions": 65553, "redemptions_count": 331792, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://forsaken-hamburger.info/"}], "pagination": {"total_count": 226341, "max_page": 804607}} + application/json: {"items": [{"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "trial_interval": "year", "trial_interval_count": 379186, "metadata": {"key": 269522}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://wretched-peony.com/", "return_url": "https://punctual-glider.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 962255, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-05-30T08:30:33.019Z", "trial_interval": "week", "trial_interval_count": 269522, "name": "", "description": "partially yellow gadzooks gleefully reassuringly qua around", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 962255, "meter_interval": "year", "meter_interval_count": 379186, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "id": "", "source": "ad_hoc", "amount_type": "metered_unit", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "unit_amount": "", "cap_amount": 987277, "meter_id": "", "meter": {"id": "", "name": "", "unit": "custom", "custom_label": "", "custom_multiplier": 349360}}, {"created_at": "2025-02-11T18:32:20.472Z", "modified_at": "2025-03-25T11:30:39.715Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 825064, "maximum_amount": 470214, "preset_amount": 586539, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}, {"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}]}], "discount": {"duration": "repeating", "duration_in_months": 645777, "type": "fixed", "basis_points": 1000, "created_at": "2026-08-25T12:12:46.370Z", "modified_at": "2025-01-17T21:34:00.236Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2026-12-18T01:19:50.712Z", "ends_at": "2024-06-25T19:18:22.799Z", "max_redemptions": 854933, "max_redemptions_per_customer": 874755, "redemptions_count": 389068, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://forsaken-hamburger.info/"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "trial_interval": "week", "trial_interval_count": 656194, "metadata": {"key": 269522}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://wretched-peony.com/", "return_url": "https://uniform-gallery.org/", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 379186, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-05-30T08:30:33.019Z", "trial_interval": "month", "trial_interval_count": 743139, "name": "", "description": "partially yellow gadzooks gleefully reassuringly qua around", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 379186, "meter_interval": "year", "meter_interval_count": 987277, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2026-02-11T18:32:20.472Z", "modified_at": "2026-03-25T11:30:39.715Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "minimum_amount": 645690, "maximum_amount": 436870, "preset_amount": 491106, "legacy": true}, {"created_at": "2025-01-30T11:54:59.602Z", "modified_at": "2025-12-23T14:11:20.089Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 267903, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}, {"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}]}], "discount": {"duration": "repeating", "duration_in_months": 645690, "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-04-23T19:25:34.418Z", "modified_at": "2025-06-22T06:02:42.231Z", "id": "", "metadata": {"key": 6962.44}, "name": "", "code": "", "starts_at": "2026-06-06T13:16:03.281Z", "ends_at": "2025-09-16T20:05:49.721Z", "max_redemptions": 576063, "max_redemptions_per_customer": 442868, "redemptions_count": 693884, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://forsaken-hamburger.info/"}, {"id": "", "created_at": "2024-12-08T18:31:28.967Z", "modified_at": "2025-08-25T12:12:46.370Z", "trial_interval": "week", "trial_interval_count": 958373, "metadata": {"key": 269522}, "payment_processor": "stripe", "client_secret": "", "success_url": "https://wretched-peony.com/", "return_url": "https://tidy-reorganisation.org", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 438333, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false}, "id": "", "created_at": "2025-06-23T06:29:06.861Z", "modified_at": "2024-05-30T08:30:33.019Z", "trial_interval": "year", "trial_interval_count": 470214, "name": "", "description": "partially yellow gadzooks gleefully reassuringly qua around", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 438333, "meter_interval": "month", "meter_interval_count": 118659, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-05-10T20:25:13.672Z", "modified_at": "2025-05-08T20:04:34.423Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 992328, "price_per_seat": 961970}], "minimum_seats": 142420, "maximum_seats": 574177}}, {"created_at": "2023-04-05T16:33:44.616Z", "modified_at": "2023-12-19T09:15:06.533Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 363007, "legacy": true}], "benefits": [{"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}, {"id": "", "created_at": "2025-01-11T23:38:31.265Z", "modified_at": "2023-05-01T01:24:54.811Z", "type": "downloadables", "description": "gosh french or slow bin competent tuba follower oof", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}, {"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 397996, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-04T19:29:48.554Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2023-11-06T19:24:06.160Z", "size_readable": "", "public_url": "https://pitiful-flint.org"}]}], "discount": {"duration": "repeating", "duration_in_months": 645777, "type": "fixed", "basis_points": 1000, "created_at": "2026-08-25T12:12:46.370Z", "modified_at": "2025-01-17T21:34:00.236Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2026-12-18T01:19:50.712Z", "ends_at": "2024-06-25T19:18:22.799Z", "max_redemptions": 854933, "max_redemptions_per_customer": 874755, "redemptions_count": 389068, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://forsaken-hamburger.info/"}], "pagination": {"total_count": 226341, "max_page": 804607}} "422": application/json: {} checkout-links:create: @@ -3127,7 +3146,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2023-11-21T22:10:03.326Z", "modified_at": null, "trial_interval": "day", "trial_interval_count": 12647, "metadata": {"key": ""}, "payment_processor": "stripe", "client_secret": "", "success_url": null, "return_url": "https://gentle-adrenalin.com/", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 5088, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": ""}, "id": "", "created_at": "2025-12-17T13:45:34.269Z", "modified_at": "2024-09-15T19:56:47.175Z", "trial_interval": null, "trial_interval_count": 980330, "name": "", "description": "deduce warlike throughout unless", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 5088, "meter_interval": "day", "meter_interval_count": 12647, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-09-30T15:58:20.160Z", "modified_at": "2025-12-30T10:11:14.173Z", "type": "license_keys", "description": "rust duh parody the aside duh or till since", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}]}, {"metadata": {"key": ""}, "id": "", "created_at": "2025-12-17T13:45:34.269Z", "modified_at": "2024-09-15T19:56:47.175Z", "trial_interval": "month", "trial_interval_count": 425425, "name": "", "description": "deduce warlike throughout unless", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 12647, "meter_interval": null, "meter_interval_count": 980330, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-09-30T15:58:20.160Z", "modified_at": "2025-12-30T10:11:14.173Z", "type": "license_keys", "description": "rust duh parody the aside duh or till since", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}]}], "discount": {"duration": "repeating", "duration_in_months": 526329, "type": "fixed", "basis_points": 817530, "created_at": "2023-01-13T01:07:25.826Z", "modified_at": "2023-06-30T15:49:18.642Z", "id": "", "metadata": {"key": 7693.39, "key1": ""}, "name": "", "code": "", "starts_at": "2023-05-31T14:32:10.257Z", "ends_at": "2025-08-14T11:27:11.136Z", "max_redemptions": 986007, "redemptions_count": 791953, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://strange-coal.info"} + application/json: {"id": "", "created_at": "2023-11-21T22:10:03.326Z", "modified_at": null, "trial_interval": "day", "trial_interval_count": 12647, "metadata": {"key": ""}, "payment_processor": "stripe", "client_secret": "", "success_url": null, "return_url": "https://gentle-adrenalin.com/", "label": "", "allow_discount_codes": false, "require_billing_address": false, "discount_id": "", "seats": 5088, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": ""}, "id": "", "created_at": "2025-12-17T13:45:34.269Z", "modified_at": "2024-09-15T19:56:47.175Z", "trial_interval": null, "trial_interval_count": 980330, "name": "", "description": "deduce warlike throughout unless", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 5088, "meter_interval": "day", "meter_interval_count": 12647, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-09-30T15:58:20.160Z", "modified_at": "2025-12-30T10:11:14.173Z", "type": "license_keys", "description": "rust duh parody the aside duh or till since", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}]}, {"metadata": {"key": ""}, "id": "", "created_at": "2025-12-17T13:45:34.269Z", "modified_at": "2024-09-15T19:56:47.175Z", "trial_interval": "month", "trial_interval_count": 425425, "name": "", "description": "deduce warlike throughout unless", "visibility": "public", "recurring_interval": "year", "recurring_interval_count": 12647, "meter_interval": null, "meter_interval_count": 980330, "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-09-30T15:58:20.160Z", "modified_at": "2025-12-30T10:11:14.173Z", "type": "license_keys", "description": "rust duh parody the aside duh or till since", "selectable": true, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/bin", "mime_type": "", "size": 382802, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-09T14:12:50.660Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2025-02-08T05:29:21.833Z", "size_readable": "", "public_url": "https://bogus-pocket-watch.net"}]}], "discount": {"duration": "repeating", "duration_in_months": 526329, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-01-13T01:07:25.826Z", "modified_at": "2023-06-30T15:49:18.642Z", "id": "", "metadata": {"key": 7693.39, "key1": ""}, "name": "", "code": "", "starts_at": "2023-05-31T14:32:10.257Z", "ends_at": "2025-08-14T11:27:11.136Z", "max_redemptions": 986007, "max_redemptions_per_customer": null, "redemptions_count": 791953, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://strange-coal.info"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3141,7 +3160,7 @@ examples: application/json: {} responses: "200": - application/json: {"id": "", "created_at": "2024-02-14T03:05:16.462Z", "modified_at": "2023-10-02T17:43:12.732Z", "trial_interval": "year", "trial_interval_count": 763251, "metadata": {"key": 634930, "key1": 386368, "key2": 65111}, "payment_processor": "stripe", "client_secret": "", "success_url": null, "return_url": "https://extroverted-role.info", "label": "", "allow_discount_codes": false, "require_billing_address": true, "discount_id": "", "seats": 758989, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": true}, "id": "", "created_at": "2025-10-17T09:34:18.549Z", "modified_at": "2023-05-08T01:48:20.829Z", "trial_interval": "month", "trial_interval_count": 386368, "name": "", "description": "gloat quadruple baggy wealthy definitive gummy", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 758989, "meter_interval": "year", "meter_interval_count": 763251, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-04-14T19:49:07.741Z", "modified_at": "2025-02-04T14:09:42.059Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 250061, "legacy": true}, {"created_at": "2023-03-13T08:40:55.883Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 250061, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 93657, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-07T04:45:04.362Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-05-27T13:57:42.899Z", "size_readable": "", "public_url": "https://thorny-underneath.net/"}]}], "discount": {"duration": "once", "duration_in_months": 714829, "type": "fixed", "basis_points": 328433, "created_at": "2024-10-09T01:37:50.990Z", "modified_at": "2024-09-18T07:54:19.084Z", "id": "", "metadata": {"key": true, "key1": 836096}, "name": "", "code": "", "starts_at": "2023-07-16T07:36:44.270Z", "ends_at": "2024-02-21T08:23:11.430Z", "max_redemptions": 998703, "redemptions_count": 730226, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://empty-importance.org"} + application/json: {"id": "", "created_at": "2024-02-14T03:05:16.462Z", "modified_at": "2023-10-02T17:43:12.732Z", "trial_interval": "year", "trial_interval_count": 763251, "metadata": {"key": 634930, "key1": 386368, "key2": 65111}, "payment_processor": "stripe", "client_secret": "", "success_url": null, "return_url": "https://extroverted-role.info", "label": "", "allow_discount_codes": false, "require_billing_address": true, "discount_id": "", "seats": 758989, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": true}, "id": "", "created_at": "2025-10-17T09:34:18.549Z", "modified_at": "2023-05-08T01:48:20.829Z", "trial_interval": "month", "trial_interval_count": 386368, "name": "", "description": "gloat quadruple baggy wealthy definitive gummy", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 758989, "meter_interval": "year", "meter_interval_count": 763251, "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2025-04-14T19:49:07.741Z", "modified_at": "2025-02-04T14:09:42.059Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": null, "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "price_amount": 250061, "legacy": true}, {"created_at": "2023-03-13T08:40:55.883Z", "modified_at": null, "id": "", "source": "ad_hoc", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 250061, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/sys", "mime_type": "", "size": 93657, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-07T04:45:04.362Z", "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2024-05-27T13:57:42.899Z", "size_readable": "", "public_url": "https://thorny-underneath.net/"}]}], "discount": {"duration": "once", "duration_in_months": 714829, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-10-09T01:37:50.990Z", "modified_at": "2024-09-18T07:54:19.084Z", "id": "", "metadata": {"key": true, "key1": 836096}, "name": "", "code": "", "starts_at": "2023-07-16T07:36:44.270Z", "ends_at": "2024-02-21T08:23:11.430Z", "max_redemptions": 998703, "max_redemptions_per_customer": 250673, "redemptions_count": 730226, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "url": "https://empty-importance.org"} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3231,7 +3250,7 @@ examples: application/json: {"name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "type": "fixed", "duration": "once"} responses: "201": - application/json: {"duration": "repeating", "duration_in_months": 585985, "type": "percentage", "basis_points": 554206, "created_at": "2024-06-28T22:01:22.215Z", "modified_at": "2024-08-18T19:27:56.279Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2025-04-24T07:32:57.459Z", "ends_at": "2024-12-27T08:56:12.284Z", "max_redemptions": 573217, "redemptions_count": 692992, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": []} + application/json: {"duration": "repeating", "type": "percentage", "basis_points": 554206, "created_at": "2024-06-28T22:01:22.215Z", "modified_at": "2024-08-18T19:27:56.279Z", "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2025-04-24T07:32:57.459Z", "ends_at": "2024-12-27T08:56:12.284Z", "max_redemptions": 573217, "max_redemptions_per_customer": null, "redemptions_count": 692992, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": []} "422": application/json: {} discounts:get: @@ -3241,7 +3260,7 @@ examples: id: "" responses: "200": - application/json: {"duration": "repeating", "type": "percentage", "basis_points": 1000, "created_at": "2024-03-15T08:30:29.999Z", "modified_at": "2023-12-09T21:09:31.201Z", "id": "", "metadata": {"key": false, "key1": true, "key2": true}, "name": "", "code": "", "starts_at": "2025-03-11T01:59:19.814Z", "ends_at": "2025-08-29T20:55:20.108Z", "max_redemptions": 808201, "redemptions_count": 819832, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false, "key1": 7712.16}, "id": "", "created_at": "2025-12-07T10:15:11.739Z", "modified_at": "2023-05-27T19:37:11.604Z", "trial_interval": "month", "trial_interval_count": null, "name": "", "description": "oh prestigious of quash brightly under", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 509917, "meter_interval": "month", "meter_interval_count": null, "is_recurring": false, "is_archived": false, "organization_id": ""}, {"metadata": {"key": false, "key1": 7712.16}, "id": "", "created_at": "2025-12-07T10:15:11.739Z", "modified_at": "2023-05-27T19:37:11.604Z", "trial_interval": "month", "trial_interval_count": 780105, "name": "", "description": "oh prestigious of quash brightly under", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": null, "meter_interval": "month", "meter_interval_count": 780105, "is_recurring": false, "is_archived": false, "organization_id": ""}]} + application/json: {"duration": "repeating", "type": "percentage", "basis_points": 1000, "created_at": "2024-03-15T08:30:29.999Z", "modified_at": "2023-12-09T21:09:31.201Z", "id": "", "metadata": {"key": false, "key1": true, "key2": true}, "name": "", "code": "", "starts_at": "2025-03-11T01:59:19.814Z", "ends_at": "2025-08-29T20:55:20.108Z", "max_redemptions": 808201, "max_redemptions_per_customer": 509917, "redemptions_count": 819832, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": false, "key1": 7712.16}, "id": "", "created_at": "2025-12-07T10:15:11.739Z", "modified_at": "2023-05-27T19:37:11.604Z", "trial_interval": "month", "trial_interval_count": null, "name": "", "description": "oh prestigious of quash brightly under", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 509917, "meter_interval": "month", "meter_interval_count": null, "is_recurring": false, "is_archived": false, "organization_id": ""}, {"metadata": {"key": false, "key1": 7712.16}, "id": "", "created_at": "2025-12-07T10:15:11.739Z", "modified_at": "2023-05-27T19:37:11.604Z", "trial_interval": "month", "trial_interval_count": 780105, "name": "", "description": "oh prestigious of quash brightly under", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": null, "meter_interval": "month", "meter_interval_count": 780105, "is_recurring": false, "is_archived": false, "organization_id": ""}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3255,7 +3274,7 @@ examples: application/json: {} responses: "200": - application/json: {"duration": "once", "duration_in_months": 117, "type": "fixed", "basis_points": 1000, "created_at": "2024-09-05T17:29:55.720Z", "modified_at": "2023-02-23T18:50:42.952Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2025-10-11T01:08:57.352Z", "ends_at": "2024-11-01T23:56:36.003Z", "max_redemptions": null, "redemptions_count": 105908, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 2514.5, "key1": 69188, "key2": ""}, "id": "", "created_at": "2024-01-28T18:21:17.317Z", "modified_at": "2024-01-29T23:13:33.377Z", "trial_interval": null, "trial_interval_count": null, "name": "", "description": "advocate puppet gah stitcher menacing beret bootleg worldly", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": ""}]} + application/json: {"duration": "once", "duration_in_months": 117, "type": "fixed", "basis_points": 1000, "created_at": "2024-09-05T17:29:55.720Z", "modified_at": "2023-02-23T18:50:42.952Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2025-10-11T01:08:57.352Z", "ends_at": "2024-11-01T23:56:36.003Z", "max_redemptions": null, "max_redemptions_per_customer": null, "redemptions_count": 105908, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": [{"metadata": {"key": 2514.5, "key1": 69188, "key2": ""}, "id": "", "created_at": "2024-01-28T18:21:17.317Z", "modified_at": "2024-01-29T23:13:33.377Z", "trial_interval": null, "trial_interval_count": null, "name": "", "description": "advocate puppet gah stitcher menacing beret bootleg worldly", "visibility": "draft", "recurring_interval": "month", "recurring_interval_count": null, "meter_interval": null, "meter_interval_count": null, "is_recurring": false, "is_archived": true, "organization_id": ""}]} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -3876,7 +3895,7 @@ examples: application/json: {"billing_address": {"country": "US"}} responses: "200": - application/json: {"id": "", "created_at": "2023-07-07T02:27:33.933Z", "modified_at": "2025-12-06T08:14:38.290Z", "status": "pending", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-05-10T23:50:32.891Z", "modified_at": "2023-02-18T10:28:10.963Z", "metadata": {"key": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-09-27T12:39:54.419Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 364993, "key1": true, "key2": true}, "id": "", "created_at": "2023-04-12T21:30:23.720Z", "modified_at": "2025-07-30T06:39:42.272Z", "trial_interval": "day", "trial_interval_count": 687169, "name": "", "description": "yippee amid wire knowingly an er reproachfully mechanically who gym", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 241006, "meter_interval": "day", "meter_interval_count": 687169, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 919384, "type": "fixed", "basis_points": 485397, "created_at": "2023-04-20T01:15:36.927Z", "modified_at": "2025-08-12T14:50:46.554Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-06-20T13:39:02.935Z", "ends_at": "2024-06-17T01:44:44.306Z", "max_redemptions": 991144, "redemptions_count": 882356, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": false}, "created_at": "2025-05-14T12:37:49.790Z", "modified_at": "2023-07-19T20:08:36.520Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 170714, "status": "incomplete", "current_period_start": "2025-06-29T04:23:47.957Z", "current_period_end": "2024-06-02T02:08:37.593Z", "current_meter_period_start": "2024-01-29T06:32:22.248Z", "current_meter_period_end": "2026-01-26T07:02:53.111Z", "trial_start": "2023-01-29T06:32:22.248Z", "trial_end": "2025-01-26T07:02:53.111Z", "cancel_at_period_end": true, "canceled_at": "2024-06-26T07:14:15.241Z", "started_at": "2025-06-03T07:15:00.193Z", "ends_at": "2023-09-17T15:31:40.614Z", "ended_at": "2024-06-15T15:33:26.067Z", "pause_at_period_end": false, "paused_at": "2024-12-02T14:36:44.441Z", "resumes_at": "2026-03-13T05:39:18.783Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} + application/json: {"id": "", "created_at": "2023-07-07T02:27:33.933Z", "modified_at": "2025-12-06T08:14:38.290Z", "status": "pending", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_update", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-05-10T23:50:32.891Z", "modified_at": "2023-02-18T10:28:10.963Z", "metadata": {"key": false}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-09-27T12:39:54.419Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 364993, "key1": true, "key2": true}, "id": "", "created_at": "2023-04-12T21:30:23.720Z", "modified_at": "2025-07-30T06:39:42.272Z", "trial_interval": "day", "trial_interval_count": 687169, "name": "", "description": "yippee amid wire knowingly an er reproachfully mechanically who gym", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 241006, "meter_interval": "day", "meter_interval_count": 687169, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "repeating", "duration_in_months": 919384, "type": "fixed", "basis_points": 485397, "created_at": "2023-04-20T01:15:36.927Z", "modified_at": "2025-08-12T14:50:46.554Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2023-06-20T13:39:02.935Z", "ends_at": "2024-06-17T01:44:44.306Z", "max_redemptions": 991144, "max_redemptions_per_customer": 170714, "redemptions_count": 882356, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {"key": true, "key1": false}, "created_at": "2025-05-14T12:37:49.790Z", "modified_at": "2023-07-19T20:08:36.520Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 170714, "status": "incomplete", "current_period_start": "2025-06-29T04:23:47.957Z", "current_period_end": "2024-06-02T02:08:37.593Z", "current_meter_period_start": "2024-01-29T06:32:22.248Z", "current_meter_period_end": "2026-01-26T07:02:53.111Z", "trial_start": "2023-01-29T06:32:22.248Z", "trial_end": "2025-01-26T07:02:53.111Z", "cancel_at_period_end": true, "canceled_at": "2024-06-26T07:14:15.241Z", "started_at": "2025-06-03T07:15:00.193Z", "ends_at": "2023-09-17T15:31:40.614Z", "ended_at": "2024-06-15T15:33:26.067Z", "pause_at_period_end": false, "paused_at": "2024-12-02T14:36:44.441Z", "resumes_at": "2026-03-13T05:39:18.783Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "unused", "customer_cancellation_comment": ""}, "items": [{"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}, {"created_at": "2025-11-07T03:04:15.446Z", "modified_at": "2024-02-25T04:48:42.731Z", "id": "", "label": "", "amount": 527788, "tax_amount": 941221, "proration": true, "product_price_id": ""}], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} "404": application/json: {"error": "ResourceNotFound", "detail": ""} "422": @@ -4303,7 +4322,7 @@ examples: application/json: {"product_id": "d8dd2de1-21b7-4a41-8bc3-ce909c0cfe23", "customer_id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b"} responses: "201": - application/json: {"created_at": "2024-05-07T09:41:55.474Z", "modified_at": "2024-07-21T03:47:24.582Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 261853, "status": "incomplete", "current_period_start": "2025-05-30T22:14:44.546Z", "current_period_end": "2024-03-11T09:56:01.675Z", "current_meter_period_start": "2025-05-07T09:41:55.474Z", "current_meter_period_end": "2025-07-21T03:47:24.582Z", "trial_start": null, "trial_end": "2024-06-17T00:10:04.156Z", "cancel_at_period_end": true, "canceled_at": "2024-10-16T05:43:54.436Z", "started_at": "2023-08-13T14:15:39.992Z", "ends_at": "2023-02-26T21:36:33.823Z", "ended_at": null, "pause_at_period_end": false, "paused_at": "2024-05-27T02:50:40.456Z", "resumes_at": "2025-11-18T19:00:14.030Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-05-11T11:37:46.426Z", "modified_at": "2023-08-28T20:40:19.067Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-05-09T04:32:44.403Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-03-12T12:11:55.173Z", "modified_at": "2025-12-06T22:23:14.254Z", "trial_interval": "week", "trial_interval_count": 71746, "name": "", "description": "uneven lest shocked alongside", "visibility": "private", "recurring_interval": null, "recurring_interval_count": 106391, "meter_interval": "day", "meter_interval_count": 486320, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [], "benefits": [{"id": "", "created_at": "2025-08-08T23:08:58.031Z", "modified_at": "2023-08-16T21:10:10.979Z", "type": "downloadables", "description": "consign ick circle", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": ""}, "visibility": "private", "properties": {"archived": {"key": false, "key1": true, "key2": false}, "files": ["", "", ""]}, "visibility_configurable": true}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-12-25T03:27:59.537Z", "modified_at": "2025-03-22T12:04:54.293Z", "id": "", "metadata": {}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 335043, "required": true}]}, "discount": {"duration": "repeating", "duration_in_months": 470978, "type": "percentage", "basis_points": 1000, "created_at": "2023-01-02T12:02:59.434Z", "modified_at": "2024-12-18T23:17:27.575Z", "id": "", "metadata": {"key": 583422}, "name": "", "code": "", "starts_at": "2024-06-09T18:09:09.489Z", "ends_at": "2025-04-22T20:10:26.485Z", "max_redemptions": 345910, "redemptions_count": 235299, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-08-05T18:43:39.547Z", "modified_at": "2023-03-08T07:36:56.095Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 984500, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-07-21T03:47:24.582Z", "modified_at": "2024-10-13T23:47:40.655Z", "id": "", "applies_at": "2024-05-27T02:50:40.456Z", "product_id": "", "seats": 397275}} + application/json: {"created_at": "2024-05-07T09:41:55.474Z", "modified_at": "2024-07-21T03:47:24.582Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 261853, "status": "incomplete", "current_period_start": "2025-05-30T22:14:44.546Z", "current_period_end": "2024-03-11T09:56:01.675Z", "current_meter_period_start": "2025-05-07T09:41:55.474Z", "current_meter_period_end": "2025-07-21T03:47:24.582Z", "trial_start": null, "trial_end": "2024-06-17T00:10:04.156Z", "cancel_at_period_end": true, "canceled_at": "2024-10-16T05:43:54.436Z", "started_at": "2023-08-13T14:15:39.992Z", "ends_at": "2023-02-26T21:36:33.823Z", "ended_at": null, "pause_at_period_end": false, "paused_at": "2024-05-27T02:50:40.456Z", "resumes_at": "2025-11-18T19:00:14.030Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "missing_features", "customer_cancellation_comment": "", "metadata": {}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-05-11T11:37:46.426Z", "modified_at": "2023-08-28T20:40:19.067Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2023-05-09T04:32:44.403Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-03-12T12:11:55.173Z", "modified_at": "2025-12-06T22:23:14.254Z", "trial_interval": "week", "trial_interval_count": 71746, "name": "", "description": "uneven lest shocked alongside", "visibility": "private", "recurring_interval": null, "recurring_interval_count": 106391, "meter_interval": "day", "meter_interval_count": 486320, "is_recurring": false, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [], "benefits": [{"id": "", "created_at": "2025-08-08T23:08:58.031Z", "modified_at": "2023-08-16T21:10:10.979Z", "type": "downloadables", "description": "consign ick circle", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {"key": ""}, "visibility": "private", "properties": {"archived": {"key": false, "key1": true, "key2": false}, "files": ["", "", ""]}, "visibility_configurable": true}], "medias": [], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-12-25T03:27:59.537Z", "modified_at": "2025-03-22T12:04:54.293Z", "id": "", "metadata": {}, "type": "date", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 335043, "required": true}]}, "discount": {"duration": "repeating", "duration_in_months": 470978, "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2023-01-02T12:02:59.434Z", "modified_at": "2024-12-18T23:17:27.575Z", "id": "", "metadata": {"key": 583422}, "name": "", "code": "", "starts_at": "2024-06-09T18:09:09.489Z", "ends_at": "2025-04-22T20:10:26.485Z", "max_redemptions": 345910, "max_redemptions_per_customer": 394526, "redemptions_count": 235299, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2023-08-05T18:43:39.547Z", "modified_at": "2023-03-08T07:36:56.095Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 984500, "legacy": true}], "meters": [], "pending_update": {"created_at": "2025-07-21T03:47:24.582Z", "modified_at": "2024-10-13T23:47:40.655Z", "id": "", "applies_at": "2024-05-27T02:50:40.456Z", "product_id": "", "seats": 397275}} "422": application/json: {} customer_portal:wallets:list: @@ -4455,7 +4474,7 @@ examples: _endpointsubscription_past_due_post: speakeasy-default-endpointsubscription-past-due-post: requestBody: - application/json: {"type": "subscription.past_due", "timestamp": "2024-08-08T08:08:34.879Z", "data": {"created_at": "2024-08-04T16:17:07.577Z", "modified_at": "2024-12-31T22:57:08.265Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "week", "recurring_interval_count": 546644, "status": "past_due", "current_period_start": "2024-11-30T09:38:02.409Z", "current_period_end": "2025-05-17T12:45:53.215Z", "current_meter_period_start": "2025-08-04T16:17:07.577Z", "current_meter_period_end": "2025-12-31T22:57:08.265Z", "trial_start": "2025-08-11T03:24:52.872Z", "trial_end": "2025-11-23T15:14:32.091Z", "cancel_at_period_end": true, "canceled_at": "2025-11-23T20:41:28.274Z", "started_at": "2023-06-07T00:58:09.164Z", "ends_at": "2023-04-30T18:50:10.865Z", "ended_at": "2024-10-24T10:41:48.448Z", "pause_at_period_end": true, "paused_at": "2025-12-15T04:39:51.374Z", "resumes_at": "2025-09-12T10:41:08.869Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "metadata": {"key": 88296}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-10-23T07:41:47.878Z", "modified_at": "2023-03-23T16:08:53.531Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-03-24T05:44:38.605Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-12-22T12:33:51.204Z", "modified_at": "2025-12-27T02:54:47.268Z", "trial_interval": "year", "trial_interval_count": 142723, "name": "", "description": "within tomb spectacles um after when chunter inwardly brr", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 49747, "meter_interval": "week", "meter_interval_count": 987201, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/bin", "mime_type": "", "size": 189018, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": "2024-10-16T11:09:40.675Z", "version": null, "service": "product_media", "is_uploaded": true, "created_at": "2023-04-25T02:01:36.979Z", "size_readable": "", "public_url": "https://exalted-unblinking.name"}], "attached_custom_fields": []}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 1000, "created_at": "2024-09-15T03:00:42.261Z", "modified_at": "2023-01-21T01:11:57.675Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-05-03T02:53:30.217Z", "ends_at": "2025-12-13T03:09:13.905Z", "max_redemptions": 205428, "redemptions_count": 683480, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [], "pending_update": {"created_at": "2025-08-04T16:17:07.577Z", "modified_at": "2025-12-31T22:57:08.265Z", "id": "", "applies_at": "2025-01-16T14:41:32.716Z", "product_id": "", "seats": 638140}}} + application/json: {"type": "subscription.past_due", "timestamp": "2024-08-08T08:08:34.879Z", "data": {"created_at": "2024-08-04T16:17:07.577Z", "modified_at": "2024-12-31T22:57:08.265Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "week", "recurring_interval_count": 546644, "status": "past_due", "current_period_start": "2024-11-30T09:38:02.409Z", "current_period_end": "2025-05-17T12:45:53.215Z", "current_meter_period_start": "2025-08-04T16:17:07.577Z", "current_meter_period_end": "2025-12-31T22:57:08.265Z", "trial_start": "2025-08-11T03:24:52.872Z", "trial_end": "2025-11-23T15:14:32.091Z", "cancel_at_period_end": true, "canceled_at": "2025-11-23T20:41:28.274Z", "started_at": "2023-06-07T00:58:09.164Z", "ends_at": "2023-04-30T18:50:10.865Z", "ended_at": "2024-10-24T10:41:48.448Z", "pause_at_period_end": true, "paused_at": "2025-12-15T04:39:51.374Z", "resumes_at": "2025-09-12T10:41:08.869Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "customer_service", "customer_cancellation_comment": "", "metadata": {"key": 88296}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2023-10-23T07:41:47.878Z", "modified_at": "2023-03-23T16:08:53.531Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-03-24T05:44:38.605Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-12-22T12:33:51.204Z", "modified_at": "2025-12-27T02:54:47.268Z", "trial_interval": "year", "trial_interval_count": 142723, "name": "", "description": "within tomb spectacles um after when chunter inwardly brr", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 49747, "meter_interval": "week", "meter_interval_count": 987201, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/bin", "mime_type": "", "size": 189018, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": "2024-10-16T11:09:40.675Z", "version": null, "service": "product_media", "is_uploaded": true, "created_at": "2023-04-25T02:01:36.979Z", "size_readable": "", "public_url": "https://exalted-unblinking.name"}], "attached_custom_fields": []}, "discount": {"duration": "forever", "type": "percentage", "basis_points": 1000, "created_at": "2024-09-15T03:00:42.261Z", "modified_at": "2023-01-21T01:11:57.675Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2024-05-03T02:53:30.217Z", "ends_at": "2025-12-13T03:09:13.905Z", "max_redemptions": 205428, "max_redemptions_per_customer": 581674, "redemptions_count": 683480, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [], "pending_update": {"created_at": "2025-08-04T16:17:07.577Z", "modified_at": "2025-12-31T22:57:08.265Z", "id": "", "applies_at": "2025-01-16T14:41:32.716Z", "product_id": "", "seats": 638140}}} responses: "200": application/json: "" @@ -4585,7 +4604,7 @@ examples: _endpointcheckout_expired_post: speakeasy-default-endpointcheckout-expired-post: requestBody: - application/json: {"type": "checkout.expired", "timestamp": "2025-07-24T10:11:01.088Z", "data": {"id": "", "created_at": "2024-05-04T16:36:16.430Z", "modified_at": "2025-07-14T11:38:07.998Z", "payment_processor": "stripe", "status": "open", "client_secret": "", "url": "https://husky-advertisement.biz/", "expires_at": "2026-08-22T23:38:29.173Z", "success_url": "https://wasteful-premeditation.org", "return_url": "https://torn-toothpick.name", "embed_origin": "", "amount": 104765, "discount_amount": 723749, "net_amount": 208098, "tax_amount": 740520, "tax_behavior": "inclusive", "total_amount": 729691, "currency": "Kwanza", "allow_trial": true, "active_trial_interval": "day", "active_trial_interval_count": 884805, "trial_end": "2026-12-24T16:37:35.525Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "required", "postal_code": "disabled", "line1": "required", "line2": "required"}, "trial_interval": "year", "trial_interval_count": 328311, "metadata": {}, "external_customer_id": "", "products": [{"id": "", "created_at": "2025-10-12T05:44:49.530Z", "modified_at": "2026-12-12T21:27:56.142Z", "trial_interval": "day", "trial_interval_count": 736956, "name": "", "description": "woot absent selfishly maestro frail unethically anguished solder", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 422566, "meter_interval": "day", "meter_interval_count": 511391, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-02-20T20:34:14.140Z", "modified_at": null, "type": "meter_credit", "description": "yawn sharply inside ah lest who into", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2025-07-25T20:35:56.555Z", "modified_at": "2025-07-29T02:50:59.712Z", "trial_interval": "week", "trial_interval_count": 272557, "name": "", "description": null, "visibility": "draft", "recurring_interval": "day", "recurring_interval_count": null, "meter_interval": "week", "meter_interval_count": 15552, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2026-12-31T01:02:14.398Z", "modified_at": "2025-02-10T09:37:50.330Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "day", "minimum_amount": 570455, "maximum_amount": 109251, "preset_amount": 453008, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-02-20T20:34:14.140Z", "modified_at": null, "type": "meter_credit", "description": "yawn sharply inside ah lest who into", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 404380, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2026-07-14T04:50:58.042Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2026-09-12T12:00:29.248Z", "size_readable": "", "public_url": "https://nervous-mozzarella.net/"}]}, "product_price": {"created_at": "2025-04-26T17:11:01.549Z", "modified_at": "2024-01-18T01:05:34.563Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 993318, "maximum_amount": 699372, "preset_amount": 757943, "legacy": true}, "prices": {"key": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 1000, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {}}} + application/json: {"type": "checkout.expired", "timestamp": "2025-07-24T10:11:01.088Z", "data": {"id": "", "created_at": "2024-05-04T16:36:16.430Z", "modified_at": "2025-07-14T11:38:07.998Z", "payment_processor": "stripe", "status": "open", "client_secret": "", "url": "https://husky-advertisement.biz/", "expires_at": "2026-08-22T23:38:29.173Z", "success_url": "https://wasteful-premeditation.org", "return_url": "https://torn-toothpick.name", "embed_origin": "", "amount": 104765, "discount_amount": 723749, "net_amount": 208098, "tax_amount": 740520, "tax_behavior": "inclusive", "total_amount": 729691, "currency": "Kwanza", "allow_trial": true, "active_trial_interval": "day", "active_trial_interval_count": 884805, "trial_end": "2026-12-24T16:37:35.525Z", "organization_id": "", "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "require_billing_address": false, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "is_business_customer": false, "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_name": "", "customer_billing_address": {"country": "US"}, "customer_tax_id": "", "payment_method_type": "", "payment_processor_metadata": {"key": ""}, "billing_address_fields": {"country": "disabled", "state": "disabled", "city": "required", "postal_code": "disabled", "line1": "required", "line2": "required"}, "trial_interval": "year", "trial_interval_count": 328311, "metadata": {}, "external_customer_id": "", "products": [{"id": "", "created_at": "2025-10-12T05:44:49.530Z", "modified_at": "2026-12-12T21:27:56.142Z", "trial_interval": "day", "trial_interval_count": 736956, "name": "", "description": "woot absent selfishly maestro frail unethically anguished solder", "visibility": "private", "recurring_interval": "month", "recurring_interval_count": 422566, "meter_interval": "day", "meter_interval_count": 511391, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [], "benefits": [{"id": "", "created_at": "2024-02-20T20:34:14.140Z", "modified_at": null, "type": "meter_credit", "description": "yawn sharply inside ah lest who into", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": ""}], "medias": []}], "product": {"id": "", "created_at": "2025-07-25T20:35:56.555Z", "modified_at": "2025-07-29T02:50:59.712Z", "trial_interval": "week", "trial_interval_count": 272557, "name": "", "description": null, "visibility": "draft", "recurring_interval": "day", "recurring_interval_count": null, "meter_interval": "week", "meter_interval_count": 15552, "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2026-12-31T01:02:14.398Z", "modified_at": "2025-02-10T09:37:50.330Z", "id": "", "source": "ad_hoc", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "day", "minimum_amount": 570455, "maximum_amount": 109251, "preset_amount": 453008, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-02-20T20:34:14.140Z", "modified_at": null, "type": "meter_credit", "description": "yawn sharply inside ah lest who into", "selectable": false, "deletable": false, "is_deleted": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/Library", "mime_type": "", "size": 404380, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": null, "last_modified_at": "2026-07-14T04:50:58.042Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2026-09-12T12:00:29.248Z", "size_readable": "", "public_url": "https://nervous-mozzarella.net/"}]}, "product_price": {"created_at": "2025-04-26T17:11:01.549Z", "modified_at": "2024-01-18T01:05:34.563Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "month", "minimum_amount": 993318, "maximum_amount": 699372, "preset_amount": 757943, "legacy": true}, "prices": {"key": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 1000, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {}}} responses: "200": application/json: "" @@ -4772,7 +4791,7 @@ examples: application/json: {"organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "customer_id": "", "product_id": ""} responses: "201": - application/json: {"id": "", "created_at": "2026-07-18T17:44:54.628Z", "modified_at": null, "status": "void", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "purchase", "billing_name": null, "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": null, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-11-29T03:34:26.239Z", "modified_at": "2024-07-12T06:58:01.957Z", "metadata": {"key": 3792.25}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": null, "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": ""}, "id": "", "created_at": "2026-01-15T20:09:02.162Z", "modified_at": "2024-08-30T12:54:42.214Z", "trial_interval": "year", "trial_interval_count": 699089, "name": "", "description": "resolve pish aha catch", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": null, "meter_interval": "day", "meter_interval_count": 219988, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 656996, "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2025-04-17T06:39:47.276Z", "modified_at": "2025-11-02T14:27:57.549Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2026-03-17T06:05:44.637Z", "ends_at": null, "max_redemptions": 414158, "redemptions_count": 749098, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2026-04-25T21:43:56.917Z", "modified_at": "2026-06-17T03:54:09.889Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 403525, "status": "unpaid", "current_period_start": "2024-03-21T21:52:16.023Z", "current_period_end": "2026-09-21T14:02:23.888Z", "current_meter_period_start": null, "current_meter_period_end": "2025-12-16T21:57:00.160Z", "trial_start": "2025-08-11T16:40:47.152Z", "trial_end": "2025-01-06T10:28:40.440Z", "cancel_at_period_end": true, "canceled_at": "2026-12-27T03:53:58.178Z", "started_at": "2024-07-03T14:46:34.620Z", "ends_at": null, "ended_at": "2024-10-29T12:03:40.812Z", "pause_at_period_end": true, "paused_at": null, "resumes_at": "2024-12-20T05:25:32.402Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} + application/json: {"id": "", "created_at": "2026-07-18T17:44:54.628Z", "modified_at": null, "status": "void", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "purchase", "billing_name": null, "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": null, "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2025-11-29T03:34:26.239Z", "modified_at": "2024-07-12T06:58:01.957Z", "metadata": {"key": 3792.25}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": null, "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": ""}, "id": "", "created_at": "2026-01-15T20:09:02.162Z", "modified_at": "2024-08-30T12:54:42.214Z", "trial_interval": "year", "trial_interval_count": 699089, "name": "", "description": "resolve pish aha catch", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": null, "meter_interval": "day", "meter_interval_count": 219988, "is_recurring": true, "is_archived": true, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 656996, "type": "percentage", "basis_points": 1000, "created_at": "2025-04-17T06:39:47.276Z", "modified_at": "2025-11-02T14:27:57.549Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2026-03-17T06:05:44.637Z", "ends_at": null, "max_redemptions": 414158, "max_redemptions_per_customer": null, "redemptions_count": 749098, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": {"metadata": {}, "created_at": "2026-04-25T21:43:56.917Z", "modified_at": "2026-06-17T03:54:09.889Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "month", "recurring_interval_count": 403525, "status": "unpaid", "current_period_start": "2024-03-21T21:52:16.023Z", "current_period_end": "2026-09-21T14:02:23.888Z", "current_meter_period_start": null, "current_meter_period_end": "2025-12-16T21:57:00.160Z", "trial_start": "2025-08-11T16:40:47.152Z", "trial_end": "2025-01-06T10:28:40.440Z", "cancel_at_period_end": true, "canceled_at": "2026-12-27T03:53:58.178Z", "started_at": "2024-07-03T14:46:34.620Z", "ends_at": null, "ended_at": "2024-10-29T12:03:40.812Z", "pause_at_period_end": true, "paused_at": null, "resumes_at": "2024-12-20T05:25:32.402Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_complex", "customer_cancellation_comment": ""}, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} "422": application/json: {} orders:finalize: @@ -4782,7 +4801,7 @@ examples: id: "" responses: "200": - application/json: {"id": "", "created_at": "2025-05-24T20:30:52.486Z", "modified_at": "2026-03-14T23:42:09.699Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-03-25T22:40:42.220Z", "modified_at": "2024-03-29T16:00:03.359Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-12-31T05:13:06.739Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 62319}, "id": "", "created_at": "2025-03-11T02:25:51.106Z", "modified_at": "2026-08-31T21:34:30.185Z", "trial_interval": null, "trial_interval_count": 996232, "name": "", "description": "outfox pish as triumphantly what supposing hence frightfully", "visibility": "public", "recurring_interval": "day", "recurring_interval_count": 783393, "meter_interval": "month", "meter_interval_count": 564889, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "type": "fixed", "basis_points": 1000, "created_at": "2024-01-23T22:12:50.534Z", "modified_at": null, "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2025-10-27T16:08:34.656Z", "ends_at": "2024-07-04T05:28:05.146Z", "max_redemptions": null, "redemptions_count": 848910, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": null, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} + application/json: {"id": "", "created_at": "2025-05-24T20:30:52.486Z", "modified_at": "2026-03-14T23:42:09.699Z", "status": "refunded", "paid": true, "subtotal_amount": 10000, "discount_amount": 1000, "net_amount": 9000, "tax_amount": 720, "total_amount": 9720, "applied_balance_amount": 0, "due_amount": 0, "refunded_amount": 0, "refunded_tax_amount": 0, "currency": "usd", "billing_reason": "subscription_create", "billing_name": "", "billing_address": {"country": "US"}, "invoice_number": "", "is_invoice_generated": true, "receipt_number": "", "customer_id": "", "product_id": "", "discount_id": "", "subscription_id": "", "checkout_id": "", "metadata": {}, "platform_fee_amount": 500, "platform_fee_currency": "usd", "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-03-25T22:40:42.220Z", "modified_at": "2024-03-29T16:00:03.359Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": null, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-12-31T05:13:06.739Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"metadata": {"key": 62319}, "id": "", "created_at": "2025-03-11T02:25:51.106Z", "modified_at": "2026-08-31T21:34:30.185Z", "trial_interval": null, "trial_interval_count": 996232, "name": "", "description": "outfox pish as triumphantly what supposing hence frightfully", "visibility": "public", "recurring_interval": "day", "recurring_interval_count": 783393, "meter_interval": "month", "meter_interval_count": 564889, "is_recurring": false, "is_archived": false, "organization_id": ""}, "discount": {"duration": "forever", "duration_in_months": 741337, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-01-23T22:12:50.534Z", "modified_at": null, "id": "", "metadata": {"key": true}, "name": "", "code": "", "starts_at": "2025-10-27T16:08:34.656Z", "ends_at": "2024-07-04T05:28:05.146Z", "max_redemptions": null, "max_redemptions_per_customer": 564889, "redemptions_count": 848910, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "subscription": null, "items": [], "description": "Pro Plan", "refundable_amount": 9000, "refundable_tax_amount": 720} "402": application/json: {"error": "PaymentFailed", "detail": ""} "403": @@ -4958,7 +4977,7 @@ examples: _endpointsubscription_paused_post: speakeasy-default-endpointsubscription-paused-post: requestBody: - application/json: {"type": "subscription.paused", "timestamp": "2026-03-29T01:36:59.422Z", "data": {"created_at": "2024-03-23T11:41:02.848Z", "modified_at": "2024-10-04T16:55:27.887Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "day", "recurring_interval_count": 302404, "status": "active", "current_period_start": "2026-12-27T09:05:02.411Z", "current_period_end": "2025-03-04T06:06:15.288Z", "current_meter_period_start": "2024-05-16T08:48:28.800Z", "current_meter_period_end": "2024-05-13T16:19:48.566Z", "trial_start": "2025-07-14T05:52:01.187Z", "trial_end": "2025-05-18T20:34:45.393Z", "cancel_at_period_end": true, "canceled_at": "2024-03-05T03:31:36.437Z", "started_at": null, "ends_at": "2025-12-20T21:41:53.063Z", "ended_at": "2024-03-15T13:17:39.799Z", "pause_at_period_end": true, "paused_at": "2026-11-12T06:14:05.354Z", "resumes_at": "2024-01-19T00:04:02.387Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": 435}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-11-25T20:01:49.747Z", "modified_at": "2025-04-17T15:01:45.388Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-05-30T01:02:26.367Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2026-05-23T05:04:48.306Z", "modified_at": "2026-07-17T23:27:49.449Z", "trial_interval": "week", "trial_interval_count": 6874, "name": "", "description": "gleefully atrium blah huzzah till necessary up why unless golden", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 946185, "meter_interval": "month", "meter_interval_count": 418864, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [], "benefits": [{"id": "", "created_at": "2026-01-30T17:20:13.928Z", "modified_at": "2024-01-15T11:10:19.526Z", "type": "downloadables", "description": "painfully because posh minus", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {}, "visibility": "private", "properties": {"archived": {}, "files": [""]}, "visibility_configurable": true}], "medias": [], "attached_custom_fields": []}, "discount": {"duration": "repeating", "duration_in_months": 991634, "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2026-08-15T10:37:35.235Z", "modified_at": null, "id": "", "metadata": {"key": ""}, "name": "", "code": null, "starts_at": "2024-12-12T04:45:56.188Z", "ends_at": null, "max_redemptions": null, "redemptions_count": 559427, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [], "pending_update": {"created_at": "2026-02-07T07:02:36.432Z", "modified_at": "2026-08-09T03:06:07.639Z", "id": "", "applies_at": "2024-01-05T01:41:00.452Z", "product_id": "", "seats": 572690}}} + application/json: {"type": "subscription.paused", "timestamp": "2026-03-29T01:36:59.422Z", "data": {"created_at": "2024-03-23T11:41:02.848Z", "modified_at": "2024-10-04T16:55:27.887Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "day", "recurring_interval_count": 302404, "status": "active", "current_period_start": "2026-12-27T09:05:02.411Z", "current_period_end": "2025-03-04T06:06:15.288Z", "current_meter_period_start": "2024-05-16T08:48:28.800Z", "current_meter_period_end": "2024-05-13T16:19:48.566Z", "trial_start": "2025-07-14T05:52:01.187Z", "trial_end": "2025-05-18T20:34:45.393Z", "cancel_at_period_end": true, "canceled_at": "2024-03-05T03:31:36.437Z", "started_at": null, "ends_at": "2025-12-20T21:41:53.063Z", "ended_at": "2024-03-15T13:17:39.799Z", "pause_at_period_end": true, "paused_at": "2026-11-12T06:14:05.354Z", "resumes_at": "2024-01-19T00:04:02.387Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": 435}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-11-25T20:01:49.747Z", "modified_at": "2025-04-17T15:01:45.388Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "team", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2024-05-30T01:02:26.367Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2026-05-23T05:04:48.306Z", "modified_at": "2026-07-17T23:27:49.449Z", "trial_interval": "week", "trial_interval_count": 6874, "name": "", "description": "gleefully atrium blah huzzah till necessary up why unless golden", "visibility": "public", "recurring_interval": "month", "recurring_interval_count": 946185, "meter_interval": "month", "meter_interval_count": 418864, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [], "benefits": [{"id": "", "created_at": "2026-01-30T17:20:13.928Z", "modified_at": "2024-01-15T11:10:19.526Z", "type": "downloadables", "description": "painfully because posh minus", "selectable": false, "deletable": false, "is_deleted": true, "organization_id": "", "metadata": {}, "visibility": "private", "properties": {"archived": {}, "files": [""]}, "visibility_configurable": true}], "medias": [], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 1000, "created_at": "2026-08-15T10:37:35.235Z", "modified_at": null, "id": "", "metadata": {"key": ""}, "name": "", "code": null, "starts_at": "2024-12-12T04:45:56.188Z", "ends_at": null, "max_redemptions": null, "max_redemptions_per_customer": null, "redemptions_count": 559427, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [], "meters": [], "pending_update": {"created_at": "2026-02-07T07:02:36.432Z", "modified_at": "2026-08-09T03:06:07.639Z", "id": "", "applies_at": "2024-01-05T01:41:00.452Z", "product_id": "", "seats": 572690}}} responses: "200": application/json: "" @@ -4967,7 +4986,43 @@ examples: _endpointsubscription_resumed_post: speakeasy-default-endpointsubscription-resumed-post: requestBody: - application/json: {"type": "subscription.resumed", "timestamp": "2024-01-22T14:24:10.379Z", "data": {"created_at": "2024-06-30T09:29:44.611Z", "modified_at": "2025-05-19T10:15:04.095Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "day", "recurring_interval_count": 910892, "status": "incomplete_expired", "current_period_start": "2026-07-05T11:55:19.948Z", "current_period_end": "2025-10-26T05:39:47.956Z", "current_meter_period_start": null, "current_meter_period_end": "2026-11-24T05:42:14.433Z", "trial_start": "2024-08-16T01:20:56.595Z", "trial_end": "2026-07-09T21:41:25.685Z", "cancel_at_period_end": false, "canceled_at": "2026-03-15T20:24:25.729Z", "started_at": "2024-01-24T07:56:52.664Z", "ends_at": "2025-12-01T07:07:48.564Z", "ended_at": "2026-11-24T20:15:41.291Z", "pause_at_period_end": false, "paused_at": "2026-12-20T07:04:52.345Z", "resumes_at": "2026-02-13T22:06:10.729Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": ""}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-08-10T12:31:29.222Z", "modified_at": "2026-03-05T13:26:09.665Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-02-22T23:12:45.988Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-01-14T10:56:21.606Z", "modified_at": "2026-01-13T10:49:57.927Z", "trial_interval": "year", "trial_interval_count": 60142, "name": "", "description": "vice proliferate lined doodle", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 285327, "meter_interval": "week", "meter_interval_count": 212696, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2025-02-19T06:29:24.413Z", "modified_at": "2025-11-24T11:49:47.599Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 366168, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-03-08T00:36:46.368Z", "modified_at": null, "type": "github_repository", "description": "except loyalty scale", "selectable": true, "deletable": true, "is_deleted": false, "organization_id": "", "metadata": {}, "visibility": "draft", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/tmp", "mime_type": "", "size": 824138, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": "2024-09-11T04:32:32.279Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T00:09:11.868Z", "size_readable": "", "public_url": "https://agile-paintwork.net/"}], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "fixed", "basis_points": 1000, "created_at": "2024-01-29T12:57:51.159Z", "modified_at": "2026-05-30T05:14:44.253Z", "id": "", "metadata": {"key": 1944.15}, "name": "", "code": "", "starts_at": "2025-05-02T12:20:43.507Z", "ends_at": "2025-11-01T11:32:19.007Z", "max_redemptions": 918147, "redemptions_count": 672454, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-03-27T18:00:56.006Z", "modified_at": "2025-12-23T19:15:57.393Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "minimum_amount": 399198, "maximum_amount": 429537, "preset_amount": 361115}], "meters": [], "pending_update": {"created_at": "2026-05-21T01:07:20.692Z", "modified_at": "2026-12-12T11:31:51.483Z", "id": "", "applies_at": "2026-08-20T05:33:38.575Z", "product_id": "", "seats": 248287}}} + application/json: {"type": "subscription.resumed", "timestamp": "2024-01-22T14:24:10.379Z", "data": {"created_at": "2024-06-30T09:29:44.611Z", "modified_at": "2025-05-19T10:15:04.095Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "day", "recurring_interval_count": 910892, "status": "incomplete_expired", "current_period_start": "2026-07-05T11:55:19.948Z", "current_period_end": "2025-10-26T05:39:47.956Z", "current_meter_period_start": null, "current_meter_period_end": "2026-11-24T05:42:14.433Z", "trial_start": "2024-08-16T01:20:56.595Z", "trial_end": "2026-07-09T21:41:25.685Z", "cancel_at_period_end": false, "canceled_at": "2026-03-15T20:24:25.729Z", "started_at": "2024-01-24T07:56:52.664Z", "ends_at": "2025-12-01T07:07:48.564Z", "ended_at": "2026-11-24T20:15:41.291Z", "pause_at_period_end": false, "paused_at": "2026-12-20T07:04:52.345Z", "resumes_at": "2026-02-13T22:06:10.729Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "low_quality", "customer_cancellation_comment": "", "metadata": {"key": ""}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2024-08-10T12:31:29.222Z", "modified_at": "2026-03-05T13:26:09.665Z", "metadata": {}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-02-22T23:12:45.988Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2025-01-14T10:56:21.606Z", "modified_at": "2026-01-13T10:49:57.927Z", "trial_interval": "year", "trial_interval_count": 60142, "name": "", "description": "vice proliferate lined doodle", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 285327, "meter_interval": "week", "meter_interval_count": 212696, "is_recurring": true, "is_archived": true, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2025-02-19T06:29:24.413Z", "modified_at": "2025-11-24T11:49:47.599Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "exclusive", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "year", "price_amount": 366168, "legacy": true}], "benefits": [{"id": "", "created_at": "2024-03-08T00:36:46.368Z", "modified_at": null, "type": "github_repository", "description": "except loyalty scale", "selectable": true, "deletable": true, "is_deleted": false, "organization_id": "", "metadata": {}, "visibility": "draft", "properties": {"repository_owner": "polarsource", "repository_name": "private_repo", "permission": "maintain"}, "visibility_configurable": true}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/tmp", "mime_type": "", "size": 824138, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": null, "checksum_sha256_hex": "", "last_modified_at": "2024-09-11T04:32:32.279Z", "version": "", "service": "product_media", "is_uploaded": false, "created_at": "2025-10-28T00:09:11.868Z", "size_readable": "", "public_url": "https://agile-paintwork.net/"}], "attached_custom_fields": []}, "discount": {"duration": "repeating", "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-01-29T12:57:51.159Z", "modified_at": "2026-05-30T05:14:44.253Z", "id": "", "metadata": {"key": 1944.15}, "name": "", "code": "", "starts_at": "2025-05-02T12:20:43.507Z", "ends_at": "2025-11-01T11:32:19.007Z", "max_redemptions": 918147, "max_redemptions_per_customer": 590319, "redemptions_count": 672454, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2024-03-27T18:00:56.006Z", "modified_at": "2025-12-23T19:15:57.393Z", "id": "", "source": "catalog", "amount_type": "custom", "price_currency": "", "tax_behavior": "location", "is_archived": true, "product_id": "", "type": "recurring", "recurring_interval": "week", "minimum_amount": 399198, "maximum_amount": 429537, "preset_amount": 361115, "legacy": true}], "meters": [], "pending_update": {"created_at": "2026-05-21T01:07:20.692Z", "modified_at": "2026-12-12T11:31:51.483Z", "id": "", "applies_at": "2026-08-20T05:33:38.575Z", "product_id": "", "seats": 248287}}} + responses: + "200": + application/json: "" + "422": + application/json: {} + _endpointsubscription_cycled_post: + speakeasy-default-endpointsubscription-cycled-post: + requestBody: + application/json: {"type": "subscription.cycled", "timestamp": "2024-08-26T09:51:17.561Z", "data": {"created_at": "2024-11-19T00:31:08.557Z", "modified_at": "2024-07-18T16:03:27.425Z", "id": "", "amount": 10000, "currency": "usd", "recurring_interval": "year", "recurring_interval_count": 542449, "status": "trialing", "current_period_start": "2024-11-18T05:58:07.773Z", "current_period_end": "2026-05-27T12:28:57.938Z", "current_meter_period_start": "2026-08-16T20:40:04.980Z", "current_meter_period_end": "2025-02-19T23:53:59.708Z", "trial_start": "2025-09-07T05:40:32.528Z", "trial_end": null, "cancel_at_period_end": true, "canceled_at": "2025-08-17T15:55:05.116Z", "started_at": "2024-09-06T12:23:00.011Z", "ends_at": null, "ended_at": "2024-05-15T10:03:04.868Z", "pause_at_period_end": true, "paused_at": "2024-12-22T00:45:23.828Z", "resumes_at": "2026-06-04T03:28:46.748Z", "customer_id": "", "product_id": "", "discount_id": "", "checkout_id": "", "customer_cancellation_reason": "too_expensive", "customer_cancellation_comment": "", "metadata": {"key": 492829}, "customer": {"id": "992fae2a-2a17-4b7a-8d9e-e287cf90131b", "created_at": "2026-01-12T08:10:57.662Z", "modified_at": "2025-04-02T22:57:12.765Z", "metadata": {"key": ""}, "external_id": "usr_1337", "email": "customer@example.com", "email_verified": true, "type": "individual", "name": "John Doe", "billing_name": "John Doe", "billing_address": {"country": "US"}, "tax_id": ["911144442", "us_ein"], "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "deleted_at": "2025-01-27T06:40:11.845Z", "avatar_url": "https://www.gravatar.com/avatar/xxx?d=404"}, "product": {"id": "", "created_at": "2024-03-31T23:41:50.445Z", "modified_at": "2024-06-03T06:43:58.898Z", "trial_interval": "day", "trial_interval_count": 705527, "name": "", "description": "purple bitterly yearn jovially speedily incidentally given toward meh", "visibility": "private", "recurring_interval": "year", "recurring_interval_count": 28683, "meter_interval": "month", "meter_interval_count": 595551, "is_recurring": false, "is_archived": false, "organization_id": "", "metadata": {}, "prices": [{"created_at": "2026-09-21T11:48:55.499Z", "modified_at": "2026-08-19T04:17:33.887Z", "id": "", "source": "catalog", "amount_type": "fixed", "price_currency": "", "tax_behavior": "inclusive", "is_archived": false, "product_id": "", "type": "recurring", "recurring_interval": "week", "price_amount": 414949, "legacy": true}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/tmp", "mime_type": "", "size": 14330, "storage_version": null, "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": null, "version": "", "service": "product_media", "is_uploaded": true, "created_at": "2026-02-20T12:55:41.520Z", "size_readable": "", "public_url": "https://violent-circumference.com/"}], "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2025-03-28T11:10:45.316Z", "modified_at": null, "id": "", "metadata": {}, "type": "text", "slug": "", "name": "", "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "properties": {}}, "order": 317704, "required": true}]}, "discount": {"duration": "repeating", "duration_in_months": 76891, "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-05-16T10:26:47.253Z", "modified_at": "2025-08-09T05:00:08.712Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2024-02-25T19:10:52.902Z", "ends_at": null, "max_redemptions": 499299, "max_redemptions_per_customer": 27353, "redemptions_count": 574816, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737"}, "prices": [{"created_at": "2025-04-06T03:56:14.575Z", "modified_at": "2026-03-11T02:45:08.903Z", "id": "", "source": "ad_hoc", "amount_type": "seat_based", "price_currency": "", "tax_behavior": "exclusive", "is_archived": false, "product_id": "", "seat_tiers": {"tiers": [{"min_seats": 56245, "price_per_seat": 336090}], "minimum_seats": 331254, "maximum_seats": 528428}}], "meters": [{"created_at": "2024-06-01T16:54:56.812Z", "modified_at": "2025-10-19T18:13:32.190Z", "id": "", "consumed_units": 25, "credited_units": 100, "amount": 0, "meter_id": "d498a884-e2cd-4d3e-8002-f536468a8b22", "meter": {"metadata": {}, "created_at": "2026-08-24T22:44:14.004Z", "modified_at": "2026-04-30T01:20:37.728Z", "id": "", "name": "", "unit": "token", "filter": {"conjunction": "and", "clauses": []}, "aggregation": {"func": "count"}, "organization_id": ""}}], "pending_update": null}} + responses: + "200": + application/json: "" + "422": + application/json: {} + _endpointdiscount_created_post: + speakeasy-default-endpointdiscount-created-post: + requestBody: + application/json: {"type": "discount.created", "timestamp": "2026-06-01T12:33:29.570Z", "data": {"duration": "repeating", "duration_in_months": 179751, "type": "percentage", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2024-02-21T05:24:48.689Z", "modified_at": "2026-09-12T01:20:52.031Z", "id": "", "metadata": {"key": ""}, "name": "", "code": "", "starts_at": "2025-02-13T09:12:55.294Z", "ends_at": "2024-10-07T21:58:26.782Z", "max_redemptions": 79512, "max_redemptions_per_customer": 380997, "redemptions_count": 575666, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": []}} + responses: + "200": + application/json: "" + "422": + application/json: {} + _endpointdiscount_updated_post: + speakeasy-default-endpointdiscount-updated-post: + requestBody: + application/json: {"type": "discount.updated", "timestamp": "2025-11-10T23:02:41.327Z", "data": {"duration": "repeating", "type": "fixed", "amount": 1000, "currency": "usd", "amounts": {"eur": 900, "usd": 1000}, "created_at": "2026-06-18T18:53:28.965Z", "modified_at": "2024-09-19T20:57:06.225Z", "id": "", "metadata": {"key": false}, "name": "", "code": "", "starts_at": "2024-07-07T11:25:38.360Z", "ends_at": "2025-10-12T09:13:06.811Z", "max_redemptions": 794318, "max_redemptions_per_customer": 831594, "redemptions_count": 241933, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": []}} + responses: + "200": + application/json: "" + "422": + application/json: {} + _endpointdiscount_deleted_post: + speakeasy-default-endpointdiscount-deleted-post: + requestBody: + application/json: {"type": "discount.deleted", "timestamp": "2025-02-20T22:30:40.844Z", "data": {"duration": "repeating", "type": "percentage", "basis_points": 1000, "created_at": "2026-04-12T18:41:55.855Z", "modified_at": "2025-03-02T23:37:37.703Z", "id": "", "metadata": {}, "name": "", "code": "", "starts_at": "2026-03-19T00:46:24.443Z", "ends_at": "2025-12-16T17:40:07.633Z", "max_redemptions": 620156, "max_redemptions_per_customer": 318122, "redemptions_count": 973741, "organization_id": "1dbfc517-0bbf-4301-9ba8-555ca42b9737", "products": []}} responses: "200": application/json: "" @@ -4975,7 +5030,7 @@ examples: application/json: {} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Python SDK Changes Detected:\n* `polar.orders.export()`: `response.status[200]` **Removed** **Breaking** :warning:\n* `polar.customers.create()`: `response` **Changed** **Breaking** :warning:\n* `polar._endpointcheckout_expired_post()`: \n * `request.data.products.[]` **Changed** **Breaking** :warning:\n* `polar._endpointcustomer_seat_assigned_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointcustomer_seat_claimed_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.customer_meters.get()`: `response.customer` **Changed** **Breaking** :warning:\n* `polar.customer_meters.list()`: `response.items.[].customer` **Changed** **Breaking** :warning:\n* `polar._endpointcheckout_created_post()`: \n * `request.data.products.[]` **Changed** **Breaking** :warning:\n* `polar.events.get()`: `response.[system_event]` **Changed** **Breaking** :warning:\n* `polar.events.list()`: `response.[list_resource_event_].items.[].[system_event]` **Changed** **Breaking** :warning:\n* `polar.customer-sessions.create()`: `response.customer` **Changed** **Breaking** :warning:\n* `polar.customer_portal.subscriptions.update()`: \n * `request.customer_subscription_update` **Changed** **Breaking** :warning:\n * `response` **Changed**\n * `error` **Changed** **Breaking** :warning:\n* `polar.customer_portal.orders.generate_invoice()`: `error` **Changed** **Breaking** :warning:\n* `polar.customer_portal.license_keys.activate()`: `response.license_key.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.customer_portal.license_keys.validate()`: `response.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.customer_portal.license_keys.get()`: `response.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.customer_portal.license_keys.list()`: `response.items.[].customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.customers.get_state_external()`: `response` **Changed** **Breaking** :warning:\n* `polar.customers.get_state()`: `response` **Changed** **Breaking** :warning:\n* `polar.customers.update_external()`: `response` **Changed** **Breaking** :warning:\n* `polar.customers.get_external()`: `response` **Changed** **Breaking** :warning:\n* `polar.customers.update()`: `response` **Changed** **Breaking** :warning:\n* `polar.customers.get()`: `response` **Changed** **Breaking** :warning:\n* `polar.customers.export()`: `response.status[200]` **Removed** **Breaking** :warning:\n* `polar._endpointcheckout_updated_post()`: \n * `request.data.products.[]` **Changed** **Breaking** :warning:\n* `polar.customers.list()`: `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.license_keys.activate()`: `response.license_key.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.license_keys.validate()`: `response.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.license_keys.get_activation()`: `response.license_key.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar._endpointcustomer_seat_revoked_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_created_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_updated_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_paid_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorder_refunded_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_created_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_updated_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_active_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_canceled_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_uncanceled_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_revoked_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_past_due_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointrefund_created_post()`: \n * `request.data.dispute` **Changed** **Breaking** :warning:\n* `polar._endpointrefund_updated_post()`: \n * `request.data.dispute` **Changed** **Breaking** :warning:\n* `polar._endpointproduct_created_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointproduct_updated_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar._endpointorganization_updated_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.license_keys.update()`: `response.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.license_keys.get()`: `response.customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.license_keys.list()`: `response.items.[].customer.avatar_url` **Changed** **Breaking** :warning:\n* `polar.metrics.export()`: `response.status[200]` **Removed** **Breaking** :warning:\n* `polar.orders.create()`: `response` **Changed** **Breaking** :warning:\n* `polar.orders.list()`: `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.organizations.list_organizations()`: `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.organizations.create()`: \n * `request` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n * `error.status[403]` **Added**\n* `polar.organizations.get()`: `response` **Changed** **Breaking** :warning:\n* `polar.organizations.update()`: \n * `request.organization_update` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n * `error.status[409]` **Added**\n* `polar.subscriptions.list()`: \n * `request.status` **Changed**\n * `response.items.[]` **Changed** **Breaking** :warning:\n* `polar.subscriptions.create()`: `response` **Changed** **Breaking** :warning:\n* `polar.subscriptions.export()`: `response.status[200]` **Removed** **Breaking** :warning:\n* `polar.subscriptions.get()`: `response` **Changed** **Breaking** :warning:\n* `polar.subscriptions.revoke()`: `response` **Changed** **Breaking** :warning:\n* `polar.subscriptions.update()`: \n * `request.subscription_update` **Changed**\n * `response` **Changed** **Breaking** :warning:\n* `polar.checkouts.create()`: \n * `request.prices.{}.[].[free]` **Removed** **Breaking** :warning:\n * `response.products.[]` **Changed**\n* `polar.orders.generate_invoice()`: `error` **Changed** **Breaking** :warning:\n* `polar.oauth2.clients.delete()`: `response` **Changed** **Breaking** :warning:\n* `polar.benefits.update()`: `request_body` **Changed** **Breaking** :warning:\n* `polar.benefits.grants()`: `response.items.[].customer` **Changed** **Breaking** :warning:\n* `polar.benefit-grants.list()`: `response.items.[].customer` **Changed** **Breaking** :warning:\n* `polar.orders.finalize()`: `response` **Changed** **Breaking** :warning:\n* `polar.orders.update()`: `response` **Changed** **Breaking** :warning:\n* `polar.products.create()`: \n * `request` **Changed** **Breaking** :warning:\n * `response` **Changed**\n* `polar.orders.get()`: `response` **Changed** **Breaking** :warning:\n* `polar.products.update()`: \n * `request.product_update.prices.[].[2].[free]` **Removed** **Breaking** :warning:\n * `response` **Changed**\n* `polar.organization_access_tokens.list()`: **Deleted** **Breaking** :warning:\n* `polar._endpointcustomer_created_post()`: \n * `request.data` **Changed**\n* `polar.files.create()`: \n * `request.[support_case_attachment]` **Added**\n* `polar.disputes.accept()`: **Added**\n* `polar.products.get()`: `response` **Changed**\n* `polar.products.list()`: `response.items.[]` **Changed**\n* `polar.webhooks.list_webhook_deliveries()`: `request.event_type` **Changed**\n* `polar.oauth2.introspect()`: `response.organizations` **Added**\n* `polar.refunds.list()`: `response.items.[].dispute` **Changed**\n* `polar.refunds.create()`: `response.dispute` **Changed**\n* `polar.disputes.list()`: `response.items.[]` **Changed**\n* `polar.disputes.get()`: `response` **Changed**\n* `polar.checkouts.list()`: `response.items.[].products.[]` **Changed**\n* `polar.oauth2.authorize()`: `response` **Changed**\n* `polar._endpointbenefit_grant_revoked_post()`: \n * `request.data.[benefit_grant_discord_webhook].customer` **Changed**\n* `polar.discounts.update()`: `response.[discount_fixed_once_forever_duration].products.[]` **Changed**\n* `polar.checkouts.client_get()`: `response.products.[]` **Changed**\n* `polar.checkouts.client_update()`: `response.products.[]` **Changed**\n* `polar.checkouts.client_confirm()`: `response.products.[]` **Changed**\n* `polar.files.list()`: `response.items.[].[support_case_attachment]` **Added**\n* `polar._endpointbenefit_grant_cycled_post()`: \n * `request.data.[benefit_grant_license_keys_webhook].customer` **Changed**\n* `polar.files.uploaded()`: `response.[support_case_attachment]` **Added**\n* `polar.files.update()`: `response.[support_case_attachment]` **Added**\n* `polar.organization_access_tokens.create()`: **Deleted** **Breaking** :warning:\n* `polar._endpointbenefit_grant_created_post()`: \n * `request.data.[benefit_grant_downloadables_webhook].customer` **Changed**\n* `polar._endpointcustomer_state_changed_post()`: \n * `request.data` **Changed**\n* `polar._endpointcustomer_deleted_post()`: \n * `request.data` **Changed**\n* `polar._endpointcustomer_updated_post()`: \n * `request.data` **Changed**\n* `polar._endpointbenefit_grant_updated_post()`: \n * `request.data.[benefit_grant_discord_webhook].customer` **Changed**\n* `polar.organization_access_tokens.update()`: **Deleted** **Breaking** :warning:\n* `polar.checkout-links.list()`: `response.items.[].products.[]` **Changed**\n* `polar.checkout-links.create()`: `response.products.[]` **Changed**\n* `polar.checkout-links.get()`: `response.products.[]` **Changed**\n* `polar.checkout-links.update()`: `response.products.[]` **Changed**\n* `polar.discounts.list()`: `response.items.[].[discount_fixed_repeat_duration].products.[]` **Changed**\n* `polar.discounts.create()`: `response.[discount_percentage_once_forever_duration].products.[]` **Changed**\n* `polar.discounts.get()`: `response.[discount_fixed_once_forever_duration].products.[]` **Changed**\n* `polar.checkouts.update()`: `response.products.[]` **Changed**\n* `polar.checkouts.get()`: `response.products.[]` **Changed**\n* `polar.products.update_benefits()`: `response` **Changed**\n* `polar.customer_portal.subscriptions.get()`: `response` **Changed**\n* `polar.members.update_member_by_external_id()`: **Deleted** **Breaking** :warning:\n* `polar.members.delete_member_by_external_id()`: **Deleted** **Breaking** :warning:\n* `polar.members.get_member_by_external_id()`: **Deleted** **Breaking** :warning:\n* `polar.members.update_member()`: **Deleted** **Breaking** :warning:\n* `polar.members.delete_member()`: **Deleted** **Breaking** :warning:\n* `polar.members.get_member()`: **Deleted** **Breaking** :warning:\n* `polar.customer_portal.seats.list_seats()`: `response.seats.[]` **Changed**\n* `polar.customer_portal.seats.assign_seat()`: `response` **Changed**\n* `polar.customer_portal.seats.revoke_seat()`: `response` **Changed**\n* `polar.customer_portal.seats.resend_invitation()`: `response` **Changed**\n* `polar.customer_portal.seats.list_claimed_subscriptions()`: `response.items.[]` **Changed**\n* `polar.members.create_member()`: **Deleted** **Breaking** :warning:\n* `polar.customers.members.delete_external()`: **Added**\n* `polar.customers.members.update_external()`: **Added**\n* `polar.customers.members.get_external()`: **Added**\n* `polar.customer_portal.members.update_member()`: \n * `request.customer_portal_member_update.name` **Added**\n* `polar.customer_portal.orders.list()`: `response.items.[]` **Changed**\n* `polar.customer_portal.orders.get()`: `response` **Changed**\n* `polar.customer_portal.orders.update()`: `response` **Changed**\n* `polar.customers.members.delete()`: **Added**\n* `polar.customer_portal.organizations.get()`: `response` **Changed**\n* `polar.customer_portal.subscriptions.list()`: `response.items.[]` **Changed**\n* `polar.organization_access_tokens.delete()`: **Deleted** **Breaking** :warning:\n* `polar.customer_portal.subscriptions.cancel()`: `response` **Changed**\n* `polar.customers.members.update()`: **Added**\n* `polar.customer-seats.list_seats()`: `response.seats.[]` **Changed**\n* `polar.customer-seats.assign_seat()`: `response` **Changed**\n* `polar.customer-seats.revoke_seat()`: `response` **Changed**\n* `polar.customer-seats.resend_invitation()`: `response` **Changed**\n* `polar.customer-seats.claim_seat()`: `response.seat` **Changed**\n* `polar.customers.members.get()`: **Added**\n* `polar.customers.members.create_external()`: **Added**\n* `polar.events.list_names()`: `response.items.[].label` **Added**\n* `polar.customers.members.create()`: **Added**\n* `polar._endpointsubscription_resumed_post()`: **Added**\n* `polar._endpointsubscription_paused_post()`: **Added**\n* `polar.payments.list()`: `response.items.[]` **Changed**\n* `polar.payments.get()`: `response` **Changed**\n" +releaseNotes: "## Python SDK Changes Detected:\n* `polar.organizations.update()`: \n * `request.organization_update` **Changed** **Breaking** :warning:\n * `response` **Changed**\n* `polar._endpointcheckout_updated_post()`: \n * `request.data.payment_method_type` **Added** **Breaking** :warning:\n* `polar._endpointcheckout_expired_post()`: \n * `request.data.payment_method_type` **Added** **Breaking** :warning:\n* `polar._endpointorder_created_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointorder_updated_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointorder_paid_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointorder_refunded_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_created_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_updated_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_active_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_canceled_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_uncanceled_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_revoked_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_past_due_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_paused_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointsubscription_resumed_post()`: \n * `request.data.discount` **Changed** **Breaking** :warning:\n* `polar._endpointorganization_updated_post()`: \n * `request.data` **Changed** **Breaking** :warning:\n* `polar.organizations.create()`: \n * `request.customer_email_settings.payment_method_expiration_reminder` **Added** **Breaking** :warning:\n * `response` **Changed**\n* `polar.events.get()`: `response.[system_event]` **Changed** **Breaking** :warning:\n* `polar.events.list()`: `response.[list_resource_event_].items.[].[system_event]` **Changed** **Breaking** :warning:\n* `polar._endpointcheckout_created_post()`: \n * `request.data.payment_method_type` **Added** **Breaking** :warning:\n* `polar.subscriptions.create()`: `response.discount` **Changed**\n* `polar.checkouts.list()`: `response.items.[].payment_method_type` **Added**\n* `polar.organizations.get()`: `response` **Changed**\n* `polar._endpointdiscount_deleted_post()`: **Added**\n* `polar.subscriptions.list()`: \n * `request` **Changed**\n * `response.items.[].discount` **Changed**\n* `polar._endpointdiscount_updated_post()`: **Added**\n* `polar.subscriptions.get()`: `response.discount` **Changed**\n* `polar.subscriptions.revoke()`: `response.discount` **Changed**\n* `polar.subscriptions.update()`: `response.discount` **Changed**\n* `polar.webhooks.list_webhook_deliveries()`: `request.event_type` **Changed**\n* `polar.orders.list()`: \n * `request` **Changed**\n * `response.items.[].discount` **Changed**\n* `polar.orders.create()`: `response.discount` **Changed**\n* `polar.orders.get()`: `response.discount` **Changed**\n* `polar.orders.update()`: `response.discount` **Changed**\n* `polar.orders.finalize()`: `response.discount` **Changed**\n* `polar.organizations.list_organizations()`: `response.items.[]` **Changed**\n* `polar.checkouts.create()`: `response.payment_method_type` **Added**\n* `polar.checkouts.get()`: `response.payment_method_type` **Added**\n* `polar.checkouts.update()`: \n * `response.payment_method_type` **Added**\n * `error.[discount_redemption_limit_reached]` **Added**\n* `polar.checkouts.client_get()`: `response.payment_method_type` **Added**\n* `polar.checkouts.client_update()`: \n * `request.checkout_update_public.payment_method_type` **Added**\n * `response.payment_method_type` **Added**\n * `error.[discount_redemption_limit_reached]` **Added**\n* `polar.checkouts.client_confirm()`: \n * `request.checkout_confirm_stripe.payment_method_type` **Added**\n * `response.payment_method_type` **Added**\n * `error.[discount_redemption_limit_reached]` **Added**\n* `polar.checkout-links.list()`: `response.items.[].discount` **Changed**\n* `polar.checkout-links.create()`: `response.discount` **Changed**\n* `polar.checkout-links.get()`: `response.discount` **Changed**\n* `polar.checkout-links.update()`: `response.discount` **Changed**\n* `polar.discounts.list()`: `response.items.[]` **Changed**\n* `polar.discounts.create()`: \n * `request` **Changed**\n * `response` **Changed**\n* `polar.discounts.get()`: `response` **Changed**\n* `polar.discounts.update()`: \n * `request.discount_update.max_redemptions_per_customer` **Added**\n * `response` **Changed**\n* `polar._endpointdiscount_created_post()`: **Added**\n* `polar._endpointsubscription_cycled_post()`: **Added**\n" trackedFiles: .devcontainer/README.md: last_write_checksum: sha1:e2a191a1fa8ceb27387eb32eabf36f7ad16a532c @@ -5332,11 +5387,11 @@ trackedFiles: docs/models/cashflow.md: last_write_checksum: sha1:1e9738516a979aa16a1dc2121b99d72055fc9abc docs/models/checkout.md: - last_write_checksum: sha1:a228b4ec2d318cedf022822961902dd9cb381e40 + last_write_checksum: sha1:56b87ad6d956438fcd1c6d6ebc612f0794b98cfb docs/models/checkoutbillingaddressfields.md: last_write_checksum: sha1:4f9b44268a23c42b8af95d971f7642138d4542b1 docs/models/checkoutconfirmstripe.md: - last_write_checksum: sha1:a37180dfd8db5b42a63da1290a1f568f05eb0f5e + last_write_checksum: sha1:4b477d1706bd3fe70a8f386c29ce0bded936cf86 docs/models/checkoutconfirmstripecustomfielddata.md: last_write_checksum: sha1:8e5feb192029fd53eabd49eab94326d92b5b03f0 docs/models/checkoutcreate.md: @@ -5366,7 +5421,7 @@ trackedFiles: docs/models/checkoutdiscountpercentagerepeatduration.md: last_write_checksum: sha1:cc93853b116e39f08ca83c67d3ceca3208219b88 docs/models/checkoutforbiddenerror.md: - last_write_checksum: sha1:efc7e9c89ca4015ad6dc236ce1aa74ccd210035c + last_write_checksum: sha1:330d6c0f7b9ff0a5b5a760caa7c808b383995985 docs/models/checkoutidfilter.md: last_write_checksum: sha1:89e4e5f36a0183a4bca8cb9633067ae9eaed0b78 docs/models/checkoutlink.md: @@ -5422,9 +5477,9 @@ trackedFiles: docs/models/checkoutproductprices.md: last_write_checksum: sha1:3c5bf42bed9d76bd3f78cc17816e4ecd92de3f7d docs/models/checkoutpublic.md: - last_write_checksum: sha1:22bde11c40617211662b903cd99eaea864162673 + last_write_checksum: sha1:fe10ddb17e376f0605df51604966f7f6f442bcda docs/models/checkoutpublicconfirmed.md: - last_write_checksum: sha1:8dea192ab1b5a498f8c223b287691a26b1ecc29b + last_write_checksum: sha1:22706a50aa2cf66bdddb59bf88b5b0a9e4616a10 docs/models/checkoutpublicconfirmedcustomfielddata.md: last_write_checksum: sha1:b4a02ce44bdfe3eb45e9c99b0f1561e41028cdf2 docs/models/checkoutpublicconfirmeddiscount.md: @@ -5482,7 +5537,7 @@ trackedFiles: docs/models/checkoutupdatemetadata.md: last_write_checksum: sha1:9d408b25657a511a3e13f9e5e76b893a7c4a5e03 docs/models/checkoutupdatepublic.md: - last_write_checksum: sha1:4874463685344f02351c34cbcc28aefd428fd174 + last_write_checksum: sha1:c6e8e9565494bbe51820e5b85e97c0e1729d8a2e docs/models/checkoutupdatepubliccustomfielddata.md: last_write_checksum: sha1:8a9915c8ac470d38abaad331803b7568d491854c docs/models/churnedseatcustomers.md: @@ -6124,33 +6179,35 @@ trackedFiles: docs/models/discountduration.md: last_write_checksum: sha1:c6a845b1cd4ba784a6164003fb4f6fe05a77aa1f docs/models/discountfixedcreate.md: - last_write_checksum: sha1:efa30c1d50c29cff7aedfd751d4cd026981b4819 + last_write_checksum: sha1:24e5db3365a006b1ed826189615b6c6d0158a198 docs/models/discountfixedcreatemetadata.md: last_write_checksum: sha1:19ad117e112ddb3a0f8a11006992ca59f7f04ce3 docs/models/discountfixedonceforeverduration.md: - last_write_checksum: sha1:1bbdb05dbc56e18c7ee9401a1d2dc2e62109bc78 + last_write_checksum: sha1:99c5c6da0ec58d22a9055d520bb5b45908ae927e docs/models/discountfixedonceforeverdurationbase.md: - last_write_checksum: sha1:9fa7853739381ad55bb4ca9026254e92c7b1174b + last_write_checksum: sha1:356c580d72eb31971a0c527838691ca0f24c83e3 docs/models/discountfixedrepeatduration.md: - last_write_checksum: sha1:c42eaf6cf7b79108184e9aa034632e4297411d79 + last_write_checksum: sha1:9339e75085290401737e80193925589073e011f2 docs/models/discountfixedrepeatdurationbase.md: - last_write_checksum: sha1:4f050683ee31803c1ff2370656c009d4658a4e29 + last_write_checksum: sha1:c00b53e6aad6d3afff4d289770b1e430e316e003 docs/models/discountidfilter.md: last_write_checksum: sha1:e1b17ec0ff4bc7263f3462ad611d9527bf033740 docs/models/discountpercentagecreate.md: - last_write_checksum: sha1:58b5fe77b13552b8e9680fe0331e6780b26be61b + last_write_checksum: sha1:fcc9749790df09c971c14d03ed854a14551fcf34 docs/models/discountpercentagecreatemetadata.md: last_write_checksum: sha1:15b7d6b74b28a57b6c1388e3a8aed16fee965519 docs/models/discountpercentageonceforeverduration.md: - last_write_checksum: sha1:4d26b2e80f6934d57792ef220448de112555fde5 + last_write_checksum: sha1:17ec3f5af9ecd982fec1fde449691c737e924389 docs/models/discountpercentageonceforeverdurationbase.md: - last_write_checksum: sha1:8d77698d2411458b5e1b441e0630da95d47689bd + last_write_checksum: sha1:7e28cdf8eca985ec844205c41098d6da747b89b5 docs/models/discountpercentagerepeatduration.md: - last_write_checksum: sha1:59fa1553350d8f672fa228a6de5759806e70ae37 + last_write_checksum: sha1:3b5c87a74040267f7df02a1b5a307c2736bafce5 docs/models/discountpercentagerepeatdurationbase.md: - last_write_checksum: sha1:18452516be93cfcf3ca12e1649d6c1c2d5342528 + last_write_checksum: sha1:432cc9002e754b58cf8c5856d5eed289dd3e4e99 docs/models/discountproduct.md: last_write_checksum: sha1:ac25dd763f3195b2422a2b5c06aff338705bdb7c + docs/models/discountredemptionlimitreached.md: + last_write_checksum: sha1:ccf71f74abf7d22b5cff68f43d7cc783066349d2 docs/models/discountsdeleterequest.md: last_write_checksum: sha1:3ef7357772d63be24d9f449d1c04f9184562d959 docs/models/discountsgetrequest.md: @@ -6168,7 +6225,7 @@ trackedFiles: docs/models/discounttype.md: last_write_checksum: sha1:123a4ed896f3021d062a1239ab93da99b66d813b docs/models/discountupdate.md: - last_write_checksum: sha1:0bdff2e54a2efea058f28ee4f688252908e3ab13 + last_write_checksum: sha1:5329c93f09ad2d56ad68ca245fbd3c46767a8bb4 docs/models/discountupdatemetadata.md: last_write_checksum: sha1:e2a05aac2467d19b74e68e4c44929bd3368cf4cd docs/models/dispute.md: @@ -6185,8 +6242,10 @@ trackedFiles: last_write_checksum: sha1:4d3c863548662991488939a7f48f96c3065afa2d docs/models/disputeslistqueryparamorganizationidfilter.md: last_write_checksum: sha1:3d6a4496516b1ded8550cb6e430e0fca2be8606c + docs/models/disputeslistqueryparamstatusfilter.md: + last_write_checksum: sha1:d7ded38158d6f6273efdb7f19b5b341767bb07dc docs/models/disputeslistrequest.md: - last_write_checksum: sha1:dc704912429787d33b277f2852f93eb59b0ab142 + last_write_checksum: sha1:2adc5833b30ed67e13dec484b8ca51201f9f7faa docs/models/disputeslistresponse.md: last_write_checksum: sha1:5558e97420266ee1c8075319eaba59cd035caf65 docs/models/disputesortproperty.md: @@ -6822,7 +6881,7 @@ trackedFiles: docs/models/orderslistqueryparamproductidfilter.md: last_write_checksum: sha1:cc5552bca2f91af5573368ba40b95e1bd4216b2f docs/models/orderslistrequest.md: - last_write_checksum: sha1:b9f2997a5ff3a16a151c24c578aa5da78cbb5223 + last_write_checksum: sha1:6b228172aff82c1dd445bddee53b1cfb07e5d54a docs/models/orderslistresponse.md: last_write_checksum: sha1:a49a1bded94095f8dfe0df415eda97e8b8f1c404 docs/models/ordersmodel.md: @@ -6837,6 +6896,10 @@ trackedFiles: last_write_checksum: sha1:f6c890b3198aa569311cd81a13d1bbc03679438d docs/models/ordersupdaterequest.md: last_write_checksum: sha1:378b0a113c24421c253510a4533c7e20d4c4fee2 + docs/models/orderunvoidedevent.md: + last_write_checksum: sha1:cd2ed928458e28812000968602a656fbe1b896f1 + docs/models/orderunvoidedmetadata.md: + last_write_checksum: sha1:156c6fc3f3f3b301edc454f8152e380d8bbfce06 docs/models/orderupdate.md: last_write_checksum: sha1:9933b2328bea2295842086aaea9aebf2909be782 docs/models/ordervoidedevent.md: @@ -6844,7 +6907,7 @@ trackedFiles: docs/models/ordervoidedmetadata.md: last_write_checksum: sha1:5ff75e9101fbdc3fbbbfa0264e622bc4f80ae4e3 docs/models/organization.md: - last_write_checksum: sha1:729dda35abd8dc83dc8ed284df438119efa1056f + last_write_checksum: sha1:e1dcb07498cf2cd3ba46c1755136e6b5d05cf23c docs/models/organizationavatarfilecreate.md: last_write_checksum: sha1:0a60b83dae5456f7ac858805abcb97d2b93c428d docs/models/organizationavatarfileread.md: @@ -6856,7 +6919,7 @@ trackedFiles: docs/models/organizationcreate.md: last_write_checksum: sha1:1fd44f6881d9575d3aa63cbf879215a5ce93a037 docs/models/organizationcustomeremailsettings.md: - last_write_checksum: sha1:0657672f714eeb75fbf7952be0eb5388067740ec + last_write_checksum: sha1:4846856c738a932ad78794da3733216c7fda91b7 docs/models/organizationcustomerportalsettings.md: last_write_checksum: sha1:71c63bccb751385a1cf3148351d9601a8202c44c docs/models/organizationdetails.md: @@ -6892,7 +6955,7 @@ trackedFiles: docs/models/organizationsupdaterequest.md: last_write_checksum: sha1:82706bcd42b79c644b18f80c221a18df21a3ea9d docs/models/organizationupdate.md: - last_write_checksum: sha1:5d6622f3801e1019bbef137b67b306a354c12a5c + last_write_checksum: sha1:af6551792a35f534e51e29b1c8bb0e50d482be89 docs/models/pagination.md: last_write_checksum: sha1:1aedcef9b4f0bc5ab25ef1e9542e22d82088682a docs/models/pauseresumenotallowed.md: @@ -7070,7 +7133,7 @@ trackedFiles: docs/models/queryparamsourcefilter.md: last_write_checksum: sha1:eb2c2bf4d21f79baa2fcd6fc70c4d7f7d1d45a16 docs/models/queryparamstatusfilter.md: - last_write_checksum: sha1:ee4e46fc6fe9419670d56db341d1b73c5f9e6fbb + last_write_checksum: sha1:f5a2343abd56c7b05f9d6a57e17ba79229748924 docs/models/queryparamsubscriptionidfilter.md: last_write_checksum: sha1:6549f7db4a0832e4bcd52f020b183820a63a7377 docs/models/reason.md: @@ -7227,6 +7290,10 @@ trackedFiles: last_write_checksum: sha1:f1fb6f57c58be2b80e4253b8195a9fec1248db43 docs/models/subscriptionreactivatedmetadata.md: last_write_checksum: sha1:7b2b5827aed162375fca34898ab7f19196e13b5d + docs/models/subscriptionreinstatedevent.md: + last_write_checksum: sha1:31692e758fb2c975c0bb3c70e0b5be1d67d09611 + docs/models/subscriptionreinstatedmetadata.md: + last_write_checksum: sha1:3c6734ee74e9da1ae93192352a37ff44f2e775c0 docs/models/subscriptionresume.md: last_write_checksum: sha1:ec3d6b1346f475e6bef8854c9222e4be0961c5ef docs/models/subscriptionresumedevent.md: @@ -7250,7 +7317,7 @@ trackedFiles: docs/models/subscriptionsgetrequest.md: last_write_checksum: sha1:954b9a8e0a36e302350a1aaba6bf4b7f96d3a19f docs/models/subscriptionslistrequest.md: - last_write_checksum: sha1:1c67da33bdab9d6d5e5b3b92b5a102653dc1febd + last_write_checksum: sha1:4c1f5eb2a6785dcb0348c252a70a17aa0076b3b2 docs/models/subscriptionslistresponse.md: last_write_checksum: sha1:2413970956317d71808bdeff11198ac794a9b7cc docs/models/subscriptionsortproperty.md: @@ -7294,7 +7361,7 @@ trackedFiles: docs/models/switchingfrom.md: last_write_checksum: sha1:242623693cd6649aa665db76babcf7ff2531fd68 docs/models/systemevent.md: - last_write_checksum: sha1:3007ba2cebbd9ac8e572d0b90e1fcee733ef32b5 + last_write_checksum: sha1:bcffa8f542b4609f05866089345da16034a4ede6 docs/models/taxbehavior.md: last_write_checksum: sha1:2873bb04d8399e78cb8faa642913c15e6fa45801 docs/models/taxbehavioroption.md: @@ -7379,6 +7446,12 @@ trackedFiles: last_write_checksum: sha1:d5d56532af0e090a2c1c074f716d4b6b0321fcae docs/models/webhookdelivery.md: last_write_checksum: sha1:ad3347208c254800e88f97b02fdc1aa35ea56fc6 + docs/models/webhookdiscountcreatedpayload.md: + last_write_checksum: sha1:992f85a6de08b5492ede933f26645e54332f1651 + docs/models/webhookdiscountdeletedpayload.md: + last_write_checksum: sha1:a81a27226ede0d63c7e3d90fa83978dd7ab5186d + docs/models/webhookdiscountupdatedpayload.md: + last_write_checksum: sha1:ffdb8007d929414447cbbfcc559993c183ee78d6 docs/models/webhookendpoint.md: last_write_checksum: sha1:e109cc5d7f9e1a9a151041201453a014ea4c3874 docs/models/webhookendpointcreate.md: @@ -7388,7 +7461,7 @@ trackedFiles: docs/models/webhookevent.md: last_write_checksum: sha1:78db9970ae5ed501bea9d03d58ebfff6c9394233 docs/models/webhookeventtype.md: - last_write_checksum: sha1:738b481fb4e4710a675a393bf0497e1e5b92a0e3 + last_write_checksum: sha1:45fa9e20a960a0e1d78b0ca7b22142203f5e0c71 docs/models/webhookformat.md: last_write_checksum: sha1:4709492fbad186b392cca96b341a6c65ea15d8b9 docs/models/webhookmembercreatedpayload.md: @@ -7437,6 +7510,8 @@ trackedFiles: last_write_checksum: sha1:36e15320946db6e209b54bd36a654c9afae9266c docs/models/webhooksubscriptioncreatedpayload.md: last_write_checksum: sha1:8ddd79d1d015dd31bf9df22f6d999d229d520ef2 + docs/models/webhooksubscriptioncycledpayload.md: + last_write_checksum: sha1:ea9f922d15c993d7b28fa9ae3cde654ea69f3e3a docs/models/webhooksubscriptionpastduepayload.md: last_write_checksum: sha1:a014d6a425183c2cc2ec654ae096288c6dc05498 docs/models/webhooksubscriptionpausedpayload.md: @@ -7448,7 +7523,7 @@ trackedFiles: docs/models/webhooksubscriptionuncanceledpayload.md: last_write_checksum: sha1:0fb3f671ef29a23a85676de66d73a5a001ee735d docs/models/webhooksubscriptionupdatedpayload.md: - last_write_checksum: sha1:d411e9a212190e06378253b215c90285ea91a62c + last_write_checksum: sha1:493ed97fb00e095ad70702689c811945dbeb0a81 docs/models/webhooksupdatewebhookendpointrequest.md: last_write_checksum: sha1:b5745fe9f78550f920a802254eeee439bd2fd360 docs/models/webtokenrequest.md: @@ -7458,11 +7533,11 @@ trackedFiles: docs/sdks/benefitgrants/README.md: last_write_checksum: sha1:af83de76c7f0581ee50b139f4ce5423b1fb3b0a9 docs/sdks/benefits/README.md: - last_write_checksum: sha1:af71ea380f50a6f4b669f2c59893ca135580c001 + last_write_checksum: sha1:5d24f9e5c1e67beda95685046c48a1a00b985145 docs/sdks/checkoutlinks/README.md: last_write_checksum: sha1:8e6ba34a40b90e55dc5679a376e80665cebc34f0 docs/sdks/checkouts/README.md: - last_write_checksum: sha1:b35ca033ec6f666b6b5b803c7fee2953f391b9c1 + last_write_checksum: sha1:1d5cb47e38c0fa04624f2b9415641ff56280035b docs/sdks/clients/README.md: last_write_checksum: sha1:bc3afbf14330e9c4a47d60f7739b9efa9f6c31bf docs/sdks/customermeters/README.md: @@ -7480,7 +7555,7 @@ trackedFiles: docs/sdks/discounts/README.md: last_write_checksum: sha1:72e8e972d4256e4f195406e8ac3797bf81f34e73 docs/sdks/disputes/README.md: - last_write_checksum: sha1:339123930f8d182ebe531c41073ecc617747c49c + last_write_checksum: sha1:767160ffd6750782c71906d097276265164098b7 docs/sdks/downloadables/README.md: last_write_checksum: sha1:3424eac8fac76a6201535956f6513c89455a5ce9 docs/sdks/events/README.md: @@ -7500,9 +7575,9 @@ trackedFiles: docs/sdks/oauth2/README.md: last_write_checksum: sha1:41ab71747a1ea845eb6e342b3a827d347b0209d9 docs/sdks/orders/README.md: - last_write_checksum: sha1:575806083e591b45f835e4912788263a25816604 + last_write_checksum: sha1:60bec5ad9f9290ec71613a842fb71ece443be0fe docs/sdks/organizations/README.md: - last_write_checksum: sha1:17ba44708f7c08ec8f6558d81fb61b99b30e6151 + last_write_checksum: sha1:7eca3473663dbd91e4e624c3d06a0f171796b3b8 docs/sdks/payments/README.md: last_write_checksum: sha1:55ac9bba178fa51cc9d81e8b31660e1b6cef56b1 docs/sdks/polarbenefitgrants/README.md: @@ -7530,7 +7605,7 @@ trackedFiles: docs/sdks/seats/README.md: last_write_checksum: sha1:0ba286da3012b4d238cd39eccb03bc7c736b3fd6 docs/sdks/subscriptions/README.md: - last_write_checksum: sha1:d2d17611f83e700724cb14ea13f5d11d788871b3 + last_write_checksum: sha1:a011ab4a697cc5b33c46eecf39d6b897624a8050 docs/sdks/wallets/README.md: last_write_checksum: sha1:f8a655313c213e9c6a2900a2c12b499935f815bf docs/sdks/webhooks/README.md: @@ -7542,7 +7617,7 @@ trackedFiles: pylintrc: last_write_checksum: sha1:f3105517b767e704987821cf08b26c09d5235218 pyproject.toml: - last_write_checksum: sha1:8fb5a6b703d1b300723f22075716e3902796fbf0 + last_write_checksum: sha1:6b8aa36a1bdddeebe81b9d0269f7b1ab6c8967a7 scripts/prepare_readme.py: last_write_checksum: sha1:2311639185b318e498a99518d92fa5c847b5c70a scripts/publish.sh: @@ -7556,7 +7631,7 @@ trackedFiles: src/polar_sdk/_hooks/types.py: last_write_checksum: sha1:f0255463ebbcc31cb785aa379e40b09c33ee493b src/polar_sdk/_version.py: - last_write_checksum: sha1:d8f65916bac61c95812fc7771b973998c0a4ea0b + last_write_checksum: sha1:358c93db50d35d405018be39cb2e21878b521537 src/polar_sdk/basesdk.py: last_write_checksum: sha1:4523ea81f1381f171fe2d4e60f85b82203208d02 src/polar_sdk/benefit_grants.py: @@ -7564,7 +7639,7 @@ trackedFiles: src/polar_sdk/benefits.py: last_write_checksum: sha1:54c3f82f8a9923f9c69880a47bcf05e8804ab36f src/polar_sdk/checkout_links.py: - last_write_checksum: sha1:64ecdaf6e7a062890c0cbc8863a8051773c53f40 + last_write_checksum: sha1:b708de83d52c1b6779c4ae0c8a40910395f59f41 src/polar_sdk/checkouts.py: last_write_checksum: sha1:b5dcf2a4cb9824bd7f2cf55fd8b9d0a8bf4a6525 src/polar_sdk/clients.py: @@ -7586,7 +7661,7 @@ trackedFiles: src/polar_sdk/discounts.py: last_write_checksum: sha1:40222e149a8b0748ba964c08c87e079b2c828217 src/polar_sdk/disputes.py: - last_write_checksum: sha1:d701f2c74b71c40374d309341a5e689e8fe814c5 + last_write_checksum: sha1:cbb47bd11d00da81887ba841ef0e2fa4b36b66f2 src/polar_sdk/downloadables.py: last_write_checksum: sha1:f9d8235f56cd351250fdcf20227f4ce0da319602 src/polar_sdk/event_types.py: @@ -7606,7 +7681,7 @@ trackedFiles: src/polar_sdk/metrics_sdk.py: last_write_checksum: sha1:65d8e1ae450388ba98d6c93901c3ae7e7f3e929e src/polar_sdk/models/__init__.py: - last_write_checksum: sha1:9319d58be391afd94a626c4f5ee2ff4b1e7dacac + last_write_checksum: sha1:eba70eb0e845f3e1dc6174c02f77e28c62843293 src/polar_sdk/models/address.py: last_write_checksum: sha1:083edb7f045174ac1aea30545e9981c33f07d57d src/polar_sdk/models/addressdict.py: @@ -7856,7 +7931,7 @@ trackedFiles: src/polar_sdk/models/cardpaymentmetadata.py: last_write_checksum: sha1:2fe22cf53af2f2fe9b5d9dbd4097c00838cf90d7 src/polar_sdk/models/checkout.py: - last_write_checksum: sha1:34f8434ad0da04f6789c3a4ab29b067d812616a5 + last_write_checksum: sha1:6afc9eabdf35923bd6b9e9c8f6164d1b113044c4 src/polar_sdk/models/checkout_links_deleteop.py: last_write_checksum: sha1:0b6cad5372c170fb1431f4b1a2ed193dba02e9dc src/polar_sdk/models/checkout_links_getop.py: @@ -7868,7 +7943,7 @@ trackedFiles: src/polar_sdk/models/checkoutbillingaddressfields.py: last_write_checksum: sha1:0665454839da8b6c80600bfc3b8bc82782ddc40b src/polar_sdk/models/checkoutconfirmstripe.py: - last_write_checksum: sha1:b365fdd5310a110374dd6d3f7bd86104373da7eb + last_write_checksum: sha1:7a33fd653fd70e26e2ec0484404c8e5cba5f03e6 src/polar_sdk/models/checkoutcreate.py: last_write_checksum: sha1:c446512d921bafa9e98cc25c9920ca1daa4f3273 src/polar_sdk/models/checkoutcreatedevent.py: @@ -7884,7 +7959,7 @@ trackedFiles: src/polar_sdk/models/checkoutdiscountpercentagerepeatduration.py: last_write_checksum: sha1:102ea5f95ecdd01a7887197e10e6f3929c615a48 src/polar_sdk/models/checkoutforbiddenerror.py: - last_write_checksum: sha1:c29e54f5c8436277653567b4d24b8a4cbeee7fca + last_write_checksum: sha1:894c8e6b3326c8ed0e137c35d978b1a8af9d7fd7 src/polar_sdk/models/checkoutlink.py: last_write_checksum: sha1:5db71cd4dae90648713edea7711abc09870fb826 src/polar_sdk/models/checkoutlinkcreate.py: @@ -7906,9 +7981,9 @@ trackedFiles: src/polar_sdk/models/checkoutproduct.py: last_write_checksum: sha1:5e627a5cf5044c98ed09e9ac4ba90b298d5011b0 src/polar_sdk/models/checkoutpublic.py: - last_write_checksum: sha1:ec413e34e63012a97ab862e60a4247dfb7fe1765 + last_write_checksum: sha1:638355639c388735751afd36c2a288602b2be1a9 src/polar_sdk/models/checkoutpublicconfirmed.py: - last_write_checksum: sha1:29b6f90c8606a5038129a899e80a2a05672f5025 + last_write_checksum: sha1:b3d1239fe36b73bd0f781aa962be364a174e93cd src/polar_sdk/models/checkouts_client_confirmop.py: last_write_checksum: sha1:43b8f70ae5ac54bbbfa26694c917b8b0359cefe5 src/polar_sdk/models/checkouts_client_getop.py: @@ -7928,7 +8003,7 @@ trackedFiles: src/polar_sdk/models/checkoutupdate.py: last_write_checksum: sha1:23867b3bf7df6d2ce2263b1dc6a6b34d1e811622 src/polar_sdk/models/checkoutupdatepublic.py: - last_write_checksum: sha1:ce757370f65805687c159b8e7e94ae1a51d0920b + last_write_checksum: sha1:351d2dcb810c555b386ef08cdd65d96a29ab4ace src/polar_sdk/models/costmetadata_input.py: last_write_checksum: sha1:2ff17a766f114cbb04977f132e58d340dc302d66 src/polar_sdk/models/costmetadata_output.py: @@ -8354,27 +8429,29 @@ trackedFiles: src/polar_sdk/models/discountduration.py: last_write_checksum: sha1:18772d206aaedfaa7017d5a60b8a356f3525c1b5 src/polar_sdk/models/discountfixedcreate.py: - last_write_checksum: sha1:8ca328fe7e973bddcbfeb613a1b428995ead578b + last_write_checksum: sha1:5ce484eb9828de33a67bf2a4380173b5da4639f3 src/polar_sdk/models/discountfixedonceforeverduration.py: - last_write_checksum: sha1:05b590ada3f979aa3df98a8bd990eb010a04e776 + last_write_checksum: sha1:c0a5a0d492078de9e29b613813b1210003f2bdc2 src/polar_sdk/models/discountfixedonceforeverdurationbase.py: - last_write_checksum: sha1:e5eb9dae3bcff71d4ab442bc0bc6cd3c0416e26d + last_write_checksum: sha1:5d37bfd32a21d98ba4b6a937ee18487041bc9cb3 src/polar_sdk/models/discountfixedrepeatduration.py: - last_write_checksum: sha1:4e2f28858fb80b457ed912c6c367b11cf994d997 + last_write_checksum: sha1:475fd4d89dc9e4a5b498f71baae9a41acbc13c73 src/polar_sdk/models/discountfixedrepeatdurationbase.py: - last_write_checksum: sha1:4dc2d727e8b58bfcd8869bf41001e8b56695bf21 + last_write_checksum: sha1:c56119fc2b939cf85762e6b61adccc2252996a58 src/polar_sdk/models/discountpercentagecreate.py: - last_write_checksum: sha1:f78550b97b65f665d13b9e8f27125e7ff0ebfceb + last_write_checksum: sha1:a92d0ed1fa01ac0161d03c87df2f9f7095e46d45 src/polar_sdk/models/discountpercentageonceforeverduration.py: - last_write_checksum: sha1:e190bfd94671e1fbcdbd027022feae602e3be993 + last_write_checksum: sha1:8f2b90ee58db1d459acedf6ba23ab69e1ec4e206 src/polar_sdk/models/discountpercentageonceforeverdurationbase.py: - last_write_checksum: sha1:876acee98d5dc9f5150db1c746fc2d881fa22e0a + last_write_checksum: sha1:60b52847c8daad1aac30bdbf0eef525a93daacd9 src/polar_sdk/models/discountpercentagerepeatduration.py: - last_write_checksum: sha1:3c50cc2dc0e33ba19c686730b67cc69b6d9c887e + last_write_checksum: sha1:a10c90bfe13969e5e1d75739b348fd520df4efd1 src/polar_sdk/models/discountpercentagerepeatdurationbase.py: - last_write_checksum: sha1:6f9daf7d0dc684163e17f2365d48617585848dd3 + last_write_checksum: sha1:39b5b9297b4b7d6e96dd6eaaf78f7013acc6aa04 src/polar_sdk/models/discountproduct.py: last_write_checksum: sha1:22f32d7de8d1350c4e9500223ab0db15f983c393 + src/polar_sdk/models/discountredemptionlimitreached.py: + last_write_checksum: sha1:efdab4a98575c4762936868bc7f41008102b5844 src/polar_sdk/models/discounts_deleteop.py: last_write_checksum: sha1:6e1203ee74ed8a606404ba443efa7526039f845f src/polar_sdk/models/discounts_getop.py: @@ -8388,7 +8465,7 @@ trackedFiles: src/polar_sdk/models/discounttype.py: last_write_checksum: sha1:f330b674b58d3e5f59c14f40ad19716dcb85448e src/polar_sdk/models/discountupdate.py: - last_write_checksum: sha1:25d7ae95dab457272ad49fcd1c3033972e5ca6a4 + last_write_checksum: sha1:685d0edce05eb9f74ed85a757b09e1049b7caaa0 src/polar_sdk/models/dispute.py: last_write_checksum: sha1:b48df1b72e1f413fe539effab72b58150e7918ec src/polar_sdk/models/disputecustomer.py: @@ -8400,7 +8477,7 @@ trackedFiles: src/polar_sdk/models/disputes_getop.py: last_write_checksum: sha1:13769440ccbd2d627ce5b6ea0c177470ba1e1fc2 src/polar_sdk/models/disputes_listop.py: - last_write_checksum: sha1:8e9cd34deca4c2ea64c99b303164fdc538b4c40d + last_write_checksum: sha1:afda0c0945e4ce1b2d437a2da9d4fc78aa5797c9 src/polar_sdk/models/disputesortproperty.py: last_write_checksum: sha1:81d1c3da7b007735a00e35489affd0fb0ff29809 src/polar_sdk/models/disputestatus.py: @@ -8755,6 +8832,10 @@ trackedFiles: last_write_checksum: sha1:d22b6b744e74c156612aa03b907c16e362de836e src/polar_sdk/models/ordersubscription.py: last_write_checksum: sha1:320495bd594823e6ef5f549c1e982f1402771caa + src/polar_sdk/models/orderunvoidedevent.py: + last_write_checksum: sha1:2b5b73a67d85a7dbd9a5b14d2381eddb280d0714 + src/polar_sdk/models/orderunvoidedmetadata.py: + last_write_checksum: sha1:08ffbcfdd5e8f3fd06fc4576a97a1e1b9ea6631a src/polar_sdk/models/orderupdate.py: last_write_checksum: sha1:89edd80c248803382ab77cfef04497d1d6f4dab1 src/polar_sdk/models/ordervoidedevent.py: @@ -8762,7 +8843,7 @@ trackedFiles: src/polar_sdk/models/ordervoidedmetadata.py: last_write_checksum: sha1:33d77ec34e627989d491dbf1fc9a9fd6232ca18b src/polar_sdk/models/organization.py: - last_write_checksum: sha1:dca8f67bbdcc5d2b68342c801bbeffe824ec2e11 + last_write_checksum: sha1:19e6d906dccddbefa893b78b3265b9248a9cc052 src/polar_sdk/models/organizationavatarfilecreate.py: last_write_checksum: sha1:b7259ea58bda0b8385bf6916f03a90e8e1393096 src/polar_sdk/models/organizationavatarfileread.py: @@ -8774,7 +8855,7 @@ trackedFiles: src/polar_sdk/models/organizationcreate.py: last_write_checksum: sha1:cef25c8030590df1ad6d9deb92a678df7e58f421 src/polar_sdk/models/organizationcustomeremailsettings.py: - last_write_checksum: sha1:cf3b65bc5193f28a1a24de26a5443d52c1a572df + last_write_checksum: sha1:3284492160c35e3786c23ceadf9e016abc963283 src/polar_sdk/models/organizationcustomerportalsettings.py: last_write_checksum: sha1:e9b96af1be131404181251d05b394902b64b8eb5 src/polar_sdk/models/organizationdetails.py: @@ -8804,7 +8885,7 @@ trackedFiles: src/polar_sdk/models/organizationsubscriptionsettings.py: last_write_checksum: sha1:203cd8a2032d20862ee82c4c8efbd020d4839f56 src/polar_sdk/models/organizationupdate.py: - last_write_checksum: sha1:86747d34dbb5316c5aba95f21372e565b4e9b3e9 + last_write_checksum: sha1:31246fc461f62b5470f4e4dd6fec0719d47aecd9 src/polar_sdk/models/pagination.py: last_write_checksum: sha1:88b8cafcf8bbbb722ffc53957982fecae18d95bf src/polar_sdk/models/pauseresumenotallowed.py: @@ -9021,6 +9102,10 @@ trackedFiles: last_write_checksum: sha1:1ca76c933a241105f31db64c3f643b4fc85a5403 src/polar_sdk/models/subscriptionreactivatedmetadata.py: last_write_checksum: sha1:ff6fa132f778882ae37cbd3fe2bda057627f8df9 + src/polar_sdk/models/subscriptionreinstatedevent.py: + last_write_checksum: sha1:d73ba73e7eadd560891b4f5e6858f446550956b7 + src/polar_sdk/models/subscriptionreinstatedmetadata.py: + last_write_checksum: sha1:0755e96f2be400bddad1759c7700a591a1e413ca src/polar_sdk/models/subscriptionresume.py: last_write_checksum: sha1:a942b83b974b13301ed7d24bc683196b169310f9 src/polar_sdk/models/subscriptionresumedevent.py: @@ -9040,7 +9125,7 @@ trackedFiles: src/polar_sdk/models/subscriptions_getop.py: last_write_checksum: sha1:74872cc7de547940f4189bbabea5d8d4803837e1 src/polar_sdk/models/subscriptions_listop.py: - last_write_checksum: sha1:f46af44b4e8a24c951feffcec1e5a23c17219efe + last_write_checksum: sha1:3ba86b7ba9c01c13263efc2638eb18cf45d03eb2 src/polar_sdk/models/subscriptions_revokeop.py: last_write_checksum: sha1:e1ca41a0bf57c37d748d641ca62cea7b71509537 src/polar_sdk/models/subscriptions_updateop.py: @@ -9082,7 +9167,7 @@ trackedFiles: src/polar_sdk/models/supportcaseattachmentfileread.py: last_write_checksum: sha1:64399f6fb1748b969d196084584292ef27c2940e src/polar_sdk/models/systemevent.py: - last_write_checksum: sha1:2053203a9630c180bdf52a2a165e3a2ff054bb2f + last_write_checksum: sha1:48d3d0a5f89926740e14f0594a44da4cf6cb2059 src/polar_sdk/models/taxbehavior.py: last_write_checksum: sha1:921ea72d113f192be1b2407a0390e656bb8ee0e0 src/polar_sdk/models/taxbehavioroption.py: @@ -9145,6 +9230,12 @@ trackedFiles: last_write_checksum: sha1:bd2ffacdbc489e79886979c2ed55335e0afba5cb src/polar_sdk/models/webhookdelivery.py: last_write_checksum: sha1:961fb639b9e83c7f4cef0ab634513bc8b51c77c4 + src/polar_sdk/models/webhookdiscountcreatedpayload.py: + last_write_checksum: sha1:25fcad1cc414717d40aaf4c7a292ce1f72c8aa4a + src/polar_sdk/models/webhookdiscountdeletedpayload.py: + last_write_checksum: sha1:6354cb0ab43d85629913faeab1a9965ff453da81 + src/polar_sdk/models/webhookdiscountupdatedpayload.py: + last_write_checksum: sha1:a4468a01d742d34fc7b972fdd32488847d305a74 src/polar_sdk/models/webhookendpoint.py: last_write_checksum: sha1:bca149e75ba9a3b3252580c15ef4e892eb20083b src/polar_sdk/models/webhookendpointcreate.py: @@ -9154,7 +9245,7 @@ trackedFiles: src/polar_sdk/models/webhookevent.py: last_write_checksum: sha1:6a5f95aaffcf13265b6232959c68fd6fcec38e6b src/polar_sdk/models/webhookeventtype.py: - last_write_checksum: sha1:cca15b5c5af9aabda1c0d8e88fe8e729f48ba1bb + last_write_checksum: sha1:bd5f1b0a34fe02f35d27c27b6eefa00140bcb157 src/polar_sdk/models/webhookformat.py: last_write_checksum: sha1:927942f68de60bc6773f031e2f7852216b0e517c src/polar_sdk/models/webhookmembercreatedpayload.py: @@ -9201,6 +9292,8 @@ trackedFiles: last_write_checksum: sha1:1619aa3b72161f6839ea77af78f437751037b92c src/polar_sdk/models/webhooksubscriptioncreatedpayload.py: last_write_checksum: sha1:546e43c4a760cc21c1e786abbda00b9150a19fef + src/polar_sdk/models/webhooksubscriptioncycledpayload.py: + last_write_checksum: sha1:62155065e57a516c414b1298b5b9980771569536 src/polar_sdk/models/webhooksubscriptionpastduepayload.py: last_write_checksum: sha1:87f8de081afdc83847c2e199fe41e047592ac730 src/polar_sdk/models/webhooksubscriptionpausedpayload.py: @@ -9212,13 +9305,13 @@ trackedFiles: src/polar_sdk/models/webhooksubscriptionuncanceledpayload.py: last_write_checksum: sha1:d1c6a5b915ca7c2217a657fd2c94f9b63ca40549 src/polar_sdk/models/webhooksubscriptionupdatedpayload.py: - last_write_checksum: sha1:250d9905f637640d0244fe7f1603568c8e0e1995 + last_write_checksum: sha1:70efb8e8ac5c57d5d2b8691013a2392c91e778c9 src/polar_sdk/models/webtokenrequest.py: last_write_checksum: sha1:353ea7941fcbe8978da439858c204851b13d27af src/polar_sdk/oauth2.py: last_write_checksum: sha1:6740f1146c4087ac23c4e93cb17fcaa70a8f53d0 src/polar_sdk/orders.py: - last_write_checksum: sha1:2007a9818c19771f86e10a1c3f9efc77f9c07c13 + last_write_checksum: sha1:15cc69fb2698ae94e7b29e2d2d660e782dfde489 src/polar_sdk/organizations.py: last_write_checksum: sha1:ae0347ed0322fc273f2b9d4e2737823b458d6d73 src/polar_sdk/payments.py: @@ -9230,13 +9323,13 @@ trackedFiles: src/polar_sdk/polar_customer_portal_members.py: last_write_checksum: sha1:77739b38a54bed95d3d6d7f1255cf86a457884b0 src/polar_sdk/polar_customers.py: - last_write_checksum: sha1:8d64324cbf590f2b9d9a13968291107bf7b1051e + last_write_checksum: sha1:dfca704b0a1400b96b89c55754aba9c501c4e101 src/polar_sdk/polar_license_keys.py: - last_write_checksum: sha1:1a7c80b3a714a8ac6b665ba73812550021223753 + last_write_checksum: sha1:06b3655f6c622e17288780eac4152736b6eb33c9 src/polar_sdk/polar_members.py: last_write_checksum: sha1:3f597c46d2e570bc1460d82a001a49daf729d181 src/polar_sdk/polar_orders.py: - last_write_checksum: sha1:9e76cae96c127d47f2e28a1d4d426c849dcd9447 + last_write_checksum: sha1:979d6fa584957ae55b3d8841a9bb1047b6ff764f src/polar_sdk/polar_organizations.py: last_write_checksum: sha1:c6298efce671945b44ad0fb1e0916b1a26f3b224 src/polar_sdk/polar_subscriptions.py: @@ -9254,7 +9347,7 @@ trackedFiles: src/polar_sdk/seats.py: last_write_checksum: sha1:70ec6652559408050c8ff556ae3711e152cfca1d src/polar_sdk/subscriptions.py: - last_write_checksum: sha1:35a9cf4928144a53d0925daf3dd12fdd02c43327 + last_write_checksum: sha1:6ebdc3ca7073d3e07c46af855921590a492eb431 src/polar_sdk/types/__init__.py: last_write_checksum: sha1:f9ad14217f832e74f594285960125add50324be9 src/polar_sdk/types/base64fileinput.py: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5bc5c3cf..64386474 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: persistentEdits: {} versioningStrategy: automatic python: - version: 0.32.0 + version: 0.32.1 additionalDependencies: dev: pydantic-ai-slim: ^0.1.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c55ad765..880ca2d7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.648.0 sources: Polar-OAS: sourceNamespace: polar-oas - sourceRevisionDigest: sha256:9cf091f91ef4a46970ede3273ee33e541c996281ec50ce88b55131f7d05e9b8c - sourceBlobDigest: sha256:bd427b992ceeb027fb3495c84d300ac99b300e03c96a775cd948e837b8ca9994 + sourceRevisionDigest: sha256:13e1d88da73708b0d7dbdced60ff2ea2beecda03792a3fb64f976ee7605d1bcf + sourceBlobDigest: sha256:ab789f9de07a02ada63727da4a26554b778417831c74357ad36187383bcb07c2 tags: - latest - - speakeasy-sdk-regen-1781311562 + - speakeasy-sdk-regen-1784593801 - 2026-04 targets: polar: source: Polar-OAS sourceNamespace: polar-oas - sourceRevisionDigest: sha256:9cf091f91ef4a46970ede3273ee33e541c996281ec50ce88b55131f7d05e9b8c - sourceBlobDigest: sha256:bd427b992ceeb027fb3495c84d300ac99b300e03c96a775cd948e837b8ca9994 + sourceRevisionDigest: sha256:13e1d88da73708b0d7dbdced60ff2ea2beecda03792a3fb64f976ee7605d1bcf + sourceBlobDigest: sha256:ab789f9de07a02ada63727da4a26554b778417831c74357ad36187383bcb07c2 codeSamplesNamespace: polar-oas-py-code-samples - codeSamplesRevisionDigest: sha256:6351e6c063d48f2c1f108519dd311ee4340131943242e7c054acef26fa717322 + codeSamplesRevisionDigest: sha256:c5e5a3a10caa613b3395a41e601c26105e9bf63b4afccddbf991eedc686d1aae workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index ef43b2f2..5c1a6ffa 100644 --- a/README.md +++ b/README.md @@ -606,7 +606,7 @@ with Polar( * [`PolarError`](./src/polar_sdk/models/polarerror.py): The base class for HTTP error responses. * [`HTTPValidationError`](./src/polar_sdk/models/httpvalidationerror.py): Validation Error. Status code `422`. * -
Less common errors (35) +
Less common errors (36)
@@ -627,6 +627,7 @@ with Polar( * [`NotOpenCheckout`](./src/polar_sdk/models/notopencheckout.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 185 methods.* * [`PaymentNotReady`](./src/polar_sdk/models/paymentnotready.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 185 methods.* * [`TrialAlreadyRedeemed`](./src/polar_sdk/models/trialalreadyredeemed.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 185 methods.* +* [`DiscountRedemptionLimitReached`](./src/polar_sdk/models/discountredemptionlimitreached.py): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 185 methods.* * [`ExpiredCheckoutError`](./src/polar_sdk/models/expiredcheckouterror.py): The checkout session is expired. Status code `410`. Applicable to 3 of 185 methods.* * [`SubscriptionLocked`](./src/polar_sdk/models/subscriptionlocked.py): Subscription is pending an update. Status code `409`. Applicable to 2 of 185 methods.* * [`OrderNotEligibleForInvoice`](./src/polar_sdk/models/ordernoteligibleforinvoice.py): Order is not eligible for invoice generation (invalid status). Status code `409`. Applicable to 2 of 185 methods.* diff --git a/RELEASES.md b/RELEASES.md index 0d26afcb..47dd20a5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1153,4 +1153,14 @@ Based on: ### Generated - [python v0.32.0] . ### Releases -- [PyPI v0.32.0] https://pypi.org/project/polar-sdk/0.32.0 - . \ No newline at end of file +- [PyPI v0.32.0] https://pypi.org/project/polar-sdk/0.32.0 - . + +## 2026-08-02 00:31:22 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.32.1] . +### Releases +- [PyPI v0.32.1] https://pypi.org/project/polar-sdk/0.32.1 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index c3013db9..7a6c634e 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -974,7 +974,7 @@ actions: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"\",\n) as polar:\n\n res = polar.organizations.update(id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\", organization_update={})\n\n # Handle response\n print(res)" + "source": "from polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"\",\n) as polar:\n\n res = polar.organizations.update(id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\", organization_update={\n \"embed_hosts\": [\n \"example.com\",\n \"*.example.com\",\n \"localhost:3000\",\n ],\n })\n\n # Handle response\n print(res)" - target: $["paths"]["/v1/payments/"]["get"] update: "x-codeSamples": @@ -1082,7 +1082,7 @@ actions: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"\",\n) as polar:\n\n res = polar.webhooks.create_webhook_endpoint(request={\n \"url\": \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n \"format_\": polar_sdk.WebhookFormat.SLACK,\n \"events\": [\n polar_sdk.WebhookEventType.SUBSCRIPTION_CANCELED,\n ],\n \"organization_id\": \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n })\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\n\n\nwith Polar(\n access_token=\"\",\n) as polar:\n\n res = polar.webhooks.create_webhook_endpoint(request={\n \"url\": \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n \"format_\": polar_sdk.WebhookFormat.SLACK,\n \"events\": [\n polar_sdk.WebhookEventType.SUBSCRIPTION_CYCLED,\n ],\n \"organization_id\": \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n })\n\n # Handle response\n print(res)" - target: $["paths"]["/v1/webhooks/endpoints/{id}"]["delete"] update: "x-codeSamples": @@ -1154,19 +1154,19 @@ actions: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcheckout_created_post(request=polar_sdk.WebhookCheckoutCreatedPayload(\n timestamp=parse_datetime(\"2024-02-15T15:44:21.478Z\"),\n data=polar_sdk.Checkout(\n id=\"\",\n created_at=parse_datetime(\"2026-09-12T19:48:15.814Z\"),\n modified_at=parse_datetime(\"2024-09-13T02:01:27.394Z\"),\n payment_processor=polar_sdk.PaymentProcessor.STRIPE,\n status=polar_sdk.CheckoutStatus.EXPIRED,\n client_secret=\"\",\n url=\"https://agreeable-reboot.biz\",\n expires_at=parse_datetime(\"2025-05-02T18:25:33.974Z\"),\n success_url=\"https://rural-outrun.org\",\n return_url=\"https://clean-humidity.com/\",\n embed_origin=\"\",\n amount=275553,\n discount_amount=9980,\n net_amount=266632,\n tax_amount=348968,\n tax_behavior=polar_sdk.TaxBehavior.INCLUSIVE,\n total_amount=322400,\n currency=\"Boliviano boliviano\",\n allow_trial=False,\n active_trial_interval=polar_sdk.TrialInterval.DAY,\n active_trial_interval_count=None,\n trial_end=parse_datetime(\"2024-05-07T13:53:51.913Z\"),\n organization_id=\"\",\n product_id=\"\",\n product_price_id=\"\",\n discount_id=\"\",\n allow_discount_codes=False,\n require_billing_address=False,\n is_discount_applicable=False,\n is_free_product_price=False,\n is_payment_required=False,\n is_payment_setup_required=True,\n is_payment_form_required=False,\n customer_id=\"\",\n is_business_customer=True,\n customer_name=\"\",\n customer_email=\"\",\n customer_ip_address=\"\",\n customer_billing_name=\"\",\n customer_billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n customer_tax_id=\"\",\n payment_processor_metadata={\n \"key\": \"\",\n \"key1\": \"\",\n \"key2\": \"\",\n },\n billing_address_fields=polar_sdk.CheckoutBillingAddressFields(\n country=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n state=polar_sdk.BillingAddressFieldMode.REQUIRED,\n city=polar_sdk.BillingAddressFieldMode.DISABLED,\n postal_code=polar_sdk.BillingAddressFieldMode.REQUIRED,\n line1=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n line2=polar_sdk.BillingAddressFieldMode.DISABLED,\n ),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=None,\n metadata={\n\n },\n external_customer_id=\"\",\n products=[\n polar_sdk.CheckoutProduct(\n id=\"\",\n created_at=parse_datetime(\"2024-01-06T18:09:03.676Z\"),\n modified_at=parse_datetime(\"2025-05-28T21:42:41.690Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=590205,\n name=\"\",\n description=\"structure tenderly dirty colon though\",\n visibility=polar_sdk.ProductVisibility.DRAFT,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=265994,\n meter_interval=None,\n meter_interval_count=655705,\n is_recurring=False,\n is_archived=True,\n organization_id=\"\",\n prices=[],\n benefits=[],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/lost+found\",\n mime_type=\"\",\n size=554797,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2025-08-28T17:10:35.995Z\"),\n version=\"\",\n is_uploaded=False,\n created_at=parse_datetime(\"2025-04-26T07:56:31.500Z\"),\n size_readable=\"\",\n public_url=\"https://salty-ribbon.com\",\n ),\n ],\n ),\n ],\n product=None,\n product_price=polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2024-03-22T00:37:19.107Z\"),\n modified_at=parse_datetime(\"2025-09-18T07:26:08.380Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n price_amount=445418,\n ),\n prices={\n \"key\": [\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2026-05-31T15:03:57.964Z\"),\n modified_at=parse_datetime(\"2024-07-27T13:28:27.335Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n price_amount=618605,\n ),\n ],\n \"key1\": [\n polar_sdk.ProductPriceMeteredUnit(\n created_at=parse_datetime(\"2025-08-25T01:30:01.521Z\"),\n modified_at=parse_datetime(\"2025-03-28T21:18:04.322Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=True,\n product_id=\"\",\n unit_amount=\"\",\n cap_amount=551606,\n meter_id=\"\",\n meter=polar_sdk.ProductPriceMeter(\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n custom_label=\"\",\n custom_multiplier=174683,\n ),\n ),\n ],\n },\n discount=None,\n subscription_id=\"\",\n attached_custom_fields=[],\n customer_metadata={\n\n },\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcheckout_created_post(request=polar_sdk.WebhookCheckoutCreatedPayload(\n timestamp=parse_datetime(\"2024-02-15T15:44:21.478Z\"),\n data=polar_sdk.Checkout(\n id=\"\",\n created_at=parse_datetime(\"2026-09-12T19:48:15.814Z\"),\n modified_at=parse_datetime(\"2024-09-13T02:01:27.394Z\"),\n payment_processor=polar_sdk.PaymentProcessor.STRIPE,\n status=polar_sdk.CheckoutStatus.EXPIRED,\n client_secret=\"\",\n url=\"https://agreeable-reboot.biz\",\n expires_at=parse_datetime(\"2025-05-02T18:25:33.974Z\"),\n success_url=\"https://rural-outrun.org\",\n return_url=\"https://clean-humidity.com/\",\n embed_origin=\"\",\n amount=275553,\n discount_amount=9980,\n net_amount=266632,\n tax_amount=348968,\n tax_behavior=polar_sdk.TaxBehavior.INCLUSIVE,\n total_amount=322400,\n currency=\"Boliviano boliviano\",\n allow_trial=False,\n active_trial_interval=polar_sdk.TrialInterval.DAY,\n active_trial_interval_count=None,\n trial_end=parse_datetime(\"2024-05-07T13:53:51.913Z\"),\n organization_id=\"\",\n product_id=\"\",\n product_price_id=\"\",\n discount_id=\"\",\n allow_discount_codes=False,\n require_billing_address=False,\n is_discount_applicable=False,\n is_free_product_price=False,\n is_payment_required=False,\n is_payment_setup_required=True,\n is_payment_form_required=False,\n customer_id=\"\",\n is_business_customer=True,\n customer_name=\"\",\n customer_email=\"\",\n customer_ip_address=\"\",\n customer_billing_name=\"\",\n customer_billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n customer_tax_id=\"\",\n payment_method_type=\"\",\n payment_processor_metadata={\n \"key\": \"\",\n \"key1\": \"\",\n },\n billing_address_fields=polar_sdk.CheckoutBillingAddressFields(\n country=polar_sdk.BillingAddressFieldMode.REQUIRED,\n state=polar_sdk.BillingAddressFieldMode.DISABLED,\n city=polar_sdk.BillingAddressFieldMode.REQUIRED,\n postal_code=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n line1=polar_sdk.BillingAddressFieldMode.DISABLED,\n line2=polar_sdk.BillingAddressFieldMode.DISABLED,\n ),\n trial_interval=polar_sdk.TrialInterval.DAY,\n trial_interval_count=138362,\n metadata={\n \"key\": \"\",\n },\n external_customer_id=\"\",\n products=[],\n product=polar_sdk.CheckoutProduct(\n id=\"\",\n created_at=parse_datetime(\"2025-07-06T07:35:44.280Z\"),\n modified_at=parse_datetime(\"2025-10-08T20:45:26.653Z\"),\n trial_interval=polar_sdk.TrialInterval.WEEK,\n trial_interval_count=None,\n name=\"\",\n description=\"brave siege deliberately yahoo yieldingly yuck until\",\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=654854,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=703854,\n is_recurring=False,\n is_archived=True,\n organization_id=\"\",\n prices=[],\n benefits=[\n polar_sdk.BenefitPublic(\n id=\"\",\n created_at=parse_datetime(\"2024-10-21T16:07:40.109Z\"),\n modified_at=parse_datetime(\"2024-03-22T00:37:19.107Z\"),\n type=polar_sdk.BenefitType.DOWNLOADABLES,\n description=\"hexagon cope nab unimportant defenseless although obnoxiously\",\n selectable=True,\n deletable=False,\n is_deleted=False,\n organization_id=\"\",\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/root\",\n mime_type=\"\",\n size=68559,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=None,\n version=\"\",\n is_uploaded=False,\n created_at=parse_datetime(\"2025-08-14T23:26:30.929Z\"),\n size_readable=\"\",\n public_url=\"https://respectful-warming.org/\",\n ),\n ],\n ),\n product_price=polar_sdk.ProductPriceSeatBased(\n created_at=parse_datetime(\"2026-10-08T17:13:41.913Z\"),\n modified_at=parse_datetime(\"2024-06-28T11:47:03.272Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=False,\n product_id=\"\",\n seat_tiers=polar_sdk.ProductPriceSeatTiersOutput(\n tiers=[\n polar_sdk.ProductPriceSeatTier(\n min_seats=357236,\n price_per_seat=657601,\n ),\n ],\n minimum_seats=287910,\n maximum_seats=357440,\n ),\n ),\n prices={\n \"key\": [\n polar_sdk.ProductPriceMeteredUnit(\n created_at=parse_datetime(\"2024-09-11T20:26:20.871Z\"),\n modified_at=None,\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n unit_amount=\"\",\n cap_amount=800933,\n meter_id=\"\",\n meter=polar_sdk.ProductPriceMeter(\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.CUSTOM,\n custom_label=\"\",\n custom_multiplier=None,\n ),\n ),\n ],\n \"key1\": [\n polar_sdk.LegacyRecurringProductPriceCustom(\n created_at=parse_datetime(\"2024-01-28T19:25:32.234Z\"),\n modified_at=parse_datetime(\"2025-10-30T14:19:38.353Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=False,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n minimum_amount=484796,\n maximum_amount=240218,\n preset_amount=851525,\n ),\n ],\n \"key2\": [],\n },\n discount=polar_sdk.CheckoutDiscountFixedOnceForeverDuration(\n duration=polar_sdk.DiscountDuration.ONCE,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n id=\"\",\n name=\"\",\n code=\"\",\n ),\n subscription_id=\"\",\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldCheckbox(\n created_at=parse_datetime(\"2024-07-03T08:52:14.626Z\"),\n modified_at=parse_datetime(\"2025-10-29T10:43:02.267Z\"),\n id=\"\",\n metadata={\n\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldCheckboxProperties(),\n ),\n order=561350,\n required=False,\n ),\n ],\n customer_metadata={\n\n },\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["checkout.expired"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcheckout_expired_post(request=polar_sdk.WebhookCheckoutExpiredPayload(\n timestamp=parse_datetime(\"2025-07-24T10:11:01.088Z\"),\n data=polar_sdk.Checkout(\n id=\"\",\n created_at=parse_datetime(\"2024-05-04T16:36:16.430Z\"),\n modified_at=parse_datetime(\"2025-07-14T11:38:07.998Z\"),\n payment_processor=polar_sdk.PaymentProcessor.STRIPE,\n status=polar_sdk.CheckoutStatus.OPEN,\n client_secret=\"\",\n url=\"https://husky-advertisement.biz/\",\n expires_at=parse_datetime(\"2026-08-22T23:38:29.173Z\"),\n success_url=\"https://wasteful-premeditation.org\",\n return_url=\"https://torn-toothpick.name\",\n embed_origin=\"\",\n amount=104765,\n discount_amount=723749,\n net_amount=208098,\n tax_amount=740520,\n tax_behavior=polar_sdk.TaxBehavior.INCLUSIVE,\n total_amount=891839,\n currency=\"Iceland Krona\",\n allow_trial=True,\n active_trial_interval=polar_sdk.TrialInterval.YEAR,\n active_trial_interval_count=993333,\n trial_end=parse_datetime(\"2026-02-10T15:12:42.397Z\"),\n organization_id=\"\",\n product_id=\"\",\n product_price_id=\"\",\n discount_id=\"\",\n allow_discount_codes=True,\n require_billing_address=True,\n is_discount_applicable=False,\n is_free_product_price=True,\n is_payment_required=True,\n is_payment_setup_required=False,\n is_payment_form_required=False,\n customer_id=\"\",\n is_business_customer=True,\n customer_name=\"\",\n customer_email=\"\",\n customer_ip_address=\"\",\n customer_billing_name=\"\",\n customer_billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n customer_tax_id=\"\",\n payment_processor_metadata={\n \"key\": \"\",\n },\n billing_address_fields=polar_sdk.CheckoutBillingAddressFields(\n country=polar_sdk.BillingAddressFieldMode.DISABLED,\n state=polar_sdk.BillingAddressFieldMode.REQUIRED,\n city=polar_sdk.BillingAddressFieldMode.REQUIRED,\n postal_code=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n line1=polar_sdk.BillingAddressFieldMode.DISABLED,\n line2=polar_sdk.BillingAddressFieldMode.DISABLED,\n ),\n trial_interval=polar_sdk.TrialInterval.WEEK,\n trial_interval_count=688555,\n metadata={\n \"key\": \"\",\n },\n external_customer_id=\"\",\n products=[],\n product=None,\n product_price=polar_sdk.ProductPriceSeatBased(\n created_at=parse_datetime(\"2026-01-06T18:52:18.062Z\"),\n modified_at=parse_datetime(\"2025-05-10T14:44:05.951Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=False,\n product_id=\"\",\n seat_tiers=polar_sdk.ProductPriceSeatTiersOutput(\n tiers=[],\n minimum_seats=400901,\n maximum_seats=638464,\n ),\n ),\n prices=None,\n discount=polar_sdk.CheckoutDiscountFixedOnceForeverDuration(\n duration=polar_sdk.DiscountDuration.ONCE,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n id=\"\",\n name=\"\",\n code=None,\n ),\n subscription_id=\"\",\n attached_custom_fields=[],\n customer_metadata={\n\n },\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcheckout_expired_post(request=polar_sdk.WebhookCheckoutExpiredPayload(\n timestamp=parse_datetime(\"2025-07-24T10:11:01.088Z\"),\n data=polar_sdk.Checkout(\n id=\"\",\n created_at=parse_datetime(\"2024-05-04T16:36:16.430Z\"),\n modified_at=parse_datetime(\"2025-07-14T11:38:07.998Z\"),\n payment_processor=polar_sdk.PaymentProcessor.STRIPE,\n status=polar_sdk.CheckoutStatus.OPEN,\n client_secret=\"\",\n url=\"https://husky-advertisement.biz/\",\n expires_at=parse_datetime(\"2026-08-22T23:38:29.173Z\"),\n success_url=\"https://wasteful-premeditation.org\",\n return_url=\"https://torn-toothpick.name\",\n embed_origin=\"\",\n amount=104765,\n discount_amount=723749,\n net_amount=208098,\n tax_amount=740520,\n tax_behavior=polar_sdk.TaxBehavior.INCLUSIVE,\n total_amount=891839,\n currency=\"Iceland Krona\",\n allow_trial=True,\n active_trial_interval=polar_sdk.TrialInterval.YEAR,\n active_trial_interval_count=993333,\n trial_end=parse_datetime(\"2026-02-10T15:12:42.397Z\"),\n organization_id=\"\",\n product_id=\"\",\n product_price_id=\"\",\n discount_id=\"\",\n allow_discount_codes=True,\n require_billing_address=True,\n is_discount_applicable=False,\n is_free_product_price=True,\n is_payment_required=True,\n is_payment_setup_required=False,\n is_payment_form_required=False,\n customer_id=\"\",\n is_business_customer=True,\n customer_name=\"\",\n customer_email=\"\",\n customer_ip_address=\"\",\n customer_billing_name=\"\",\n customer_billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n customer_tax_id=\"\",\n payment_method_type=\"\",\n payment_processor_metadata={\n \"key\": \"\",\n \"key1\": \"\",\n \"key2\": \"\",\n },\n billing_address_fields=polar_sdk.CheckoutBillingAddressFields(\n country=polar_sdk.BillingAddressFieldMode.REQUIRED,\n state=polar_sdk.BillingAddressFieldMode.REQUIRED,\n city=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n postal_code=polar_sdk.BillingAddressFieldMode.DISABLED,\n line1=polar_sdk.BillingAddressFieldMode.DISABLED,\n line2=polar_sdk.BillingAddressFieldMode.REQUIRED,\n ),\n trial_interval=polar_sdk.TrialInterval.WEEK,\n trial_interval_count=593284,\n metadata={\n\n },\n external_customer_id=\"\",\n products=[],\n product=None,\n product_price=polar_sdk.ProductPriceSeatBased(\n created_at=parse_datetime(\"2026-01-06T18:52:18.062Z\"),\n modified_at=parse_datetime(\"2025-05-10T14:44:05.951Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=False,\n product_id=\"\",\n seat_tiers=polar_sdk.ProductPriceSeatTiersOutput(\n tiers=[],\n minimum_seats=400901,\n maximum_seats=638464,\n ),\n ),\n prices=None,\n discount=polar_sdk.CheckoutDiscountFixedOnceForeverDuration(\n duration=polar_sdk.DiscountDuration.ONCE,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n id=\"\",\n name=\"\",\n code=None,\n ),\n subscription_id=\"\",\n attached_custom_fields=[],\n customer_metadata={\n\n },\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["checkout.updated"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcheckout_updated_post(request=polar_sdk.WebhookCheckoutUpdatedPayload(\n timestamp=parse_datetime(\"2024-03-18T05:40:46.816Z\"),\n data=polar_sdk.Checkout(\n id=\"\",\n created_at=parse_datetime(\"2025-09-17T13:52:37.257Z\"),\n modified_at=parse_datetime(\"2025-11-07T08:23:01.152Z\"),\n payment_processor=polar_sdk.PaymentProcessor.STRIPE,\n status=polar_sdk.CheckoutStatus.EXPIRED,\n client_secret=\"\",\n url=\"https://male-punctuation.name\",\n expires_at=parse_datetime(\"2026-03-26T06:13:51.386Z\"),\n success_url=\"https://monumental-mathematics.info\",\n return_url=\"https://scary-valley.com/\",\n embed_origin=\"\",\n amount=867510,\n discount_amount=469340,\n net_amount=139232,\n tax_amount=373760,\n tax_behavior=None,\n total_amount=59172,\n currency=\"New Taiwan Dollar\",\n allow_trial=True,\n active_trial_interval=polar_sdk.TrialInterval.MONTH,\n active_trial_interval_count=675563,\n trial_end=parse_datetime(\"2024-11-02T00:27:36.754Z\"),\n organization_id=\"\",\n product_id=\"\",\n product_price_id=\"\",\n discount_id=\"\",\n allow_discount_codes=False,\n require_billing_address=False,\n is_discount_applicable=True,\n is_free_product_price=True,\n is_payment_required=True,\n is_payment_setup_required=False,\n is_payment_form_required=False,\n customer_id=\"\",\n is_business_customer=False,\n customer_name=\"\",\n customer_email=\"\",\n customer_ip_address=\"\",\n customer_billing_name=\"\",\n customer_billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n customer_tax_id=\"\",\n payment_processor_metadata={\n \"key\": \"\",\n \"key1\": \"\",\n },\n billing_address_fields=polar_sdk.CheckoutBillingAddressFields(\n country=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n state=polar_sdk.BillingAddressFieldMode.REQUIRED,\n city=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n postal_code=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n line1=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n line2=polar_sdk.BillingAddressFieldMode.DISABLED,\n ),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=899080,\n metadata={\n\n },\n external_customer_id=\"\",\n products=[],\n product=polar_sdk.CheckoutProduct(\n id=\"\",\n created_at=parse_datetime(\"2025-09-06T09:34:57.464Z\"),\n modified_at=parse_datetime(\"2024-01-24T09:30:59.881Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=881833,\n name=\"\",\n description=\"needily past pause different wallaby micromanage yahoo thin instead woeful\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=297888,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=964345,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-01-20T07:54:45.660Z\"),\n modified_at=parse_datetime(\"2025-11-06T23:16:23.807Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n price_amount=894786,\n ),\n ],\n benefits=[\n polar_sdk.BenefitPublic(\n id=\"\",\n created_at=parse_datetime(\"2025-08-12T14:24:20.342Z\"),\n modified_at=parse_datetime(\"2024-07-31T03:55:09.650Z\"),\n type=polar_sdk.BenefitType.SLACK_SHARED_CHANNEL,\n description=\"beyond athwart youthful greedy eyeliner ouch faithfully kindly\",\n selectable=True,\n deletable=False,\n is_deleted=False,\n organization_id=\"\",\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/home\",\n mime_type=\"\",\n size=983809,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-04-29T02:53:02.623Z\"),\n version=\"\",\n is_uploaded=False,\n created_at=parse_datetime(\"2024-01-15T02:23:23.630Z\"),\n size_readable=\"\",\n public_url=\"https://quiet-impact.info/\",\n ),\n ],\n ),\n product_price=None,\n prices={\n\n },\n discount=polar_sdk.CheckoutDiscountFixedRepeatDuration(\n duration=polar_sdk.DiscountDuration.ONCE,\n duration_in_months=289680,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n id=\"\",\n name=\"\",\n code=\"\",\n ),\n subscription_id=\"\",\n attached_custom_fields=[],\n customer_metadata={\n\n },\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcheckout_updated_post(request=polar_sdk.WebhookCheckoutUpdatedPayload(\n timestamp=parse_datetime(\"2024-03-18T05:40:46.816Z\"),\n data=polar_sdk.Checkout(\n id=\"\",\n created_at=parse_datetime(\"2025-09-17T13:52:37.257Z\"),\n modified_at=parse_datetime(\"2025-11-07T08:23:01.152Z\"),\n payment_processor=polar_sdk.PaymentProcessor.STRIPE,\n status=polar_sdk.CheckoutStatus.EXPIRED,\n client_secret=\"\",\n url=\"https://male-punctuation.name\",\n expires_at=parse_datetime(\"2026-03-26T06:13:51.386Z\"),\n success_url=\"https://monumental-mathematics.info\",\n return_url=\"https://scary-valley.com/\",\n embed_origin=\"\",\n amount=867510,\n discount_amount=469340,\n net_amount=139232,\n tax_amount=373760,\n tax_behavior=None,\n total_amount=59172,\n currency=\"New Taiwan Dollar\",\n allow_trial=True,\n active_trial_interval=polar_sdk.TrialInterval.MONTH,\n active_trial_interval_count=675563,\n trial_end=parse_datetime(\"2024-11-02T00:27:36.754Z\"),\n organization_id=\"\",\n product_id=\"\",\n product_price_id=\"\",\n discount_id=\"\",\n allow_discount_codes=False,\n require_billing_address=False,\n is_discount_applicable=True,\n is_free_product_price=True,\n is_payment_required=True,\n is_payment_setup_required=False,\n is_payment_form_required=False,\n customer_id=\"\",\n is_business_customer=False,\n customer_name=\"\",\n customer_email=\"\",\n customer_ip_address=\"\",\n customer_billing_name=\"\",\n customer_billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n customer_tax_id=\"\",\n payment_method_type=\"\",\n payment_processor_metadata={\n \"key\": \"\",\n },\n billing_address_fields=polar_sdk.CheckoutBillingAddressFields(\n country=polar_sdk.BillingAddressFieldMode.REQUIRED,\n state=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n city=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n postal_code=polar_sdk.BillingAddressFieldMode.OPTIONAL,\n line1=polar_sdk.BillingAddressFieldMode.DISABLED,\n line2=polar_sdk.BillingAddressFieldMode.DISABLED,\n ),\n trial_interval=polar_sdk.TrialInterval.WEEK,\n trial_interval_count=310921,\n metadata={\n \"key\": \"\",\n },\n external_customer_id=\"\",\n products=[\n polar_sdk.CheckoutProduct(\n id=\"\",\n created_at=parse_datetime(\"2025-01-14T02:31:30.334Z\"),\n modified_at=None,\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=881833,\n name=\"\",\n description=\"needily past pause different wallaby micromanage yahoo thin instead woeful\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=297888,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=964345,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-01-20T07:54:45.660Z\"),\n modified_at=parse_datetime(\"2025-11-06T23:16:23.807Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n price_amount=894786,\n ),\n ],\n benefits=[\n polar_sdk.BenefitPublic(\n id=\"\",\n created_at=parse_datetime(\"2025-08-12T14:24:20.342Z\"),\n modified_at=parse_datetime(\"2024-07-31T03:55:09.650Z\"),\n type=polar_sdk.BenefitType.SLACK_SHARED_CHANNEL,\n description=\"beyond athwart youthful greedy eyeliner ouch faithfully kindly\",\n selectable=True,\n deletable=False,\n is_deleted=False,\n organization_id=\"\",\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/home\",\n mime_type=\"\",\n size=983809,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-04-29T02:53:02.623Z\"),\n version=\"\",\n is_uploaded=False,\n created_at=parse_datetime(\"2024-01-15T02:23:23.630Z\"),\n size_readable=\"\",\n public_url=\"https://quiet-impact.info/\",\n ),\n ],\n ),\n ],\n product=None,\n product_price=polar_sdk.LegacyRecurringProductPriceCustom(\n created_at=parse_datetime(\"2025-06-23T05:24:14.067Z\"),\n modified_at=parse_datetime(\"2024-11-13T11:44:44.642Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=False,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n minimum_amount=66,\n maximum_amount=923949,\n preset_amount=245326,\n ),\n prices=None,\n discount=polar_sdk.CheckoutDiscountFixedRepeatDuration(\n duration=polar_sdk.DiscountDuration.REPEATING,\n duration_in_months=46326,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n id=\"\",\n name=\"\",\n code=\"\",\n ),\n subscription_id=\"\",\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldDate(\n created_at=parse_datetime(\"2025-01-17T17:30:50.838Z\"),\n modified_at=parse_datetime(\"2025-08-11T10:13:55.906Z\"),\n id=\"\",\n metadata={\n\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldDateProperties(),\n ),\n order=786409,\n required=False,\n ),\n ],\n customer_metadata={\n\n },\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["customer.created"]["post"] update: "x-codeSamples": @@ -1209,6 +1209,24 @@ actions: - "lang": "python" "label": "Python (SDK)" "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointcustomer_seat_revoked_post(request={\n \"type\": \"customer_seat.revoked\",\n \"timestamp\": parse_datetime(\"2024-11-11T11:49:39.839Z\"),\n \"data\": {\n \"created_at\": parse_datetime(\"2025-08-05T10:54:13.336Z\"),\n \"modified_at\": parse_datetime(\"2024-12-01T21:24:11.844Z\"),\n \"id\": \"518899df-02c0-4220-abaf-0f2f32e97539\",\n \"subscription_id\": None,\n \"order_id\": \"99b8869b-660e-4fb9-9583-4adb0a833fd3\",\n \"status\": polar_sdk.SeatStatus.REVOKED,\n \"customer_id\": \"1e3cd09b-b395-43f8-a931-80fb59e39a9c\",\n \"member_id\": \"a48412a7-68b5-4144-9983-7afb65173beb\",\n \"member\": {\n \"id\": \"\",\n \"created_at\": parse_datetime(\"2024-08-26T22:21:14.954Z\"),\n \"modified_at\": parse_datetime(\"2025-02-08T09:01:13.408Z\"),\n \"customer_id\": \"\",\n \"email\": \"member@example.com\",\n \"name\": \"Jane Doe\",\n \"external_id\": \"usr_1337\",\n \"role\": polar_sdk.MemberRole.BILLING_MANAGER,\n },\n \"email\": \"Franz_Wintheiser@gmail.com\",\n \"customer_email\": \"\",\n \"invitation_token_expires_at\": parse_datetime(\"2024-09-11T08:28:43.798Z\"),\n \"claimed_at\": parse_datetime(\"2025-02-20T06:37:06.582Z\"),\n \"revoked_at\": parse_datetime(\"2025-10-22T07:27:15.954Z\"),\n \"seat_metadata\": {\n \"key\": \"\",\n },\n },\n })\n\n # Handle response\n print(res)" + - target: $["paths"]["discount.created"]["post"] + update: + "x-codeSamples": + - "lang": "python" + "label": "Python (SDK)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointdiscount_created_post(request=polar_sdk.WebhookDiscountCreatedPayload(\n timestamp=parse_datetime(\"2026-06-01T12:33:29.570Z\"),\n data=polar_sdk.DiscountFixedRepeatDuration(\n duration=polar_sdk.DiscountDuration.REPEATING,\n duration_in_months=179751,\n type=polar_sdk.DiscountType.PERCENTAGE,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2024-02-21T05:24:48.689Z\"),\n modified_at=parse_datetime(\"2026-09-12T01:20:52.031Z\"),\n id=\"\",\n metadata={\n \"key\": \"\",\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-02-13T09:12:55.294Z\"),\n ends_at=parse_datetime(\"2024-10-07T21:58:26.782Z\"),\n max_redemptions=79512,\n max_redemptions_per_customer=380997,\n redemptions_count=575666,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n products=[],\n ),\n ))\n\n # Handle response\n print(res)" + - target: $["paths"]["discount.deleted"]["post"] + update: + "x-codeSamples": + - "lang": "python" + "label": "Python (SDK)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointdiscount_deleted_post(request=polar_sdk.WebhookDiscountDeletedPayload(\n timestamp=parse_datetime(\"2025-02-20T22:30:40.844Z\"),\n data=polar_sdk.DiscountPercentageOnceForeverDuration(\n duration=polar_sdk.DiscountDuration.REPEATING,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2026-04-12T18:41:55.855Z\"),\n modified_at=parse_datetime(\"2025-03-02T23:37:37.703Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-03-19T00:46:24.443Z\"),\n ends_at=parse_datetime(\"2025-12-16T17:40:07.633Z\"),\n max_redemptions=620156,\n max_redemptions_per_customer=318122,\n redemptions_count=973741,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n products=[],\n ),\n ))\n\n # Handle response\n print(res)" + - target: $["paths"]["discount.updated"]["post"] + update: + "x-codeSamples": + - "lang": "python" + "label": "Python (SDK)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointdiscount_updated_post(request=polar_sdk.WebhookDiscountUpdatedPayload(\n timestamp=parse_datetime(\"2025-11-10T23:02:41.327Z\"),\n data=polar_sdk.DiscountFixedOnceForeverDuration(\n duration=polar_sdk.DiscountDuration.REPEATING,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2026-06-18T18:53:28.965Z\"),\n modified_at=parse_datetime(\"2024-09-19T20:57:06.225Z\"),\n id=\"\",\n metadata={\n \"key\": False,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2024-07-07T11:25:38.360Z\"),\n ends_at=parse_datetime(\"2025-10-12T09:13:06.811Z\"),\n max_redemptions=794318,\n max_redemptions_per_customer=831594,\n redemptions_count=241933,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n products=[],\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["member.created"]["post"] update: "x-codeSamples": @@ -1232,13 +1250,13 @@ actions: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointorder_created_post(request=polar_sdk.WebhookOrderCreatedPayload(\n timestamp=parse_datetime(\"2025-08-21T06:55:49.348Z\"),\n data=polar_sdk.Order(\n id=\"\",\n created_at=parse_datetime(\"2024-01-02T23:31:01.991Z\"),\n modified_at=parse_datetime(\"2026-11-09T23:45:36.352Z\"),\n status=polar_sdk.OrderStatus.DRAFT,\n paid=True,\n subtotal_amount=10000,\n discount_amount=1000,\n net_amount=9000,\n tax_amount=720,\n total_amount=9720,\n applied_balance_amount=0,\n due_amount=0,\n refunded_amount=0,\n refunded_tax_amount=0,\n currency=\"usd\",\n billing_reason=polar_sdk.OrderBillingReason.PURCHASE,\n billing_name=\"\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n invoice_number=\"\",\n is_invoice_generated=False,\n receipt_number=\"\",\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n subscription_id=\"\",\n checkout_id=\"\",\n metadata={\n \"key\": 9213.65,\n },\n platform_fee_amount=500,\n platform_fee_currency=\"usd\",\n customer=polar_sdk.OrderCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-07-26T23:28:05.716Z\"),\n modified_at=parse_datetime(\"2026-02-07T21:01:19.424Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-06-03T19:46:15.179Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.OrderProduct(\n metadata={\n\n },\n id=\"\",\n created_at=parse_datetime(\"2025-07-30T20:36:36.637Z\"),\n modified_at=parse_datetime(\"2024-10-17T19:16:06.791Z\"),\n trial_interval=polar_sdk.TrialInterval.DAY,\n trial_interval_count=213971,\n name=\"\",\n description=None,\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n recurring_interval_count=673056,\n meter_interval=polar_sdk.RecurringInterval.DAY,\n meter_interval_count=89700,\n is_recurring=False,\n is_archived=True,\n organization_id=\"\",\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=182844,\n type=polar_sdk.DiscountType.PERCENTAGE,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2025-12-17T13:14:08.812Z\"),\n modified_at=parse_datetime(\"2024-05-08T16:27:05.188Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-07-23T07:41:42.992Z\"),\n ends_at=parse_datetime(\"2026-06-27T05:09:32.548Z\"),\n max_redemptions=555824,\n redemptions_count=451853,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n subscription=polar_sdk.OrderSubscription(\n metadata={\n \"key\": 4151.54,\n },\n created_at=parse_datetime(\"2026-03-11T18:30:15.526Z\"),\n modified_at=parse_datetime(\"2024-01-30T13:01:14.788Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=995859,\n status=polar_sdk.SubscriptionStatus.ACTIVE,\n current_period_start=parse_datetime(\"2024-06-30T09:05:58.012Z\"),\n current_period_end=parse_datetime(\"2025-10-16T20:18:34.908Z\"),\n current_meter_period_start=parse_datetime(\"2026-03-18T15:38:59.923Z\"),\n current_meter_period_end=parse_datetime(\"2025-11-16T22:02:37.250Z\"),\n trial_start=parse_datetime(\"2025-09-10T19:42:40.294Z\"),\n trial_end=None,\n cancel_at_period_end=True,\n canceled_at=None,\n started_at=parse_datetime(\"2025-04-18T07:44:25.958Z\"),\n ends_at=parse_datetime(\"2024-01-24T21:36:11.677Z\"),\n ended_at=parse_datetime(\"2026-12-03T03:30:23.797Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2024-07-03T06:42:37.163Z\"),\n resumes_at=parse_datetime(\"2024-07-05T04:28:24.973Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.MISSING_FEATURES,\n customer_cancellation_comment=\"\",\n ),\n items=[],\n description=\"Pro Plan\",\n refundable_amount=9000,\n refundable_tax_amount=720,\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointorder_created_post(request=polar_sdk.WebhookOrderCreatedPayload(\n timestamp=parse_datetime(\"2025-08-21T06:55:49.348Z\"),\n data=polar_sdk.Order(\n id=\"\",\n created_at=parse_datetime(\"2024-01-02T23:31:01.991Z\"),\n modified_at=parse_datetime(\"2026-11-09T23:45:36.352Z\"),\n status=polar_sdk.OrderStatus.DRAFT,\n paid=True,\n subtotal_amount=10000,\n discount_amount=1000,\n net_amount=9000,\n tax_amount=720,\n total_amount=9720,\n applied_balance_amount=0,\n due_amount=0,\n refunded_amount=0,\n refunded_tax_amount=0,\n currency=\"usd\",\n billing_reason=polar_sdk.OrderBillingReason.PURCHASE,\n billing_name=\"\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n invoice_number=\"\",\n is_invoice_generated=False,\n receipt_number=\"\",\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n subscription_id=\"\",\n checkout_id=\"\",\n metadata={\n \"key\": 9213.65,\n },\n platform_fee_amount=500,\n platform_fee_currency=\"usd\",\n customer=polar_sdk.OrderCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-07-26T23:28:05.716Z\"),\n modified_at=parse_datetime(\"2026-02-07T21:01:19.424Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-06-03T19:46:15.179Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.OrderProduct(\n metadata={\n\n },\n id=\"\",\n created_at=parse_datetime(\"2025-07-30T20:36:36.637Z\"),\n modified_at=parse_datetime(\"2024-10-17T19:16:06.791Z\"),\n trial_interval=polar_sdk.TrialInterval.DAY,\n trial_interval_count=213971,\n name=\"\",\n description=None,\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n recurring_interval_count=673056,\n meter_interval=polar_sdk.RecurringInterval.DAY,\n meter_interval_count=89700,\n is_recurring=False,\n is_archived=True,\n organization_id=\"\",\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=182844,\n type=polar_sdk.DiscountType.PERCENTAGE,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2025-12-17T13:14:08.812Z\"),\n modified_at=parse_datetime(\"2024-05-08T16:27:05.188Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-07-23T07:41:42.992Z\"),\n ends_at=parse_datetime(\"2026-06-27T05:09:32.548Z\"),\n max_redemptions=555824,\n max_redemptions_per_customer=712118,\n redemptions_count=606863,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n subscription=polar_sdk.OrderSubscription(\n metadata={\n\n },\n created_at=parse_datetime(\"2026-03-11T18:30:15.526Z\"),\n modified_at=parse_datetime(\"2024-01-30T13:01:14.788Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=995859,\n status=polar_sdk.SubscriptionStatus.ACTIVE,\n current_period_start=parse_datetime(\"2024-06-30T09:05:58.012Z\"),\n current_period_end=parse_datetime(\"2025-10-16T20:18:34.908Z\"),\n current_meter_period_start=parse_datetime(\"2026-03-18T15:38:59.923Z\"),\n current_meter_period_end=parse_datetime(\"2025-11-16T22:02:37.250Z\"),\n trial_start=parse_datetime(\"2025-09-10T19:42:40.294Z\"),\n trial_end=None,\n cancel_at_period_end=True,\n canceled_at=None,\n started_at=parse_datetime(\"2025-04-18T07:44:25.958Z\"),\n ends_at=parse_datetime(\"2024-01-24T21:36:11.677Z\"),\n ended_at=parse_datetime(\"2026-12-03T03:30:23.797Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2024-07-03T06:42:37.163Z\"),\n resumes_at=parse_datetime(\"2024-07-05T04:28:24.973Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.MISSING_FEATURES,\n customer_cancellation_comment=\"\",\n ),\n items=[],\n description=\"Pro Plan\",\n refundable_amount=9000,\n refundable_tax_amount=720,\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["order.paid"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointorder_paid_post(request=polar_sdk.WebhookOrderPaidPayload(\n timestamp=parse_datetime(\"2026-12-05T07:44:21.172Z\"),\n data=polar_sdk.Order(\n id=\"\",\n created_at=parse_datetime(\"2026-07-27T09:45:49.517Z\"),\n modified_at=parse_datetime(\"2025-12-13T20:55:19.644Z\"),\n status=polar_sdk.OrderStatus.PARTIALLY_REFUNDED,\n paid=True,\n subtotal_amount=10000,\n discount_amount=1000,\n net_amount=9000,\n tax_amount=720,\n total_amount=9720,\n applied_balance_amount=0,\n due_amount=0,\n refunded_amount=0,\n refunded_tax_amount=0,\n currency=\"usd\",\n billing_reason=polar_sdk.OrderBillingReason.SUBSCRIPTION_UPDATE,\n billing_name=\"\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n invoice_number=\"\",\n is_invoice_generated=False,\n receipt_number=\"\",\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n subscription_id=\"\",\n checkout_id=\"\",\n metadata={\n\n },\n platform_fee_amount=500,\n platform_fee_currency=\"usd\",\n customer=polar_sdk.OrderCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-07-24T12:09:26.716Z\"),\n modified_at=parse_datetime(\"2024-04-03T05:45:29.640Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-06-20T08:16:19.561Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.OrderProduct(\n metadata={\n \"key\": False,\n },\n id=\"\",\n created_at=parse_datetime(\"2024-12-19T02:23:05.399Z\"),\n modified_at=parse_datetime(\"2024-05-17T09:50:39.456Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=928538,\n name=\"\",\n description=\"peony um portray since frank rudely mask\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=None,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=656197,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n ),\n discount=polar_sdk.DiscountPercentageRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=458129,\n type=polar_sdk.DiscountType.FIXED,\n basis_points=1000,\n created_at=parse_datetime(\"2025-03-15T11:30:08.729Z\"),\n modified_at=parse_datetime(\"2024-10-21T13:20:11.560Z\"),\n id=\"\",\n metadata={\n \"key\": 568756,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-05-25T21:22:06.978Z\"),\n ends_at=parse_datetime(\"2024-11-14T15:18:02.031Z\"),\n max_redemptions=568256,\n redemptions_count=727805,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n subscription=polar_sdk.OrderSubscription(\n metadata={\n \"key\": \"\",\n },\n created_at=parse_datetime(\"2026-07-17T03:39:23.964Z\"),\n modified_at=parse_datetime(\"2026-10-30T20:20:46.051Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=525157,\n status=polar_sdk.SubscriptionStatus.CANCELED,\n current_period_start=parse_datetime(\"2026-06-10T20:57:22.896Z\"),\n current_period_end=parse_datetime(\"2024-02-24T15:15:22.018Z\"),\n current_meter_period_start=parse_datetime(\"2024-12-06T15:09:08.144Z\"),\n current_meter_period_end=parse_datetime(\"2024-11-19T10:20:23.628Z\"),\n trial_start=parse_datetime(\"2026-08-05T06:11:40.745Z\"),\n trial_end=parse_datetime(\"2024-12-04T06:32:48.307Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-12-01T06:46:04.196Z\"),\n started_at=parse_datetime(\"2025-06-19T05:54:14.128Z\"),\n ends_at=parse_datetime(\"2026-08-28T12:32:52.795Z\"),\n ended_at=parse_datetime(\"2024-06-23T12:14:21.209Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2026-08-27T04:13:10.004Z\"),\n resumes_at=None,\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_EXPENSIVE,\n customer_cancellation_comment=\"\",\n ),\n items=[\n polar_sdk.OrderItemSchema(\n created_at=parse_datetime(\"2025-12-13T18:37:59.897Z\"),\n modified_at=parse_datetime(\"2025-07-19T20:12:40.543Z\"),\n id=\"\",\n label=\"Pro Plan\",\n amount=10000,\n tax_amount=720,\n proration=False,\n product_price_id=None,\n ),\n ],\n description=\"Pro Plan\",\n refundable_amount=9000,\n refundable_tax_amount=720,\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointorder_paid_post(request=polar_sdk.WebhookOrderPaidPayload(\n timestamp=parse_datetime(\"2026-12-05T07:44:21.172Z\"),\n data=polar_sdk.Order(\n id=\"\",\n created_at=parse_datetime(\"2026-07-27T09:45:49.517Z\"),\n modified_at=parse_datetime(\"2025-12-13T20:55:19.644Z\"),\n status=polar_sdk.OrderStatus.PARTIALLY_REFUNDED,\n paid=True,\n subtotal_amount=10000,\n discount_amount=1000,\n net_amount=9000,\n tax_amount=720,\n total_amount=9720,\n applied_balance_amount=0,\n due_amount=0,\n refunded_amount=0,\n refunded_tax_amount=0,\n currency=\"usd\",\n billing_reason=polar_sdk.OrderBillingReason.SUBSCRIPTION_UPDATE,\n billing_name=\"\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n invoice_number=\"\",\n is_invoice_generated=False,\n receipt_number=\"\",\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n subscription_id=\"\",\n checkout_id=\"\",\n metadata={\n\n },\n platform_fee_amount=500,\n platform_fee_currency=\"usd\",\n customer=polar_sdk.OrderCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-07-24T12:09:26.716Z\"),\n modified_at=parse_datetime(\"2024-04-03T05:45:29.640Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-06-20T08:16:19.561Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.OrderProduct(\n metadata={\n \"key\": False,\n },\n id=\"\",\n created_at=parse_datetime(\"2024-12-19T02:23:05.399Z\"),\n modified_at=parse_datetime(\"2024-05-17T09:50:39.456Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=928538,\n name=\"\",\n description=\"peony um portray since frank rudely mask\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=None,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=656197,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n ),\n discount=polar_sdk.DiscountPercentageRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=458129,\n type=polar_sdk.DiscountType.FIXED,\n basis_points=1000,\n created_at=parse_datetime(\"2025-03-15T11:30:08.729Z\"),\n modified_at=parse_datetime(\"2024-10-21T13:20:11.560Z\"),\n id=\"\",\n metadata={\n \"key\": 568756,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-05-25T21:22:06.978Z\"),\n ends_at=parse_datetime(\"2024-11-14T15:18:02.031Z\"),\n max_redemptions=568256,\n max_redemptions_per_customer=584469,\n redemptions_count=564172,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n subscription=polar_sdk.OrderSubscription(\n metadata={\n \"key\": \"\",\n },\n created_at=parse_datetime(\"2026-10-30T20:20:46.051Z\"),\n modified_at=parse_datetime(\"2025-07-29T13:43:57.010Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=813753,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE,\n current_period_start=parse_datetime(\"2025-07-01T09:21:22.170Z\"),\n current_period_end=parse_datetime(\"2024-12-06T15:09:08.144Z\"),\n current_meter_period_start=parse_datetime(\"2024-11-19T10:20:23.628Z\"),\n current_meter_period_end=parse_datetime(\"2026-08-05T06:11:40.745Z\"),\n trial_start=parse_datetime(\"2024-12-04T06:32:48.307Z\"),\n trial_end=None,\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2024-08-07T23:25:37.197Z\"),\n started_at=parse_datetime(\"2025-10-04T00:59:57.339Z\"),\n ends_at=parse_datetime(\"2026-02-01T22:39:43.609Z\"),\n ended_at=parse_datetime(\"2024-08-03T10:17:52.706Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2024-04-11T12:15:43.431Z\"),\n resumes_at=parse_datetime(\"2025-06-22T19:17:00.470Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_COMPLEX,\n customer_cancellation_comment=\"\",\n ),\n items=[\n polar_sdk.OrderItemSchema(\n created_at=parse_datetime(\"2025-07-19T20:12:40.543Z\"),\n modified_at=None,\n id=\"\",\n label=\"Pro Plan\",\n amount=10000,\n tax_amount=720,\n proration=False,\n product_price_id=\"\",\n ),\n ],\n description=\"Pro Plan\",\n refundable_amount=9000,\n refundable_tax_amount=720,\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["order.refunded"]["post"] update: "x-codeSamples": @@ -1256,7 +1274,7 @@ actions: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointorganization_updated_post(request={\n \"type\": \"organization.updated\",\n \"timestamp\": parse_datetime(\"2026-08-19T15:02:44.139Z\"),\n \"data\": {\n \"created_at\": parse_datetime(\"2026-05-07T21:24:48.059Z\"),\n \"modified_at\": parse_datetime(\"2024-04-15T23:18:12.986Z\"),\n \"id\": \"\",\n \"name\": \"\",\n \"slug\": \"\",\n \"avatar_url\": \"https://pessimistic-going.name/\",\n \"proration_behavior\": polar_sdk.SubscriptionProrationBehavior.NEXT_PERIOD,\n \"allow_customer_updates\": True,\n \"email\": \"Marianne.Haag@yahoo.com\",\n \"website\": None,\n \"socials\": [],\n \"status\": polar_sdk.OrganizationStatus.DENIED,\n \"details_submitted_at\": parse_datetime(\"2025-06-29T16:05:16.127Z\"),\n \"sso_enforced\": False,\n \"default_presentment_currency\": \"\",\n \"default_tax_behavior\": polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n \"feature_settings\": {},\n \"subscription_settings\": {\n \"allow_multiple_subscriptions\": True,\n \"proration_behavior\": polar_sdk.PublicSubscriptionProrationBehavior.NEXT_PERIOD,\n \"benefit_revocation_grace_period\": 570350,\n \"prevent_trial_abuse\": True,\n \"allow_customer_updates\": False,\n },\n \"customer_email_settings\": {\n \"order_confirmation\": True,\n \"subscription_cancellation\": True,\n \"subscription_confirmation\": True,\n \"subscription_cycled\": False,\n \"subscription_cycled_after_trial\": True,\n \"subscription_past_due\": False,\n \"subscription_paused\": False,\n \"subscription_resumed\": True,\n \"subscription_renewal_reminder\": True,\n \"subscription_revoked\": True,\n \"subscription_trial_conversion_reminder\": False,\n \"subscription_uncanceled\": True,\n \"subscription_updated\": False,\n },\n \"customer_portal_settings\": {\n \"usage\": {\n \"show\": False,\n },\n \"subscription\": {\n \"update_seats\": False,\n \"update_plan\": False,\n },\n },\n \"account_id\": \"\",\n \"payout_account_id\": \"\",\n \"capabilities\": {\n \"checkout_payments\": False,\n \"subscription_renewals\": False,\n \"payouts\": True,\n \"refunds\": True,\n \"api_access\": False,\n \"dashboard_access\": False,\n },\n },\n })\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointorganization_updated_post(request={\n \"type\": \"organization.updated\",\n \"timestamp\": parse_datetime(\"2026-08-19T15:02:44.139Z\"),\n \"data\": {\n \"created_at\": parse_datetime(\"2026-05-07T21:24:48.059Z\"),\n \"modified_at\": parse_datetime(\"2024-04-15T23:18:12.986Z\"),\n \"id\": \"\",\n \"name\": \"\",\n \"slug\": \"\",\n \"avatar_url\": \"https://pessimistic-going.name/\",\n \"proration_behavior\": polar_sdk.SubscriptionProrationBehavior.NEXT_PERIOD,\n \"allow_customer_updates\": True,\n \"email\": \"Marianne.Haag@yahoo.com\",\n \"website\": None,\n \"socials\": [],\n \"status\": polar_sdk.OrganizationStatus.DENIED,\n \"details_submitted_at\": parse_datetime(\"2025-06-29T16:05:16.127Z\"),\n \"onboarding_resubmission_requested_at\": parse_datetime(\"2026-07-31T23:59:09.844Z\"),\n \"sso_enforced\": True,\n \"default_presentment_currency\": \"\",\n \"default_tax_behavior\": polar_sdk.TaxBehaviorOption.INCLUSIVE,\n \"feature_settings\": {},\n \"subscription_settings\": {\n \"allow_multiple_subscriptions\": False,\n \"proration_behavior\": polar_sdk.PublicSubscriptionProrationBehavior.INVOICE,\n \"benefit_revocation_grace_period\": 904929,\n \"prevent_trial_abuse\": True,\n \"allow_customer_updates\": True,\n },\n \"customer_email_settings\": {\n \"order_confirmation\": True,\n \"payment_method_expiration_reminder\": False,\n \"subscription_cancellation\": True,\n \"subscription_confirmation\": False,\n \"subscription_cycled\": False,\n \"subscription_cycled_after_trial\": True,\n \"subscription_past_due\": True,\n \"subscription_paused\": True,\n \"subscription_resumed\": False,\n \"subscription_renewal_reminder\": True,\n \"subscription_revoked\": False,\n \"subscription_trial_conversion_reminder\": False,\n \"subscription_uncanceled\": False,\n \"subscription_updated\": False,\n },\n \"customer_portal_settings\": {\n \"usage\": {\n \"show\": False,\n },\n \"subscription\": {\n \"update_seats\": True,\n \"update_plan\": False,\n },\n },\n \"embed_hosts\": [\n \"\",\n \"\",\n ],\n \"embed_hosts_enforced\": True,\n \"account_id\": \"\",\n \"payout_account_id\": \"\",\n \"capabilities\": {\n \"checkout_payments\": False,\n \"subscription_renewals\": True,\n \"payouts\": True,\n \"refunds\": False,\n \"api_access\": True,\n \"dashboard_access\": False,\n },\n },\n })\n\n # Handle response\n print(res)" - target: $["paths"]["product.created"]["post"] update: "x-codeSamples": @@ -1286,52 +1304,58 @@ actions: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_active_post(request=polar_sdk.WebhookSubscriptionActivePayload(\n timestamp=parse_datetime(\"2024-08-12T01:28:21.362Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-10-11T10:17:29.274Z\"),\n modified_at=parse_datetime(\"2024-12-17T04:45:55.702Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=291908,\n status=polar_sdk.SubscriptionStatus.PAST_DUE,\n current_period_start=parse_datetime(\"2024-06-08T14:14:48.363Z\"),\n current_period_end=parse_datetime(\"2024-04-08T09:06:19.384Z\"),\n current_meter_period_start=None,\n current_meter_period_end=None,\n trial_start=parse_datetime(\"2024-07-20T07:29:31.409Z\"),\n trial_end=parse_datetime(\"2026-08-05T11:38:46.213Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2025-02-01T06:13:13.441Z\"),\n started_at=parse_datetime(\"2024-10-09T03:15:20.759Z\"),\n ends_at=parse_datetime(\"2026-02-28T12:08:18.728Z\"),\n ended_at=parse_datetime(\"2026-04-15T00:36:48.299Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2025-06-08T14:08:08.580Z\"),\n resumes_at=parse_datetime(\"2026-02-14T12:59:50.680Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.UNUSED,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-11-05T10:18:40.300Z\"),\n modified_at=parse_datetime(\"2025-04-23T18:24:43.408Z\"),\n metadata={\n \"key\": True,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-01-13T18:15:36.489Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-04-02T10:07:04.953Z\"),\n modified_at=parse_datetime(\"2026-05-20T13:56:09.625Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=149396,\n name=\"\",\n description=\"wound oh nor boohoo reasoning\",\n visibility=polar_sdk.ProductVisibility.DRAFT,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=598073,\n meter_interval=polar_sdk.RecurringInterval.DAY,\n meter_interval_count=154892,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-04-05T11:10:16.533Z\"),\n modified_at=parse_datetime(\"2024-02-12T06:44:11.052Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n price_amount=977457,\n ),\n ],\n benefits=[\n polar_sdk.BenefitMeterCredit(\n id=\"\",\n created_at=parse_datetime(\"2024-04-08T22:54:26.700Z\"),\n modified_at=parse_datetime(\"2025-06-29T09:49:00.267Z\"),\n description=\"minus fellow hollow\",\n selectable=True,\n deletable=False,\n is_deleted=True,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.PRIVATE,\n properties=polar_sdk.BenefitMeterCreditProperties(\n units=737276,\n rollover=False,\n meter_id=\"\",\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/media\",\n mime_type=\"\",\n size=18256,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-04-08T15:13:09.162Z\"),\n version=\"\",\n is_uploaded=True,\n created_at=parse_datetime(\"2025-05-01T10:38:41.675Z\"),\n size_readable=\"\",\n public_url=\"https://favorable-lava.com\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=204827,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2024-06-22T00:23:01.418Z\"),\n modified_at=parse_datetime(\"2024-08-21T07:22:13.326Z\"),\n id=\"\",\n metadata={\n \"key\": 268701,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2024-04-03T00:27:09.188Z\"),\n ends_at=parse_datetime(\"2025-08-25T11:20:18.677Z\"),\n max_redemptions=606883,\n redemptions_count=64507,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.LegacyRecurringProductPriceCustom(\n created_at=parse_datetime(\"2025-03-30T14:50:52.711Z\"),\n modified_at=parse_datetime(\"2025-06-25T05:59:30.258Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n minimum_amount=182982,\n maximum_amount=None,\n preset_amount=None,\n ),\n ],\n meters=[\n polar_sdk.SubscriptionMeter(\n created_at=parse_datetime(\"2026-06-02T11:45:12.241Z\"),\n modified_at=parse_datetime(\"2024-12-29T12:42:54.036Z\"),\n id=\"\",\n consumed_units=25,\n credited_units=100,\n amount=0,\n meter_id=\"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter=polar_sdk.Meter(\n metadata={\n\n },\n created_at=parse_datetime(\"2024-01-12T21:54:59.363Z\"),\n modified_at=parse_datetime(\"2024-07-01T19:38:57.728Z\"),\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.CUSTOM,\n filter_=polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.AND,\n clauses=[\n polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.OR,\n clauses=[],\n ),\n ],\n ),\n aggregation=polar_sdk.CountAggregation(),\n organization_id=\"\",\n ),\n ),\n ],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2024-04-22T11:22:11.540Z\"),\n modified_at=parse_datetime(\"2026-04-18T12:27:56.626Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2026-09-01T03:11:19.881Z\"),\n product_id=\"\",\n seats=113975,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_active_post(request=polar_sdk.WebhookSubscriptionActivePayload(\n timestamp=parse_datetime(\"2024-08-12T01:28:21.362Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-10-11T10:17:29.274Z\"),\n modified_at=parse_datetime(\"2024-12-17T04:45:55.702Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=291908,\n status=polar_sdk.SubscriptionStatus.PAST_DUE,\n current_period_start=parse_datetime(\"2024-06-08T14:14:48.363Z\"),\n current_period_end=parse_datetime(\"2024-04-08T09:06:19.384Z\"),\n current_meter_period_start=None,\n current_meter_period_end=None,\n trial_start=parse_datetime(\"2024-07-20T07:29:31.409Z\"),\n trial_end=parse_datetime(\"2026-08-05T11:38:46.213Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2025-02-01T06:13:13.441Z\"),\n started_at=parse_datetime(\"2024-10-09T03:15:20.759Z\"),\n ends_at=parse_datetime(\"2026-02-28T12:08:18.728Z\"),\n ended_at=parse_datetime(\"2026-04-15T00:36:48.299Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2025-06-08T14:08:08.580Z\"),\n resumes_at=parse_datetime(\"2026-02-14T12:59:50.680Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.UNUSED,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-11-05T10:18:40.300Z\"),\n modified_at=parse_datetime(\"2025-04-23T18:24:43.408Z\"),\n metadata={\n \"key\": True,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-01-13T18:15:36.489Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-04-02T10:07:04.953Z\"),\n modified_at=parse_datetime(\"2026-05-20T13:56:09.625Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=149396,\n name=\"\",\n description=\"wound oh nor boohoo reasoning\",\n visibility=polar_sdk.ProductVisibility.DRAFT,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=598073,\n meter_interval=polar_sdk.RecurringInterval.DAY,\n meter_interval_count=154892,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-04-05T11:10:16.533Z\"),\n modified_at=parse_datetime(\"2024-02-12T06:44:11.052Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n price_amount=977457,\n ),\n ],\n benefits=[\n polar_sdk.BenefitMeterCredit(\n id=\"\",\n created_at=parse_datetime(\"2024-04-08T22:54:26.700Z\"),\n modified_at=parse_datetime(\"2025-06-29T09:49:00.267Z\"),\n description=\"minus fellow hollow\",\n selectable=True,\n deletable=False,\n is_deleted=True,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.PRIVATE,\n properties=polar_sdk.BenefitMeterCreditProperties(\n units=737276,\n rollover=False,\n meter_id=\"\",\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/media\",\n mime_type=\"\",\n size=18256,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-04-08T15:13:09.162Z\"),\n version=\"\",\n is_uploaded=True,\n created_at=parse_datetime(\"2025-05-01T10:38:41.675Z\"),\n size_readable=\"\",\n public_url=\"https://favorable-lava.com\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=204827,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2024-06-22T00:23:01.418Z\"),\n modified_at=parse_datetime(\"2024-08-21T07:22:13.326Z\"),\n id=\"\",\n metadata={\n \"key\": 268701,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2024-04-03T00:27:09.188Z\"),\n ends_at=parse_datetime(\"2025-08-25T11:20:18.677Z\"),\n max_redemptions=606883,\n max_redemptions_per_customer=None,\n redemptions_count=924162,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2024-06-27T06:04:39.839Z\"),\n modified_at=parse_datetime(\"2024-12-24T10:52:08.287Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2025-07-14T03:35:24.418Z\"),\n product_id=\"\",\n seats=94337,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.canceled"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_canceled_post(request=polar_sdk.WebhookSubscriptionCanceledPayload(\n timestamp=parse_datetime(\"2026-02-09T04:39:02.332Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2026-04-09T17:46:08.645Z\"),\n modified_at=None,\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=867179,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE_EXPIRED,\n current_period_start=parse_datetime(\"2025-08-12T22:41:41.907Z\"),\n current_period_end=parse_datetime(\"2024-06-16T04:15:56.819Z\"),\n current_meter_period_start=parse_datetime(\"2024-06-01T15:48:16.857Z\"),\n current_meter_period_end=parse_datetime(\"2026-07-17T03:56:59.092Z\"),\n trial_start=parse_datetime(\"2026-04-18T11:08:34.147Z\"),\n trial_end=parse_datetime(\"2024-05-04T03:28:24.281Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-07-20T16:25:14.433Z\"),\n started_at=None,\n ends_at=None,\n ended_at=None,\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2024-10-24T05:52:42.846Z\"),\n resumes_at=parse_datetime(\"2024-09-19T10:20:50.540Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.UNUSED,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-06-11T17:21:10.206Z\"),\n modified_at=parse_datetime(\"2026-03-18T13:26:34.470Z\"),\n metadata={\n \"key\": \"\",\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=None,\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-10-05T22:54:19.422Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2026-02-18T17:38:00.369Z\"),\n modified_at=None,\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=322742,\n name=\"\",\n description=\"whoever happily provision pfft outrun surface creature colossal yippee broadcast\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=934764,\n meter_interval=polar_sdk.RecurringInterval.YEAR,\n meter_interval_count=40978,\n is_recurring=False,\n is_archived=True,\n organization_id=\"\",\n metadata={\n \"key\": 145279,\n },\n prices=[],\n benefits=[],\n medias=[],\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldNumber(\n created_at=parse_datetime(\"2024-06-20T14:17:32.355Z\"),\n modified_at=parse_datetime(\"2024-07-17T18:13:58.713Z\"),\n id=\"\",\n metadata={\n \"key\": 9798.06,\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldNumberProperties(),\n ),\n order=637284,\n required=True,\n ),\n ],\n ),\n discount=polar_sdk.DiscountPercentageRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.ONCE,\n duration_in_months=168798,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2025-01-23T04:52:40.375Z\"),\n modified_at=parse_datetime(\"2025-10-30T06:29:08.081Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=None,\n ends_at=parse_datetime(\"2026-12-18T22:12:17.302Z\"),\n max_redemptions=591614,\n redemptions_count=574780,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[],\n pending_update=None,\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_canceled_post(request=polar_sdk.WebhookSubscriptionCanceledPayload(\n timestamp=parse_datetime(\"2026-02-09T04:39:02.332Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2026-04-09T17:46:08.645Z\"),\n modified_at=None,\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=867179,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE_EXPIRED,\n current_period_start=parse_datetime(\"2025-08-12T22:41:41.907Z\"),\n current_period_end=parse_datetime(\"2024-06-16T04:15:56.819Z\"),\n current_meter_period_start=parse_datetime(\"2024-06-01T15:48:16.857Z\"),\n current_meter_period_end=parse_datetime(\"2026-07-17T03:56:59.092Z\"),\n trial_start=parse_datetime(\"2026-04-18T11:08:34.147Z\"),\n trial_end=parse_datetime(\"2024-05-04T03:28:24.281Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-07-20T16:25:14.433Z\"),\n started_at=None,\n ends_at=None,\n ended_at=None,\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2024-10-24T05:52:42.846Z\"),\n resumes_at=parse_datetime(\"2024-09-19T10:20:50.540Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.UNUSED,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-06-11T17:21:10.206Z\"),\n modified_at=parse_datetime(\"2026-03-18T13:26:34.470Z\"),\n metadata={\n \"key\": \"\",\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=None,\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-10-05T22:54:19.422Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2026-02-18T17:38:00.369Z\"),\n modified_at=None,\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=322742,\n name=\"\",\n description=\"whoever happily provision pfft outrun surface creature colossal yippee broadcast\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=934764,\n meter_interval=polar_sdk.RecurringInterval.YEAR,\n meter_interval_count=40978,\n is_recurring=False,\n is_archived=True,\n organization_id=\"\",\n metadata={\n \"key\": 145279,\n },\n prices=[],\n benefits=[],\n medias=[],\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldNumber(\n created_at=parse_datetime(\"2024-06-20T14:17:32.355Z\"),\n modified_at=parse_datetime(\"2024-07-17T18:13:58.713Z\"),\n id=\"\",\n metadata={\n \"key\": 9798.06,\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldNumberProperties(),\n ),\n order=637284,\n required=True,\n ),\n ],\n ),\n discount=polar_sdk.DiscountPercentageRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.ONCE,\n duration_in_months=168798,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2025-01-23T04:52:40.375Z\"),\n modified_at=parse_datetime(\"2025-10-30T06:29:08.081Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=None,\n ends_at=parse_datetime(\"2026-12-18T22:12:17.302Z\"),\n max_redemptions=591614,\n max_redemptions_per_customer=323538,\n redemptions_count=482063,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[\n polar_sdk.SubscriptionMeter(\n created_at=parse_datetime(\"2024-04-22T23:15:25.201Z\"),\n modified_at=parse_datetime(\"2025-04-01T14:20:55.697Z\"),\n id=\"\",\n consumed_units=25,\n credited_units=100,\n amount=0,\n meter_id=\"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter=polar_sdk.Meter(\n metadata={\n \"key\": \"\",\n },\n created_at=parse_datetime(\"2024-10-17T06:40:00.977Z\"),\n modified_at=parse_datetime(\"2026-08-16T08:49:55.623Z\"),\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n filter_=polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.AND,\n clauses=[],\n ),\n aggregation=polar_sdk.UniqueAggregation(\n property=\"\",\n ),\n organization_id=\"\",\n ),\n ),\n ],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2024-09-09T17:28:48.582Z\"),\n modified_at=parse_datetime(\"2024-03-04T07:09:33.031Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2026-02-17T09:43:35.947Z\"),\n product_id=None,\n seats=449061,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.created"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_created_post(request=polar_sdk.WebhookSubscriptionCreatedPayload(\n timestamp=parse_datetime(\"2025-05-03T11:46:21.459Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-12-02T10:52:23.880Z\"),\n modified_at=parse_datetime(\"2025-05-29T05:21:44.072Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=990795,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE,\n current_period_start=parse_datetime(\"2025-01-06T06:33:36.381Z\"),\n current_period_end=parse_datetime(\"2025-02-02T21:22:53.116Z\"),\n current_meter_period_start=parse_datetime(\"2024-10-19T18:48:25.568Z\"),\n current_meter_period_end=parse_datetime(\"2024-09-09T18:39:16.136Z\"),\n trial_start=parse_datetime(\"2026-08-30T21:29:16.432Z\"),\n trial_end=parse_datetime(\"2025-06-27T22:01:23.333Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-03-14T19:14:53.866Z\"),\n started_at=parse_datetime(\"2025-04-01T08:29:51.925Z\"),\n ends_at=parse_datetime(\"2026-03-08T09:50:30.968Z\"),\n ended_at=parse_datetime(\"2026-04-17T21:09:13.571Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2025-09-10T08:59:46.091Z\"),\n resumes_at=parse_datetime(\"2025-07-06T00:27:46.272Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.OTHER,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": \"\",\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-05-25T09:51:02.679Z\"),\n modified_at=parse_datetime(\"2026-12-23T23:39:23.705Z\"),\n metadata={\n \"key\": True,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2024-03-20T19:49:24.750Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-08-05T20:29:17.317Z\"),\n modified_at=parse_datetime(\"2026-07-24T03:08:01.085Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=41100,\n name=\"\",\n description=\"cemetery hydrocarbon a fledgling knit shirk appertain\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=751680,\n meter_interval=polar_sdk.RecurringInterval.MONTH,\n meter_interval_count=149871,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-04-27T20:47:28.086Z\"),\n modified_at=parse_datetime(\"2024-06-06T17:00:51.370Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=False,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n price_amount=839880,\n ),\n ],\n benefits=[\n polar_sdk.BenefitMeterCredit(\n id=\"\",\n created_at=parse_datetime(\"2026-08-26T08:46:11.221Z\"),\n modified_at=parse_datetime(\"2025-03-03T14:17:25.891Z\"),\n description=\"basic reassuringly even blah between qua proud divert pulse\",\n selectable=False,\n deletable=False,\n is_deleted=False,\n organization_id=\"\",\n metadata={\n \"key\": True,\n },\n visibility=polar_sdk.BenefitVisibility.DRAFT,\n properties=polar_sdk.BenefitMeterCreditProperties(\n units=719151,\n rollover=False,\n meter_id=\"\",\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/var/spool\",\n mime_type=\"\",\n size=844007,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=None,\n version=\"\",\n is_uploaded=True,\n created_at=parse_datetime(\"2026-01-19T13:50:05.319Z\"),\n size_readable=\"\",\n public_url=\"https://insecure-reorganisation.info\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2024-11-04T12:34:14.601Z\"),\n modified_at=parse_datetime(\"2025-09-17T01:44:56.143Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2024-08-16T12:34:58.120Z\"),\n ends_at=parse_datetime(\"2024-03-17T04:09:23.349Z\"),\n max_redemptions=34043,\n redemptions_count=908029,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceSeatBased(\n created_at=parse_datetime(\"2026-05-17T01:58:02.155Z\"),\n modified_at=parse_datetime(\"2025-09-29T09:35:40.427Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=False,\n product_id=\"\",\n seat_tiers=polar_sdk.ProductPriceSeatTiersOutput(\n tiers=[],\n minimum_seats=535004,\n maximum_seats=725538,\n ),\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-07-21T08:23:35.547Z\"),\n modified_at=None,\n id=\"\",\n applies_at=parse_datetime(\"2025-08-10T23:45:43.450Z\"),\n product_id=\"\",\n seats=607419,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_created_post(request=polar_sdk.WebhookSubscriptionCreatedPayload(\n timestamp=parse_datetime(\"2025-05-03T11:46:21.459Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-12-02T10:52:23.880Z\"),\n modified_at=parse_datetime(\"2025-05-29T05:21:44.072Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=990795,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE,\n current_period_start=parse_datetime(\"2025-01-06T06:33:36.381Z\"),\n current_period_end=parse_datetime(\"2025-02-02T21:22:53.116Z\"),\n current_meter_period_start=parse_datetime(\"2024-10-19T18:48:25.568Z\"),\n current_meter_period_end=parse_datetime(\"2024-09-09T18:39:16.136Z\"),\n trial_start=parse_datetime(\"2026-08-30T21:29:16.432Z\"),\n trial_end=parse_datetime(\"2025-06-27T22:01:23.333Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-03-14T19:14:53.866Z\"),\n started_at=parse_datetime(\"2025-04-01T08:29:51.925Z\"),\n ends_at=parse_datetime(\"2026-03-08T09:50:30.968Z\"),\n ended_at=parse_datetime(\"2026-04-17T21:09:13.571Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2025-09-10T08:59:46.091Z\"),\n resumes_at=parse_datetime(\"2025-07-06T00:27:46.272Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.OTHER,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": \"\",\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-05-25T09:51:02.679Z\"),\n modified_at=parse_datetime(\"2026-12-23T23:39:23.705Z\"),\n metadata={\n \"key\": True,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2024-03-20T19:49:24.750Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-08-05T20:29:17.317Z\"),\n modified_at=parse_datetime(\"2026-07-24T03:08:01.085Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=41100,\n name=\"\",\n description=\"cemetery hydrocarbon a fledgling knit shirk appertain\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=751680,\n meter_interval=polar_sdk.RecurringInterval.MONTH,\n meter_interval_count=149871,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-04-27T20:47:28.086Z\"),\n modified_at=parse_datetime(\"2024-06-06T17:00:51.370Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=False,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n price_amount=839880,\n ),\n ],\n benefits=[\n polar_sdk.BenefitMeterCredit(\n id=\"\",\n created_at=parse_datetime(\"2026-08-26T08:46:11.221Z\"),\n modified_at=parse_datetime(\"2025-03-03T14:17:25.891Z\"),\n description=\"basic reassuringly even blah between qua proud divert pulse\",\n selectable=False,\n deletable=False,\n is_deleted=False,\n organization_id=\"\",\n metadata={\n \"key\": True,\n },\n visibility=polar_sdk.BenefitVisibility.DRAFT,\n properties=polar_sdk.BenefitMeterCreditProperties(\n units=719151,\n rollover=False,\n meter_id=\"\",\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/var/spool\",\n mime_type=\"\",\n size=844007,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=None,\n version=\"\",\n is_uploaded=True,\n created_at=parse_datetime(\"2026-01-19T13:50:05.319Z\"),\n size_readable=\"\",\n public_url=\"https://insecure-reorganisation.info\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2024-11-04T12:34:14.601Z\"),\n modified_at=parse_datetime(\"2025-09-17T01:44:56.143Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2024-08-16T12:34:58.120Z\"),\n ends_at=parse_datetime(\"2024-03-17T04:09:23.349Z\"),\n max_redemptions=34043,\n max_redemptions_per_customer=655819,\n redemptions_count=767501,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceMeteredUnit(\n created_at=parse_datetime(\"2025-09-29T09:35:40.427Z\"),\n modified_at=parse_datetime(\"2025-05-07T11:41:11.606Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=False,\n product_id=\"\",\n unit_amount=\"\",\n cap_amount=725538,\n meter_id=\"\",\n meter=polar_sdk.ProductPriceMeter(\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n custom_label=\"\",\n custom_multiplier=87918,\n ),\n ),\n ],\n meters=[\n polar_sdk.SubscriptionMeter(\n created_at=parse_datetime(\"2026-07-31T14:30:18.083Z\"),\n modified_at=parse_datetime(\"2025-10-27T17:32:01.750Z\"),\n id=\"\",\n consumed_units=25,\n credited_units=100,\n amount=0,\n meter_id=\"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter=polar_sdk.Meter(\n metadata={\n\n },\n created_at=parse_datetime(\"2025-11-29T22:19:03.538Z\"),\n modified_at=parse_datetime(\"2026-11-11T18:40:04.358Z\"),\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.TOKEN,\n filter_=polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.OR,\n clauses=[\n polar_sdk.FilterClause(\n property=\"\",\n operator=polar_sdk.FilterOperator.GT,\n value=False,\n ),\n ],\n ),\n aggregation=polar_sdk.UniqueAggregation(\n property=\"\",\n ),\n organization_id=\"\",\n ),\n ),\n ],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-12-31T16:17:19.460Z\"),\n modified_at=parse_datetime(\"2024-06-02T04:36:05.572Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2025-12-09T19:18:29.527Z\"),\n product_id=None,\n seats=791002,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + - target: $["paths"]["subscription.cycled"]["post"] + update: + "x-codeSamples": + - "lang": "python" + "label": "Python (SDK)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_cycled_post(request=polar_sdk.WebhookSubscriptionCycledPayload(\n timestamp=parse_datetime(\"2024-08-26T09:51:17.561Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-11-19T00:31:08.557Z\"),\n modified_at=parse_datetime(\"2024-07-18T16:03:27.425Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=542449,\n status=polar_sdk.SubscriptionStatus.TRIALING,\n current_period_start=parse_datetime(\"2024-11-18T05:58:07.773Z\"),\n current_period_end=parse_datetime(\"2026-05-27T12:28:57.938Z\"),\n current_meter_period_start=parse_datetime(\"2026-08-16T20:40:04.980Z\"),\n current_meter_period_end=parse_datetime(\"2025-02-19T23:53:59.708Z\"),\n trial_start=parse_datetime(\"2025-09-07T05:40:32.528Z\"),\n trial_end=None,\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2025-08-17T15:55:05.116Z\"),\n started_at=parse_datetime(\"2024-09-06T12:23:00.011Z\"),\n ends_at=None,\n ended_at=parse_datetime(\"2024-05-15T10:03:04.868Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2024-12-22T00:45:23.828Z\"),\n resumes_at=parse_datetime(\"2026-06-04T03:28:46.748Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_EXPENSIVE,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": 492829,\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-01-12T08:10:57.662Z\"),\n modified_at=parse_datetime(\"2025-04-02T22:57:12.765Z\"),\n metadata={\n \"key\": \"\",\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-01-27T06:40:11.845Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-03-31T23:41:50.445Z\"),\n modified_at=parse_datetime(\"2024-06-03T06:43:58.898Z\"),\n trial_interval=polar_sdk.TrialInterval.DAY,\n trial_interval_count=705527,\n name=\"\",\n description=\"purple bitterly yearn jovially speedily incidentally given toward meh\",\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=28683,\n meter_interval=polar_sdk.RecurringInterval.MONTH,\n meter_interval_count=595551,\n is_recurring=False,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2026-09-21T11:48:55.499Z\"),\n modified_at=parse_datetime(\"2026-08-19T04:17:33.887Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=False,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n price_amount=414949,\n ),\n ],\n benefits=[],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/tmp\",\n mime_type=\"\",\n size=14330,\n storage_version=None,\n checksum_etag=\"\",\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=None,\n version=\"\",\n is_uploaded=True,\n created_at=parse_datetime(\"2026-02-20T12:55:41.520Z\"),\n size_readable=\"\",\n public_url=\"https://violent-circumference.com/\",\n ),\n ],\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldText(\n created_at=parse_datetime(\"2025-03-28T11:10:45.316Z\"),\n modified_at=None,\n id=\"\",\n metadata={\n\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldTextProperties(),\n ),\n order=317704,\n required=True,\n ),\n ],\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.REPEATING,\n duration_in_months=76891,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2024-05-16T10:26:47.253Z\"),\n modified_at=parse_datetime(\"2025-08-09T05:00:08.712Z\"),\n id=\"\",\n metadata={\n \"key\": False,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2024-02-25T19:10:52.902Z\"),\n ends_at=None,\n max_redemptions=499299,\n max_redemptions_per_customer=27353,\n redemptions_count=574816,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceSeatBased(\n created_at=parse_datetime(\"2025-04-06T03:56:14.575Z\"),\n modified_at=parse_datetime(\"2026-03-11T02:45:08.903Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=False,\n product_id=\"\",\n seat_tiers=polar_sdk.ProductPriceSeatTiersOutput(\n tiers=[\n polar_sdk.ProductPriceSeatTier(\n min_seats=56245,\n price_per_seat=336090,\n ),\n ],\n minimum_seats=331254,\n maximum_seats=528428,\n ),\n ),\n ],\n meters=[\n polar_sdk.SubscriptionMeter(\n created_at=parse_datetime(\"2024-06-01T16:54:56.812Z\"),\n modified_at=parse_datetime(\"2025-10-19T18:13:32.190Z\"),\n id=\"\",\n consumed_units=25,\n credited_units=100,\n amount=0,\n meter_id=\"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter=polar_sdk.Meter(\n metadata={\n\n },\n created_at=parse_datetime(\"2026-08-24T22:44:14.004Z\"),\n modified_at=parse_datetime(\"2026-04-30T01:20:37.728Z\"),\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.TOKEN,\n filter_=polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.AND,\n clauses=[],\n ),\n aggregation=polar_sdk.CountAggregation(),\n organization_id=\"\",\n ),\n ),\n ],\n pending_update=None,\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.past_due"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_past_due_post(request=polar_sdk.WebhookSubscriptionPastDuePayload(\n timestamp=parse_datetime(\"2025-08-08T08:08:34.879Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2025-08-04T16:17:07.577Z\"),\n modified_at=parse_datetime(\"2025-12-31T22:57:08.265Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n recurring_interval_count=546644,\n status=polar_sdk.SubscriptionStatus.CANCELED,\n current_period_start=parse_datetime(\"2025-11-30T09:38:02.409Z\"),\n current_period_end=parse_datetime(\"2025-09-12T10:41:08.869Z\"),\n current_meter_period_start=parse_datetime(\"2025-04-18T01:48:54.159Z\"),\n current_meter_period_end=parse_datetime(\"2026-12-17T23:19:51.561Z\"),\n trial_start=parse_datetime(\"2024-11-18T16:29:28.986Z\"),\n trial_end=parse_datetime(\"2026-11-23T20:41:28.274Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-05-14T09:53:26.015Z\"),\n started_at=parse_datetime(\"2025-05-26T17:14:22.064Z\"),\n ends_at=parse_datetime(\"2025-02-19T13:48:32.579Z\"),\n ended_at=parse_datetime(\"2026-09-15T13:24:16.798Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2026-04-22T03:52:11.592Z\"),\n resumes_at=parse_datetime(\"2024-04-06T18:32:38.832Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=None,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": True,\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-12-22T12:33:51.204Z\"),\n modified_at=parse_datetime(\"2026-12-27T02:54:47.268Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-05-25T21:58:59.434Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2026-08-13T21:39:08.980Z\"),\n modified_at=parse_datetime(\"2025-05-27T08:15:22.853Z\"),\n trial_interval=polar_sdk.TrialInterval.DAY,\n trial_interval_count=302507,\n name=\"\",\n description=\"accessorise subdued tuxedo drat yippee lender save\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=581628,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=849710,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n \"key\": \"\",\n },\n prices=[],\n benefits=[],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/usr/bin\",\n mime_type=\"\",\n size=189018,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=None,\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2025-10-16T11:09:40.675Z\"),\n version=None,\n is_uploaded=True,\n created_at=parse_datetime(\"2024-04-24T02:01:36.979Z\"),\n size_readable=\"\",\n public_url=\"https://exalted-unblinking.name\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2025-09-15T03:00:42.261Z\"),\n modified_at=parse_datetime(\"2024-01-21T01:11:57.675Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-05-03T02:53:30.217Z\"),\n ends_at=parse_datetime(\"2026-12-13T03:09:13.905Z\"),\n max_redemptions=205428,\n redemptions_count=683480,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-12-13T20:01:34.409Z\"),\n modified_at=parse_datetime(\"2025-03-08T01:13:15.468Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2026-06-14T11:58:24.543Z\"),\n product_id=\"\",\n seats=829867,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_past_due_post(request=polar_sdk.WebhookSubscriptionPastDuePayload(\n timestamp=parse_datetime(\"2025-08-08T08:08:34.879Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2025-08-04T16:17:07.577Z\"),\n modified_at=parse_datetime(\"2025-12-31T22:57:08.265Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n recurring_interval_count=546644,\n status=polar_sdk.SubscriptionStatus.CANCELED,\n current_period_start=parse_datetime(\"2025-11-30T09:38:02.409Z\"),\n current_period_end=parse_datetime(\"2025-09-12T10:41:08.869Z\"),\n current_meter_period_start=parse_datetime(\"2025-04-18T01:48:54.159Z\"),\n current_meter_period_end=parse_datetime(\"2026-12-17T23:19:51.561Z\"),\n trial_start=parse_datetime(\"2024-11-18T16:29:28.986Z\"),\n trial_end=parse_datetime(\"2026-11-23T20:41:28.274Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-05-14T09:53:26.015Z\"),\n started_at=parse_datetime(\"2025-05-26T17:14:22.064Z\"),\n ends_at=parse_datetime(\"2025-02-19T13:48:32.579Z\"),\n ended_at=parse_datetime(\"2026-09-15T13:24:16.798Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2026-04-22T03:52:11.592Z\"),\n resumes_at=parse_datetime(\"2024-04-06T18:32:38.832Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=None,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": True,\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-12-22T12:33:51.204Z\"),\n modified_at=parse_datetime(\"2026-12-27T02:54:47.268Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-05-25T21:58:59.434Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2026-08-13T21:39:08.980Z\"),\n modified_at=parse_datetime(\"2025-05-27T08:15:22.853Z\"),\n trial_interval=polar_sdk.TrialInterval.DAY,\n trial_interval_count=302507,\n name=\"\",\n description=\"accessorise subdued tuxedo drat yippee lender save\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=581628,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=849710,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n \"key\": \"\",\n },\n prices=[],\n benefits=[],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/usr/bin\",\n mime_type=\"\",\n size=189018,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=None,\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2025-10-16T11:09:40.675Z\"),\n version=None,\n is_uploaded=True,\n created_at=parse_datetime(\"2024-04-24T02:01:36.979Z\"),\n size_readable=\"\",\n public_url=\"https://exalted-unblinking.name\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2025-09-15T03:00:42.261Z\"),\n modified_at=parse_datetime(\"2024-01-21T01:11:57.675Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-05-03T02:53:30.217Z\"),\n ends_at=parse_datetime(\"2026-12-13T03:09:13.905Z\"),\n max_redemptions=205428,\n max_redemptions_per_customer=407584,\n redemptions_count=83929,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceSeatBased(\n created_at=parse_datetime(\"2025-03-08T01:13:15.468Z\"),\n modified_at=parse_datetime(\"2024-09-14T14:11:21.913Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=True,\n product_id=\"\",\n seat_tiers=polar_sdk.ProductPriceSeatTiersOutput(\n tiers=[],\n minimum_seats=962073,\n maximum_seats=947289,\n ),\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-04-26T12:21:02.024Z\"),\n modified_at=parse_datetime(\"2025-03-27T21:36:45.936Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2024-02-23T16:15:56.302Z\"),\n product_id=\"\",\n seats=77361,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.paused"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_paused_post(request=polar_sdk.WebhookSubscriptionPausedPayload(\n timestamp=parse_datetime(\"2026-03-29T01:36:59.422Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-03-23T11:41:02.848Z\"),\n modified_at=parse_datetime(\"2024-10-04T16:55:27.887Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=302404,\n status=polar_sdk.SubscriptionStatus.ACTIVE,\n current_period_start=parse_datetime(\"2026-12-27T09:05:02.411Z\"),\n current_period_end=parse_datetime(\"2025-03-04T06:06:15.288Z\"),\n current_meter_period_start=parse_datetime(\"2024-05-16T08:48:28.800Z\"),\n current_meter_period_end=parse_datetime(\"2024-05-13T16:19:48.566Z\"),\n trial_start=parse_datetime(\"2025-07-14T05:52:01.187Z\"),\n trial_end=parse_datetime(\"2025-05-18T20:34:45.393Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-03-05T03:31:36.437Z\"),\n started_at=None,\n ends_at=parse_datetime(\"2025-12-20T21:41:53.063Z\"),\n ended_at=parse_datetime(\"2024-03-15T13:17:39.799Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2026-11-12T06:14:05.354Z\"),\n resumes_at=parse_datetime(\"2024-01-19T00:04:02.387Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.LOW_QUALITY,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": 435,\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2024-11-25T20:01:49.747Z\"),\n modified_at=parse_datetime(\"2025-04-17T15:01:45.388Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2024-05-30T01:02:26.367Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2026-05-23T05:04:48.306Z\"),\n modified_at=parse_datetime(\"2026-07-17T23:27:49.449Z\"),\n trial_interval=polar_sdk.TrialInterval.WEEK,\n trial_interval_count=6874,\n name=\"\",\n description=\"gleefully atrium blah huzzah till necessary up why unless golden\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=946185,\n meter_interval=polar_sdk.RecurringInterval.MONTH,\n meter_interval_count=418864,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n metadata={\n\n },\n prices=[],\n benefits=[\n polar_sdk.BenefitDownloadables(\n id=\"\",\n created_at=parse_datetime(\"2026-01-30T17:20:13.928Z\"),\n modified_at=parse_datetime(\"2024-01-15T11:10:19.526Z\"),\n description=\"painfully because posh minus\",\n selectable=False,\n deletable=False,\n is_deleted=True,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.PRIVATE,\n properties=polar_sdk.BenefitDownloadablesProperties(\n archived={\n\n },\n files=[\n \"\",\n ],\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.REPEATING,\n duration_in_months=991634,\n type=polar_sdk.DiscountType.PERCENTAGE,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2026-08-15T10:37:35.235Z\"),\n modified_at=None,\n id=\"\",\n metadata={\n \"key\": \"\",\n },\n name=\"\",\n code=None,\n starts_at=parse_datetime(\"2024-12-12T04:45:56.188Z\"),\n ends_at=None,\n max_redemptions=None,\n redemptions_count=559427,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-02-07T07:02:36.432Z\"),\n modified_at=parse_datetime(\"2026-08-09T03:06:07.639Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2024-01-05T01:41:00.452Z\"),\n product_id=\"\",\n seats=572690,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_paused_post(request=polar_sdk.WebhookSubscriptionPausedPayload(\n timestamp=parse_datetime(\"2026-03-29T01:36:59.422Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-03-23T11:41:02.848Z\"),\n modified_at=parse_datetime(\"2024-10-04T16:55:27.887Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=302404,\n status=polar_sdk.SubscriptionStatus.ACTIVE,\n current_period_start=parse_datetime(\"2026-12-27T09:05:02.411Z\"),\n current_period_end=parse_datetime(\"2025-03-04T06:06:15.288Z\"),\n current_meter_period_start=parse_datetime(\"2024-05-16T08:48:28.800Z\"),\n current_meter_period_end=parse_datetime(\"2024-05-13T16:19:48.566Z\"),\n trial_start=parse_datetime(\"2025-07-14T05:52:01.187Z\"),\n trial_end=parse_datetime(\"2025-05-18T20:34:45.393Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-03-05T03:31:36.437Z\"),\n started_at=None,\n ends_at=parse_datetime(\"2025-12-20T21:41:53.063Z\"),\n ended_at=parse_datetime(\"2024-03-15T13:17:39.799Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2026-11-12T06:14:05.354Z\"),\n resumes_at=parse_datetime(\"2024-01-19T00:04:02.387Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.LOW_QUALITY,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": 435,\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2024-11-25T20:01:49.747Z\"),\n modified_at=parse_datetime(\"2025-04-17T15:01:45.388Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.TEAM,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2024-05-30T01:02:26.367Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2026-05-23T05:04:48.306Z\"),\n modified_at=parse_datetime(\"2026-07-17T23:27:49.449Z\"),\n trial_interval=polar_sdk.TrialInterval.WEEK,\n trial_interval_count=6874,\n name=\"\",\n description=\"gleefully atrium blah huzzah till necessary up why unless golden\",\n visibility=polar_sdk.ProductVisibility.PUBLIC,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=946185,\n meter_interval=polar_sdk.RecurringInterval.MONTH,\n meter_interval_count=418864,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n metadata={\n\n },\n prices=[],\n benefits=[\n polar_sdk.BenefitDownloadables(\n id=\"\",\n created_at=parse_datetime(\"2026-01-30T17:20:13.928Z\"),\n modified_at=parse_datetime(\"2024-01-15T11:10:19.526Z\"),\n description=\"painfully because posh minus\",\n selectable=False,\n deletable=False,\n is_deleted=True,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.PRIVATE,\n properties=polar_sdk.BenefitDownloadablesProperties(\n archived={\n\n },\n files=[\n \"\",\n ],\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountFixedRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.REPEATING,\n duration_in_months=991634,\n type=polar_sdk.DiscountType.PERCENTAGE,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2026-08-15T10:37:35.235Z\"),\n modified_at=None,\n id=\"\",\n metadata={\n \"key\": \"\",\n },\n name=\"\",\n code=None,\n starts_at=parse_datetime(\"2024-12-12T04:45:56.188Z\"),\n ends_at=None,\n max_redemptions=None,\n max_redemptions_per_customer=122289,\n redemptions_count=330111,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceMeteredUnit(\n created_at=parse_datetime(\"2026-08-09T03:06:07.639Z\"),\n modified_at=None,\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=False,\n product_id=\"\",\n unit_amount=\"\",\n cap_amount=317420,\n meter_id=\"\",\n meter=polar_sdk.ProductPriceMeter(\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n custom_label=\"\",\n custom_multiplier=992587,\n ),\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2025-11-12T23:30:36.240Z\"),\n modified_at=parse_datetime(\"2025-10-26T23:50:53.891Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2024-04-20T01:21:42.742Z\"),\n product_id=\"\",\n seats=61598,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.resumed"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_resumed_post(request=polar_sdk.WebhookSubscriptionResumedPayload(\n timestamp=parse_datetime(\"2024-01-22T14:24:10.379Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-06-30T09:29:44.611Z\"),\n modified_at=parse_datetime(\"2025-05-19T10:15:04.095Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=910892,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE_EXPIRED,\n current_period_start=parse_datetime(\"2026-07-05T11:55:19.948Z\"),\n current_period_end=parse_datetime(\"2025-10-26T05:39:47.956Z\"),\n current_meter_period_start=None,\n current_meter_period_end=parse_datetime(\"2026-11-24T05:42:14.433Z\"),\n trial_start=parse_datetime(\"2024-08-16T01:20:56.595Z\"),\n trial_end=parse_datetime(\"2026-07-09T21:41:25.685Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-03-15T20:24:25.729Z\"),\n started_at=parse_datetime(\"2024-01-24T07:56:52.664Z\"),\n ends_at=parse_datetime(\"2025-12-01T07:07:48.564Z\"),\n ended_at=parse_datetime(\"2026-11-24T20:15:41.291Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2026-12-20T07:04:52.345Z\"),\n resumes_at=parse_datetime(\"2026-02-13T22:06:10.729Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.LOW_QUALITY,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": \"\",\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2024-08-10T12:31:29.222Z\"),\n modified_at=parse_datetime(\"2026-03-05T13:26:09.665Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-02-22T23:12:45.988Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2025-01-14T10:56:21.606Z\"),\n modified_at=parse_datetime(\"2026-01-13T10:49:57.927Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=60142,\n name=\"\",\n description=\"vice proliferate lined doodle\",\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=285327,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=212696,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-02-19T06:29:24.413Z\"),\n modified_at=parse_datetime(\"2025-11-24T11:49:47.599Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n price_amount=366168,\n ),\n ],\n benefits=[\n polar_sdk.BenefitGitHubRepository(\n id=\"\",\n created_at=parse_datetime(\"2024-03-08T00:36:46.368Z\"),\n modified_at=None,\n description=\"except loyalty scale\",\n selectable=True,\n deletable=True,\n is_deleted=False,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.DRAFT,\n properties=polar_sdk.BenefitGitHubRepositoryProperties(\n repository_owner=\"polarsource\",\n repository_name=\"private_repo\",\n permission=polar_sdk.Permission.MAINTAIN,\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/tmp\",\n mime_type=\"\",\n size=824138,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=None,\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-09-11T04:32:32.279Z\"),\n version=\"\",\n is_uploaded=False,\n created_at=parse_datetime(\"2025-10-28T00:09:11.868Z\"),\n size_readable=\"\",\n public_url=\"https://agile-paintwork.net/\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.REPEATING,\n type=polar_sdk.DiscountType.FIXED,\n basis_points=1000,\n created_at=parse_datetime(\"2024-01-29T12:57:51.159Z\"),\n modified_at=parse_datetime(\"2026-05-30T05:14:44.253Z\"),\n id=\"\",\n metadata={\n \"key\": 1944.15,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-05-02T12:20:43.507Z\"),\n ends_at=parse_datetime(\"2025-11-01T11:32:19.007Z\"),\n max_redemptions=918147,\n redemptions_count=672454,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.LegacyRecurringProductPriceCustom(\n created_at=parse_datetime(\"2024-03-27T18:00:56.006Z\"),\n modified_at=parse_datetime(\"2025-12-23T19:15:57.393Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n minimum_amount=399198,\n maximum_amount=429537,\n preset_amount=361115,\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-05-21T01:07:20.692Z\"),\n modified_at=parse_datetime(\"2026-12-12T11:31:51.483Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2026-08-20T05:33:38.575Z\"),\n product_id=\"\",\n seats=248287,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_resumed_post(request=polar_sdk.WebhookSubscriptionResumedPayload(\n timestamp=parse_datetime(\"2024-01-22T14:24:10.379Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-06-30T09:29:44.611Z\"),\n modified_at=parse_datetime(\"2025-05-19T10:15:04.095Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=910892,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE_EXPIRED,\n current_period_start=parse_datetime(\"2026-07-05T11:55:19.948Z\"),\n current_period_end=parse_datetime(\"2025-10-26T05:39:47.956Z\"),\n current_meter_period_start=None,\n current_meter_period_end=parse_datetime(\"2026-11-24T05:42:14.433Z\"),\n trial_start=parse_datetime(\"2024-08-16T01:20:56.595Z\"),\n trial_end=parse_datetime(\"2026-07-09T21:41:25.685Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-03-15T20:24:25.729Z\"),\n started_at=parse_datetime(\"2024-01-24T07:56:52.664Z\"),\n ends_at=parse_datetime(\"2025-12-01T07:07:48.564Z\"),\n ended_at=parse_datetime(\"2026-11-24T20:15:41.291Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2026-12-20T07:04:52.345Z\"),\n resumes_at=parse_datetime(\"2026-02-13T22:06:10.729Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.LOW_QUALITY,\n customer_cancellation_comment=\"\",\n metadata={\n \"key\": \"\",\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2024-08-10T12:31:29.222Z\"),\n modified_at=parse_datetime(\"2026-03-05T13:26:09.665Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-02-22T23:12:45.988Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2025-01-14T10:56:21.606Z\"),\n modified_at=parse_datetime(\"2026-01-13T10:49:57.927Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=60142,\n name=\"\",\n description=\"vice proliferate lined doodle\",\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=285327,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=212696,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n metadata={\n\n },\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-02-19T06:29:24.413Z\"),\n modified_at=parse_datetime(\"2025-11-24T11:49:47.599Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.EXCLUSIVE,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n price_amount=366168,\n ),\n ],\n benefits=[\n polar_sdk.BenefitGitHubRepository(\n id=\"\",\n created_at=parse_datetime(\"2024-03-08T00:36:46.368Z\"),\n modified_at=None,\n description=\"except loyalty scale\",\n selectable=True,\n deletable=True,\n is_deleted=False,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.DRAFT,\n properties=polar_sdk.BenefitGitHubRepositoryProperties(\n repository_owner=\"polarsource\",\n repository_name=\"private_repo\",\n permission=polar_sdk.Permission.MAINTAIN,\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/tmp\",\n mime_type=\"\",\n size=824138,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=None,\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-09-11T04:32:32.279Z\"),\n version=\"\",\n is_uploaded=False,\n created_at=parse_datetime(\"2025-10-28T00:09:11.868Z\"),\n size_readable=\"\",\n public_url=\"https://agile-paintwork.net/\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.REPEATING,\n type=polar_sdk.DiscountType.FIXED,\n basis_points=1000,\n created_at=parse_datetime(\"2024-01-29T12:57:51.159Z\"),\n modified_at=parse_datetime(\"2026-05-30T05:14:44.253Z\"),\n id=\"\",\n metadata={\n \"key\": 1944.15,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2025-05-02T12:20:43.507Z\"),\n ends_at=parse_datetime(\"2025-11-01T11:32:19.007Z\"),\n max_redemptions=918147,\n max_redemptions_per_customer=703464,\n redemptions_count=610979,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2025-12-23T19:15:57.393Z\"),\n modified_at=parse_datetime(\"2024-08-12T06:33:24.620Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2024-06-30T08:33:46.986Z\"),\n product_id=None,\n seats=678517,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.revoked"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_revoked_post(request=polar_sdk.WebhookSubscriptionRevokedPayload(\n timestamp=parse_datetime(\"2025-01-01T06:40:50.860Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-03-15T08:42:29.566Z\"),\n modified_at=parse_datetime(\"2024-10-27T01:20:21.930Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=811590,\n status=polar_sdk.SubscriptionStatus.ACTIVE,\n current_period_start=parse_datetime(\"2024-05-29T02:07:20.021Z\"),\n current_period_end=parse_datetime(\"2026-03-19T11:29:47.842Z\"),\n current_meter_period_start=parse_datetime(\"2024-11-19T08:24:19.529Z\"),\n current_meter_period_end=None,\n trial_start=parse_datetime(\"2025-02-13T23:20:57.498Z\"),\n trial_end=parse_datetime(\"2026-04-28T23:19:31.379Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-12-27T07:35:48.028Z\"),\n started_at=parse_datetime(\"2025-01-25T10:24:50.250Z\"),\n ends_at=parse_datetime(\"2025-06-20T16:37:33.284Z\"),\n ended_at=parse_datetime(\"2024-11-23T13:14:03.962Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2026-07-31T11:36:41.678Z\"),\n resumes_at=parse_datetime(\"2025-11-12T05:10:40.368Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_EXPENSIVE,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-12-09T13:41:39.970Z\"),\n modified_at=parse_datetime(\"2026-06-26T05:35:27.950Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2024-06-27T04:29:51.263Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2025-05-13T17:06:35.862Z\"),\n modified_at=parse_datetime(\"2025-07-20T00:50:23.415Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=470874,\n name=\"\",\n description=None,\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=726855,\n meter_interval=polar_sdk.RecurringInterval.YEAR,\n meter_interval_count=653986,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[],\n benefits=[],\n medias=[],\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldDate(\n created_at=parse_datetime(\"2024-12-06T19:09:38.567Z\"),\n modified_at=parse_datetime(\"2025-06-22T22:24:52.560Z\"),\n id=\"\",\n metadata={\n\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldDateProperties(),\n ),\n order=230241,\n required=False,\n ),\n ],\n ),\n discount=polar_sdk.DiscountFixedOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.ONCE,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2024-04-22T14:33:09.602Z\"),\n modified_at=parse_datetime(\"2026-11-07T16:08:18.552Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=None,\n starts_at=parse_datetime(\"2024-04-24T13:15:01.162Z\"),\n ends_at=parse_datetime(\"2025-02-05T18:21:23.175Z\"),\n max_redemptions=392347,\n redemptions_count=599282,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.LegacyRecurringProductPriceFixed(\n created_at=parse_datetime(\"2025-12-28T11:50:23.357Z\"),\n modified_at=parse_datetime(\"2025-02-28T15:36:10.141Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n price_amount=840764,\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2026-11-14T12:21:27.695Z\"),\n modified_at=parse_datetime(\"2024-12-15T06:31:21.339Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2025-05-24T15:38:32.041Z\"),\n product_id=\"\",\n seats=89415,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_revoked_post(request=polar_sdk.WebhookSubscriptionRevokedPayload(\n timestamp=parse_datetime(\"2025-01-01T06:40:50.860Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-03-15T08:42:29.566Z\"),\n modified_at=parse_datetime(\"2024-10-27T01:20:21.930Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=811590,\n status=polar_sdk.SubscriptionStatus.ACTIVE,\n current_period_start=parse_datetime(\"2024-05-29T02:07:20.021Z\"),\n current_period_end=parse_datetime(\"2026-03-19T11:29:47.842Z\"),\n current_meter_period_start=parse_datetime(\"2024-11-19T08:24:19.529Z\"),\n current_meter_period_end=None,\n trial_start=parse_datetime(\"2025-02-13T23:20:57.498Z\"),\n trial_end=parse_datetime(\"2026-04-28T23:19:31.379Z\"),\n cancel_at_period_end=True,\n canceled_at=parse_datetime(\"2024-12-27T07:35:48.028Z\"),\n started_at=parse_datetime(\"2025-01-25T10:24:50.250Z\"),\n ends_at=parse_datetime(\"2025-06-20T16:37:33.284Z\"),\n ended_at=parse_datetime(\"2024-11-23T13:14:03.962Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2026-07-31T11:36:41.678Z\"),\n resumes_at=parse_datetime(\"2025-11-12T05:10:40.368Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_EXPENSIVE,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2026-12-09T13:41:39.970Z\"),\n modified_at=parse_datetime(\"2026-06-26T05:35:27.950Z\"),\n metadata={\n\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2024-06-27T04:29:51.263Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2025-05-13T17:06:35.862Z\"),\n modified_at=parse_datetime(\"2025-07-20T00:50:23.415Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=470874,\n name=\"\",\n description=None,\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n recurring_interval_count=726855,\n meter_interval=polar_sdk.RecurringInterval.YEAR,\n meter_interval_count=653986,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[],\n benefits=[],\n medias=[],\n attached_custom_fields=[\n polar_sdk.AttachedCustomField(\n custom_field_id=\"\",\n custom_field=polar_sdk.CustomFieldDate(\n created_at=parse_datetime(\"2024-12-06T19:09:38.567Z\"),\n modified_at=parse_datetime(\"2025-06-22T22:24:52.560Z\"),\n id=\"\",\n metadata={\n\n },\n slug=\"\",\n name=\"\",\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties=polar_sdk.CustomFieldDateProperties(),\n ),\n order=230241,\n required=False,\n ),\n ],\n ),\n discount=polar_sdk.DiscountFixedOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.ONCE,\n type=polar_sdk.DiscountType.FIXED,\n amount=1000,\n currency=\"usd\",\n amounts={\n \"eur\": 900,\n \"usd\": 1000,\n },\n created_at=parse_datetime(\"2024-04-22T14:33:09.602Z\"),\n modified_at=parse_datetime(\"2026-11-07T16:08:18.552Z\"),\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=None,\n starts_at=parse_datetime(\"2024-04-24T13:15:01.162Z\"),\n ends_at=parse_datetime(\"2025-02-05T18:21:23.175Z\"),\n max_redemptions=392347,\n max_redemptions_per_customer=751397,\n redemptions_count=629052,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[\n polar_sdk.SubscriptionMeter(\n created_at=parse_datetime(\"2025-07-11T22:16:37.995Z\"),\n modified_at=parse_datetime(\"2026-10-26T15:27:51.969Z\"),\n id=\"\",\n consumed_units=25,\n credited_units=100,\n amount=0,\n meter_id=\"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter=polar_sdk.Meter(\n metadata={\n\n },\n created_at=parse_datetime(\"2025-07-22T18:02:43.795Z\"),\n modified_at=None,\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.CUSTOM,\n filter_=polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.AND,\n clauses=[],\n ),\n aggregation=polar_sdk.UniqueAggregation(\n property=\"\",\n ),\n organization_id=\"\",\n ),\n ),\n ],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2024-12-15T06:31:21.339Z\"),\n modified_at=parse_datetime(\"2025-06-28T04:33:55.419Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2025-04-14T20:45:08.137Z\"),\n product_id=None,\n seats=811460,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.uncanceled"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_uncanceled_post(request=polar_sdk.WebhookSubscriptionUncanceledPayload(\n timestamp=parse_datetime(\"2024-02-06T17:25:10.106Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-05-12T11:53:26.507Z\"),\n modified_at=None,\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=406654,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE_EXPIRED,\n current_period_start=parse_datetime(\"2026-06-06T02:06:49.326Z\"),\n current_period_end=parse_datetime(\"2025-04-11T19:08:16.655Z\"),\n current_meter_period_start=parse_datetime(\"2024-08-22T01:03:59.107Z\"),\n current_meter_period_end=parse_datetime(\"2025-08-30T15:34:10.479Z\"),\n trial_start=parse_datetime(\"2024-02-08T04:05:57.779Z\"),\n trial_end=parse_datetime(\"2024-12-22T04:50:00.016Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-08-14T20:42:46.275Z\"),\n started_at=None,\n ends_at=parse_datetime(\"2024-05-31T22:55:56.558Z\"),\n ended_at=parse_datetime(\"2024-04-14T22:44:37.320Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2025-07-04T17:30:56.477Z\"),\n resumes_at=parse_datetime(\"2025-12-23T09:30:11.195Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_COMPLEX,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-10-15T19:47:04.648Z\"),\n modified_at=parse_datetime(\"2025-08-04T07:14:33.597Z\"),\n metadata={\n \"key\": 9094.93,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-12-21T08:27:43.156Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-01-24T21:59:44.830Z\"),\n modified_at=parse_datetime(\"2024-09-16T02:42:22.271Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=849999,\n name=\"\",\n description=\"excitedly stabilise gah wherever entrench excellent merry psst whose\",\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=673161,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=None,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[],\n benefits=[\n polar_sdk.BenefitSlackSharedChannel(\n id=\"\",\n created_at=parse_datetime(\"2025-09-10T10:32:32.710Z\"),\n modified_at=parse_datetime(\"2024-01-25T07:05:16.396Z\"),\n description=\"incomparable on netsuke afore pillory mob\",\n selectable=False,\n deletable=True,\n is_deleted=True,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.PRIVATE,\n properties=polar_sdk.BenefitSlackSharedChannelProperties(\n slack_integration_id=\"\",\n channel_name_template=\"\",\n private=True,\n archive_on_revoke=True,\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/usr\",\n mime_type=\"\",\n size=69572,\n storage_version=\"\",\n checksum_etag=None,\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2025-06-19T17:14:32.419Z\"),\n version=None,\n is_uploaded=False,\n created_at=parse_datetime(\"2025-04-21T02:08:16.256Z\"),\n size_readable=\"\",\n public_url=\"https://triangular-solution.biz/\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2024-06-24T19:31:22.158Z\"),\n modified_at=parse_datetime(\"2025-01-09T11:52:55.196Z\"),\n id=\"\",\n metadata={\n \"key\": 934334,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-05-08T20:53:14.936Z\"),\n ends_at=parse_datetime(\"2026-08-01T19:32:49.347Z\"),\n max_redemptions=372046,\n redemptions_count=791230,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceMeteredUnit(\n created_at=parse_datetime(\"2025-08-03T06:02:45.318Z\"),\n modified_at=parse_datetime(\"2024-10-19T13:32:13.034Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.CATALOG,\n price_currency=\"\",\n tax_behavior=None,\n is_archived=False,\n product_id=\"\",\n unit_amount=\"\",\n cap_amount=187187,\n meter_id=\"\",\n meter=polar_sdk.ProductPriceMeter(\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n custom_label=\"\",\n custom_multiplier=351785,\n ),\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2025-04-17T20:36:18.908Z\"),\n modified_at=parse_datetime(\"2025-03-05T23:46:40.321Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2026-12-12T19:34:25.834Z\"),\n product_id=\"\",\n seats=790736,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_uncanceled_post(request=polar_sdk.WebhookSubscriptionUncanceledPayload(\n timestamp=parse_datetime(\"2024-02-06T17:25:10.106Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2024-05-12T11:53:26.507Z\"),\n modified_at=None,\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=406654,\n status=polar_sdk.SubscriptionStatus.INCOMPLETE_EXPIRED,\n current_period_start=parse_datetime(\"2026-06-06T02:06:49.326Z\"),\n current_period_end=parse_datetime(\"2025-04-11T19:08:16.655Z\"),\n current_meter_period_start=parse_datetime(\"2024-08-22T01:03:59.107Z\"),\n current_meter_period_end=parse_datetime(\"2025-08-30T15:34:10.479Z\"),\n trial_start=parse_datetime(\"2024-02-08T04:05:57.779Z\"),\n trial_end=parse_datetime(\"2024-12-22T04:50:00.016Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-08-14T20:42:46.275Z\"),\n started_at=None,\n ends_at=parse_datetime(\"2024-05-31T22:55:56.558Z\"),\n ended_at=parse_datetime(\"2024-04-14T22:44:37.320Z\"),\n pause_at_period_end=False,\n paused_at=parse_datetime(\"2025-07-04T17:30:56.477Z\"),\n resumes_at=parse_datetime(\"2025-12-23T09:30:11.195Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_COMPLEX,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-10-15T19:47:04.648Z\"),\n modified_at=parse_datetime(\"2025-08-04T07:14:33.597Z\"),\n metadata={\n \"key\": 9094.93,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2026-12-21T08:27:43.156Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-01-24T21:59:44.830Z\"),\n modified_at=parse_datetime(\"2024-09-16T02:42:22.271Z\"),\n trial_interval=polar_sdk.TrialInterval.MONTH,\n trial_interval_count=849999,\n name=\"\",\n description=\"excitedly stabilise gah wherever entrench excellent merry psst whose\",\n visibility=polar_sdk.ProductVisibility.PRIVATE,\n recurring_interval=polar_sdk.RecurringInterval.MONTH,\n recurring_interval_count=673161,\n meter_interval=polar_sdk.RecurringInterval.WEEK,\n meter_interval_count=None,\n is_recurring=True,\n is_archived=False,\n organization_id=\"\",\n metadata={\n\n },\n prices=[],\n benefits=[\n polar_sdk.BenefitSlackSharedChannel(\n id=\"\",\n created_at=parse_datetime(\"2025-09-10T10:32:32.710Z\"),\n modified_at=parse_datetime(\"2024-01-25T07:05:16.396Z\"),\n description=\"incomparable on netsuke afore pillory mob\",\n selectable=False,\n deletable=True,\n is_deleted=True,\n organization_id=\"\",\n metadata={\n\n },\n visibility=polar_sdk.BenefitVisibility.PRIVATE,\n properties=polar_sdk.BenefitSlackSharedChannelProperties(\n slack_integration_id=\"\",\n channel_name_template=\"\",\n private=True,\n archive_on_revoke=True,\n ),\n visibility_configurable=True,\n ),\n ],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/usr\",\n mime_type=\"\",\n size=69572,\n storage_version=\"\",\n checksum_etag=None,\n checksum_sha256_base64=\"\",\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2025-06-19T17:14:32.419Z\"),\n version=None,\n is_uploaded=False,\n created_at=parse_datetime(\"2025-04-21T02:08:16.256Z\"),\n size_readable=\"\",\n public_url=\"https://triangular-solution.biz/\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageOnceForeverDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n type=polar_sdk.DiscountType.PERCENTAGE,\n basis_points=1000,\n created_at=parse_datetime(\"2024-06-24T19:31:22.158Z\"),\n modified_at=parse_datetime(\"2025-01-09T11:52:55.196Z\"),\n id=\"\",\n metadata={\n \"key\": 934334,\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-05-08T20:53:14.936Z\"),\n ends_at=parse_datetime(\"2026-08-01T19:32:49.347Z\"),\n max_redemptions=372046,\n max_redemptions_per_customer=887720,\n redemptions_count=999693,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.LegacyRecurringProductPriceCustom(\n created_at=parse_datetime(\"2024-10-19T13:32:13.034Z\"),\n modified_at=parse_datetime(\"2024-03-13T02:37:49.424Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.LOCATION,\n is_archived=True,\n product_id=\"\",\n recurring_interval=polar_sdk.RecurringInterval.DAY,\n minimum_amount=253682,\n maximum_amount=351785,\n preset_amount=166413,\n ),\n ],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2025-03-05T23:46:40.321Z\"),\n modified_at=parse_datetime(\"2025-07-06T08:22:52.735Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2025-05-31T01:58:17.677Z\"),\n product_id=\"\",\n seats=None,\n ),\n ),\n ))\n\n # Handle response\n print(res)" - target: $["paths"]["subscription.updated"]["post"] update: "x-codeSamples": - "lang": "python" "label": "Python (SDK)" - "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_updated_post(request=polar_sdk.WebhookSubscriptionUpdatedPayload(\n timestamp=parse_datetime(\"2024-06-23T13:26:25.969Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2025-05-25T12:11:24.717Z\"),\n modified_at=parse_datetime(\"2025-07-08T02:17:23.799Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n recurring_interval_count=489836,\n status=polar_sdk.SubscriptionStatus.CANCELED,\n current_period_start=parse_datetime(\"2025-06-19T12:29:28.503Z\"),\n current_period_end=parse_datetime(\"2024-06-13T15:07:05.619Z\"),\n current_meter_period_start=parse_datetime(\"2026-04-17T18:51:57.213Z\"),\n current_meter_period_end=parse_datetime(\"2026-08-31T06:08:08.476Z\"),\n trial_start=parse_datetime(\"2024-05-31T08:01:27.951Z\"),\n trial_end=parse_datetime(\"2026-01-23T22:07:32.693Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-04-28T14:07:35.212Z\"),\n started_at=parse_datetime(\"2026-04-23T18:41:38.111Z\"),\n ends_at=parse_datetime(\"2025-07-18T23:37:38.055Z\"),\n ended_at=parse_datetime(\"2024-11-20T01:50:00.976Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2025-03-22T08:08:02.561Z\"),\n resumes_at=parse_datetime(\"2025-06-15T22:53:11.971Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_COMPLEX,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-08-19T16:06:29.687Z\"),\n modified_at=parse_datetime(\"2026-06-13T05:20:06.893Z\"),\n metadata={\n \"key\": False,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-02-28T10:36:43.574Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-05-02T11:08:25.505Z\"),\n modified_at=parse_datetime(\"2026-08-13T18:36:10.588Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=535847,\n name=\"\",\n description=\"reiterate ack mmm prudent sensitize\",\n visibility=polar_sdk.ProductVisibility.DRAFT,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=946217,\n meter_interval=polar_sdk.RecurringInterval.YEAR,\n meter_interval_count=425766,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n metadata={\n \"key\": \"\",\n },\n prices=[],\n benefits=[],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/Users\",\n mime_type=\"\",\n size=222958,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=None,\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-07-27T10:52:24.280Z\"),\n version=None,\n is_uploaded=True,\n created_at=parse_datetime(\"2024-10-02T10:28:13.472Z\"),\n size_readable=\"\",\n public_url=\"https://lean-mortise.info/\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=170733,\n type=polar_sdk.DiscountType.FIXED,\n basis_points=1000,\n created_at=parse_datetime(\"2024-08-07T13:22:08.610Z\"),\n modified_at=None,\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-07-12T02:33:56.088Z\"),\n ends_at=parse_datetime(\"2024-09-02T20:25:41.136Z\"),\n max_redemptions=305029,\n redemptions_count=996997,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[],\n meters=[],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2025-09-28T05:16:48.757Z\"),\n modified_at=parse_datetime(\"2025-01-29T09:51:27.014Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2026-11-20T14:18:07.269Z\"),\n product_id=\"\",\n seats=378219,\n ),\n ),\n ))\n\n # Handle response\n print(res)" + "source": "import polar_sdk\nfrom polar_sdk import Polar\nfrom polar_sdk.utils import parse_datetime\n\n\nwith Polar() as polar:\n\n res = polar.endpointsubscription_updated_post(request=polar_sdk.WebhookSubscriptionUpdatedPayload(\n timestamp=parse_datetime(\"2024-06-23T13:26:25.969Z\"),\n data=polar_sdk.Subscription(\n created_at=parse_datetime(\"2025-05-25T12:11:24.717Z\"),\n modified_at=parse_datetime(\"2025-07-08T02:17:23.799Z\"),\n id=\"\",\n amount=10000,\n currency=\"usd\",\n recurring_interval=polar_sdk.RecurringInterval.WEEK,\n recurring_interval_count=489836,\n status=polar_sdk.SubscriptionStatus.CANCELED,\n current_period_start=parse_datetime(\"2025-06-19T12:29:28.503Z\"),\n current_period_end=parse_datetime(\"2024-06-13T15:07:05.619Z\"),\n current_meter_period_start=parse_datetime(\"2026-04-17T18:51:57.213Z\"),\n current_meter_period_end=parse_datetime(\"2026-08-31T06:08:08.476Z\"),\n trial_start=parse_datetime(\"2024-05-31T08:01:27.951Z\"),\n trial_end=parse_datetime(\"2026-01-23T22:07:32.693Z\"),\n cancel_at_period_end=False,\n canceled_at=parse_datetime(\"2026-04-28T14:07:35.212Z\"),\n started_at=parse_datetime(\"2026-04-23T18:41:38.111Z\"),\n ends_at=parse_datetime(\"2025-07-18T23:37:38.055Z\"),\n ended_at=parse_datetime(\"2024-11-20T01:50:00.976Z\"),\n pause_at_period_end=True,\n paused_at=parse_datetime(\"2025-03-22T08:08:02.561Z\"),\n resumes_at=parse_datetime(\"2025-06-15T22:53:11.971Z\"),\n customer_id=\"\",\n product_id=\"\",\n discount_id=\"\",\n checkout_id=\"\",\n customer_cancellation_reason=polar_sdk.CustomerCancellationReason.TOO_COMPLEX,\n customer_cancellation_comment=\"\",\n metadata={\n\n },\n customer=polar_sdk.SubscriptionCustomer(\n id=\"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n created_at=parse_datetime(\"2025-08-19T16:06:29.687Z\"),\n modified_at=parse_datetime(\"2026-06-13T05:20:06.893Z\"),\n metadata={\n \"key\": False,\n },\n external_id=\"usr_1337\",\n email=\"customer@example.com\",\n email_verified=True,\n type=polar_sdk.CustomerType.INDIVIDUAL,\n name=\"John Doe\",\n billing_name=\"John Doe\",\n billing_address=polar_sdk.Address(\n country=polar_sdk.AddressCountryAlpha2.US,\n ),\n tax_id=[\n \"911144442\",\n \"us_ein\",\n ],\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deleted_at=parse_datetime(\"2025-02-28T10:36:43.574Z\"),\n avatar_url=\"https://www.gravatar.com/avatar/xxx?d=404\",\n ),\n product=polar_sdk.Product(\n id=\"\",\n created_at=parse_datetime(\"2024-05-02T11:08:25.505Z\"),\n modified_at=parse_datetime(\"2026-08-13T18:36:10.588Z\"),\n trial_interval=polar_sdk.TrialInterval.YEAR,\n trial_interval_count=535847,\n name=\"\",\n description=\"reiterate ack mmm prudent sensitize\",\n visibility=polar_sdk.ProductVisibility.DRAFT,\n recurring_interval=polar_sdk.RecurringInterval.YEAR,\n recurring_interval_count=946217,\n meter_interval=polar_sdk.RecurringInterval.YEAR,\n meter_interval_count=425766,\n is_recurring=True,\n is_archived=True,\n organization_id=\"\",\n metadata={\n \"key\": \"\",\n },\n prices=[],\n benefits=[],\n medias=[\n polar_sdk.ProductMediaFileRead(\n id=\"\",\n organization_id=\"\",\n name=\"\",\n path=\"/Users\",\n mime_type=\"\",\n size=222958,\n storage_version=\"\",\n checksum_etag=\"\",\n checksum_sha256_base64=None,\n checksum_sha256_hex=\"\",\n last_modified_at=parse_datetime(\"2024-07-27T10:52:24.280Z\"),\n version=None,\n is_uploaded=True,\n created_at=parse_datetime(\"2024-10-02T10:28:13.472Z\"),\n size_readable=\"\",\n public_url=\"https://lean-mortise.info/\",\n ),\n ],\n attached_custom_fields=[],\n ),\n discount=polar_sdk.DiscountPercentageRepeatDurationBase(\n duration=polar_sdk.DiscountDuration.FOREVER,\n duration_in_months=170733,\n type=polar_sdk.DiscountType.FIXED,\n basis_points=1000,\n created_at=parse_datetime(\"2024-08-07T13:22:08.610Z\"),\n modified_at=None,\n id=\"\",\n metadata={\n\n },\n name=\"\",\n code=\"\",\n starts_at=parse_datetime(\"2026-07-12T02:33:56.088Z\"),\n ends_at=parse_datetime(\"2024-09-02T20:25:41.136Z\"),\n max_redemptions=305029,\n max_redemptions_per_customer=158621,\n redemptions_count=145308,\n organization_id=\"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n ),\n prices=[\n polar_sdk.ProductPriceMeteredUnit(\n created_at=parse_datetime(\"2025-01-29T09:51:27.014Z\"),\n modified_at=parse_datetime(\"2025-05-25T04:21:31.587Z\"),\n id=\"\",\n source=polar_sdk.ProductPriceSource.AD_HOC,\n price_currency=\"\",\n tax_behavior=polar_sdk.TaxBehaviorOption.INCLUSIVE,\n is_archived=True,\n product_id=\"\",\n unit_amount=\"\",\n cap_amount=737777,\n meter_id=\"\",\n meter=polar_sdk.ProductPriceMeter(\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n custom_label=\"\",\n custom_multiplier=53156,\n ),\n ),\n ],\n meters=[\n polar_sdk.SubscriptionMeter(\n created_at=parse_datetime(\"2026-06-07T13:44:19.881Z\"),\n modified_at=parse_datetime(\"2024-12-05T20:26:36.699Z\"),\n id=\"\",\n consumed_units=25,\n credited_units=100,\n amount=0,\n meter_id=\"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter=polar_sdk.Meter(\n metadata={\n \"key\": 6882,\n },\n created_at=parse_datetime(\"2025-01-06T22:47:09.497Z\"),\n modified_at=parse_datetime(\"2025-01-26T11:12:27.586Z\"),\n id=\"\",\n name=\"\",\n unit=polar_sdk.MeterUnit.SCALAR,\n filter_=polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.AND,\n clauses=[\n polar_sdk.Filter(\n conjunction=polar_sdk.FilterConjunction.AND,\n clauses=[],\n ),\n ],\n ),\n aggregation=polar_sdk.PropertyAggregation(\n func=polar_sdk.Func.MIN,\n property=\"\",\n ),\n organization_id=\"\",\n ),\n ),\n ],\n pending_update=polar_sdk.PendingSubscriptionUpdate(\n created_at=parse_datetime(\"2025-12-16T20:50:35.317Z\"),\n modified_at=parse_datetime(\"2024-05-26T19:23:38.918Z\"),\n id=\"\",\n applies_at=parse_datetime(\"2025-10-31T02:03:47.796Z\"),\n product_id=\"\",\n seats=461888,\n ),\n ),\n ))\n\n # Handle response\n print(res)" diff --git a/docs/models/checkout.md b/docs/models/checkout.md index a4bd7069..43ea69c0 100644 --- a/docs/models/checkout.md +++ b/docs/models/checkout.md @@ -53,6 +53,7 @@ Checkout session data retrieved using an access token. | `customer_billing_address` | [Nullable[models.Address]](../models/address.md) | :heavy_check_mark: | N/A | | `customer_tax_id` | *Nullable[str]* | :heavy_check_mark: | N/A | | `locale` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `payment_method_type` | *Nullable[str]* | :heavy_check_mark: | Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`. | | `payment_processor_metadata` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `billing_address_fields` | [models.CheckoutBillingAddressFields](../models/checkoutbillingaddressfields.md) | :heavy_check_mark: | N/A | | `trial_interval` | [Nullable[models.TrialInterval]](../models/trialinterval.md) | :heavy_check_mark: | The interval unit for the trial period. | diff --git a/docs/models/checkoutconfirmstripe.md b/docs/models/checkoutconfirmstripe.md index 665993a5..dc91d91b 100644 --- a/docs/models/checkoutconfirmstripe.md +++ b/docs/models/checkoutconfirmstripe.md @@ -19,6 +19,7 @@ Confirm a checkout session using a Stripe confirmation token. | `customer_billing_address` | [OptionalNullable[models.AddressInput]](../models/addressinput.md) | :heavy_minus_sign: | N/A | | | `customer_tax_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | | `locale` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | en | +| `payment_method_type` | *OptionalNullable[str]* | :heavy_minus_sign: | Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`. | | | `discount_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Discount code to apply to the checkout. | | | `allow_trial` | *OptionalNullable[Literal[False]]* | :heavy_minus_sign: | Disable the trial period for the checkout session. It's mainly useful when the trial is blocked because the customer already redeemed one. | | | `confirmation_token_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the Stripe confirmation token. Required for fixed prices and custom prices. | | \ No newline at end of file diff --git a/docs/models/checkoutforbiddenerror.md b/docs/models/checkoutforbiddenerror.md index 981e72ef..9c07039b 100644 --- a/docs/models/checkoutforbiddenerror.md +++ b/docs/models/checkoutforbiddenerror.md @@ -27,3 +27,9 @@ value: models.PaymentNotReady = /* values here */ value: models.TrialAlreadyRedeemed = /* values here */ ``` +### `models.DiscountRedemptionLimitReached` + +```python +value: models.DiscountRedemptionLimitReached = /* values here */ +``` + diff --git a/docs/models/checkoutpublic.md b/docs/models/checkoutpublic.md index 21f44dc1..719f2abd 100644 --- a/docs/models/checkoutpublic.md +++ b/docs/models/checkoutpublic.md @@ -53,6 +53,7 @@ Checkout session data retrieved using the client secret. | `customer_billing_address` | [Nullable[models.Address]](../models/address.md) | :heavy_check_mark: | N/A | | `customer_tax_id` | *Nullable[str]* | :heavy_check_mark: | N/A | | `locale` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `payment_method_type` | *Nullable[str]* | :heavy_check_mark: | Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`. | | `payment_processor_metadata` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `billing_address_fields` | [models.CheckoutBillingAddressFields](../models/checkoutbillingaddressfields.md) | :heavy_check_mark: | N/A | | `products` | List[[models.CheckoutProduct](../models/checkoutproduct.md)] | :heavy_check_mark: | List of products available to select. | diff --git a/docs/models/checkoutpublicconfirmed.md b/docs/models/checkoutpublicconfirmed.md index ace486f7..a5ea6f8d 100644 --- a/docs/models/checkoutpublicconfirmed.md +++ b/docs/models/checkoutpublicconfirmed.md @@ -56,6 +56,7 @@ right after the checkout. | `customer_billing_address` | [Nullable[models.Address]](../models/address.md) | :heavy_check_mark: | N/A | | `customer_tax_id` | *Nullable[str]* | :heavy_check_mark: | N/A | | `locale` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `payment_method_type` | *Nullable[str]* | :heavy_check_mark: | Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`. | | `payment_processor_metadata` | Dict[str, *str*] | :heavy_check_mark: | N/A | | `billing_address_fields` | [models.CheckoutBillingAddressFields](../models/checkoutbillingaddressfields.md) | :heavy_check_mark: | N/A | | `products` | List[[models.CheckoutProduct](../models/checkoutproduct.md)] | :heavy_check_mark: | List of products available to select. | diff --git a/docs/models/checkoutupdatepublic.md b/docs/models/checkoutupdatepublic.md index 8a9ba5cb..81c5b63a 100644 --- a/docs/models/checkoutupdatepublic.md +++ b/docs/models/checkoutupdatepublic.md @@ -19,5 +19,6 @@ Update an existing checkout session using the client secret. | `customer_billing_address` | [OptionalNullable[models.AddressInput]](../models/addressinput.md) | :heavy_minus_sign: | N/A | | | `customer_tax_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | | `locale` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | en | +| `payment_method_type` | *OptionalNullable[str]* | :heavy_minus_sign: | Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`. | | | `discount_code` | *OptionalNullable[str]* | :heavy_minus_sign: | Discount code to apply to the checkout. | | | `allow_trial` | *OptionalNullable[Literal[False]]* | :heavy_minus_sign: | Disable the trial period for the checkout session. It's mainly useful when the trial is blocked because the customer already redeemed one. | | \ No newline at end of file diff --git a/docs/models/discountfixedcreate.md b/docs/models/discountfixedcreate.md index 65581976..cbb896da 100644 --- a/docs/models/discountfixedcreate.md +++ b/docs/models/discountfixedcreate.md @@ -13,6 +13,7 @@ Schema to create a fixed amount discount. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *OptionalNullable[int]* | :heavy_minus_sign: | Optional maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *OptionalNullable[int]* | :heavy_minus_sign: | Optional maximum number of times the discount can be redeemed by a single customer. | | | `products` | List[*str*] | :heavy_minus_sign: | N/A | | | `organization_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the organization owning the discount. **Required unless you use an organization token.** | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `type` | *Optional[Literal["fixed"]]* | :heavy_minus_sign: | N/A | | diff --git a/docs/models/discountfixedonceforeverduration.md b/docs/models/discountfixedonceforeverduration.md index 004b25fb..c2ebd2b3 100644 --- a/docs/models/discountfixedonceforeverduration.md +++ b/docs/models/discountfixedonceforeverduration.md @@ -21,6 +21,7 @@ Schema for a fixed amount discount that is applied once or forever. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `products` | List[[models.DiscountProduct](../models/discountproduct.md)] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/discountfixedonceforeverdurationbase.md b/docs/models/discountfixedonceforeverdurationbase.md index cb559818..560c27b1 100644 --- a/docs/models/discountfixedonceforeverdurationbase.md +++ b/docs/models/discountfixedonceforeverdurationbase.md @@ -19,5 +19,6 @@ | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | \ No newline at end of file diff --git a/docs/models/discountfixedrepeatduration.md b/docs/models/discountfixedrepeatduration.md index 045b1235..0b4e8178 100644 --- a/docs/models/discountfixedrepeatduration.md +++ b/docs/models/discountfixedrepeatduration.md @@ -23,6 +23,7 @@ for a certain number of months. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `products` | List[[models.DiscountProduct](../models/discountproduct.md)] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/discountfixedrepeatdurationbase.md b/docs/models/discountfixedrepeatdurationbase.md index 7dd34ea8..971e1c09 100644 --- a/docs/models/discountfixedrepeatdurationbase.md +++ b/docs/models/discountfixedrepeatdurationbase.md @@ -20,5 +20,6 @@ | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | \ No newline at end of file diff --git a/docs/models/discountpercentagecreate.md b/docs/models/discountpercentagecreate.md index 63d664ae..eda7a60c 100644 --- a/docs/models/discountpercentagecreate.md +++ b/docs/models/discountpercentagecreate.md @@ -13,6 +13,7 @@ Schema to create a percentage discount. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *OptionalNullable[int]* | :heavy_minus_sign: | Optional maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *OptionalNullable[int]* | :heavy_minus_sign: | Optional maximum number of times the discount can be redeemed by a single customer. | | | `products` | List[*str*] | :heavy_minus_sign: | N/A | | | `organization_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the organization owning the discount. **Required unless you use an organization token.** | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `type` | *Optional[Literal["percentage"]]* | :heavy_minus_sign: | N/A | | diff --git a/docs/models/discountpercentageonceforeverduration.md b/docs/models/discountpercentageonceforeverduration.md index 56274092..4121d99b 100644 --- a/docs/models/discountpercentageonceforeverduration.md +++ b/docs/models/discountpercentageonceforeverduration.md @@ -19,6 +19,7 @@ Schema for a percentage discount that is applied once or forever. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `products` | List[[models.DiscountProduct](../models/discountproduct.md)] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/discountpercentageonceforeverdurationbase.md b/docs/models/discountpercentageonceforeverdurationbase.md index 04fe4dd1..2b4397b3 100644 --- a/docs/models/discountpercentageonceforeverdurationbase.md +++ b/docs/models/discountpercentageonceforeverdurationbase.md @@ -17,5 +17,6 @@ | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | \ No newline at end of file diff --git a/docs/models/discountpercentagerepeatduration.md b/docs/models/discountpercentagerepeatduration.md index fcad3047..6f331f48 100644 --- a/docs/models/discountpercentagerepeatduration.md +++ b/docs/models/discountpercentagerepeatduration.md @@ -21,6 +21,7 @@ for a certain number of months. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | | `products` | List[[models.DiscountProduct](../models/discountproduct.md)] | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/discountpercentagerepeatdurationbase.md b/docs/models/discountpercentagerepeatdurationbase.md index 158c6b6c..f7da30b7 100644 --- a/docs/models/discountpercentagerepeatdurationbase.md +++ b/docs/models/discountpercentagerepeatdurationbase.md @@ -18,5 +18,6 @@ | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is redeemable. | | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Timestamp after which the discount is no longer redeemable. | | | `max_redemptions` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed. | | +| `max_redemptions_per_customer` | *Nullable[int]* | :heavy_check_mark: | Maximum number of times the discount can be redeemed by a single customer. | | | `redemptions_count` | *int* | :heavy_check_mark: | Number of times the discount has been redeemed. | | | `organization_id` | *str* | :heavy_check_mark: | The organization ID. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | \ No newline at end of file diff --git a/docs/models/discountredemptionlimitreached.md b/docs/models/discountredemptionlimitreached.md new file mode 100644 index 00000000..3445e0f5 --- /dev/null +++ b/docs/models/discountredemptionlimitreached.md @@ -0,0 +1,9 @@ +# DiscountRedemptionLimitReached + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `error` | *Literal["DiscountRedemptionLimitReached"]* | :heavy_check_mark: | N/A | DiscountRedemptionLimitReached | +| `detail` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/discountupdate.md b/docs/models/discountupdate.md index 9d84696f..46e55dfb 100644 --- a/docs/models/discountupdate.md +++ b/docs/models/discountupdate.md @@ -13,6 +13,7 @@ Schema to update a discount. | `starts_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional timestamp after which the discount is redeemable. | | `ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Optional timestamp after which the discount is no longer redeemable. | | `max_redemptions` | *OptionalNullable[int]* | :heavy_minus_sign: | Optional maximum number of times the discount can be redeemed. | +| `max_redemptions_per_customer` | *OptionalNullable[int]* | :heavy_minus_sign: | Optional maximum number of times the discount can be redeemed by a single customer. | | `duration` | [OptionalNullable[models.DiscountDuration]](../models/discountduration.md) | :heavy_minus_sign: | N/A | | `duration_in_months` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | `type` | [OptionalNullable[models.DiscountType]](../models/discounttype.md) | :heavy_minus_sign: | N/A | diff --git a/docs/models/disputeslistqueryparamstatusfilter.md b/docs/models/disputeslistqueryparamstatusfilter.md new file mode 100644 index 00000000..a6500eca --- /dev/null +++ b/docs/models/disputeslistqueryparamstatusfilter.md @@ -0,0 +1,19 @@ +# DisputesListQueryParamStatusFilter + +Filter by dispute status. + + +## Supported Types + +### `models.DisputeStatus` + +```python +value: models.DisputeStatus = /* values here */ +``` + +### `List[models.DisputeStatus]` + +```python +value: List[models.DisputeStatus] = /* values here */ +``` + diff --git a/docs/models/disputeslistrequest.md b/docs/models/disputeslistrequest.md index 964efb6f..d5347448 100644 --- a/docs/models/disputeslistrequest.md +++ b/docs/models/disputeslistrequest.md @@ -7,7 +7,7 @@ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `organization_id` | [OptionalNullable[models.DisputesListQueryParamOrganizationIDFilter]](../models/disputeslistqueryparamorganizationidfilter.md) | :heavy_minus_sign: | Filter by organization ID. | | `order_id` | [OptionalNullable[models.QueryParamOrderIDFilter]](../models/queryparamorderidfilter.md) | :heavy_minus_sign: | Filter by order ID. | -| `status` | [OptionalNullable[models.QueryParamStatusFilter]](../models/queryparamstatusfilter.md) | :heavy_minus_sign: | Filter by dispute status. | +| `status` | [OptionalNullable[models.DisputesListQueryParamStatusFilter]](../models/disputeslistqueryparamstatusfilter.md) | :heavy_minus_sign: | Filter by dispute status. | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | List[[models.DisputeSortProperty](../models/disputesortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | \ No newline at end of file diff --git a/docs/models/orderslistrequest.md b/docs/models/orderslistrequest.md index a0789ffb..9b90c96e 100644 --- a/docs/models/orderslistrequest.md +++ b/docs/models/orderslistrequest.md @@ -13,6 +13,9 @@ | `external_customer_id` | [OptionalNullable[models.OrdersListQueryParamExternalCustomerIDFilter]](../models/orderslistqueryparamexternalcustomeridfilter.md) | :heavy_minus_sign: | Filter by customer external ID. | | `checkout_id` | [OptionalNullable[models.CheckoutIDFilter]](../models/checkoutidfilter.md) | :heavy_minus_sign: | Filter by checkout ID. | | `subscription_id` | [OptionalNullable[models.SubscriptionIDFilter]](../models/subscriptionidfilter.md) | :heavy_minus_sign: | Filter by subscription ID. | +| `status` | [OptionalNullable[models.QueryParamStatusFilter]](../models/queryparamstatusfilter.md) | :heavy_minus_sign: | Filter by order status. | +| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include orders created after this date | +| `created_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include orders created before this date | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | List[[models.OrderSortProperty](../models/ordersortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | diff --git a/docs/models/orderunvoidedevent.md b/docs/models/orderunvoidedevent.md new file mode 100644 index 00000000..b6dfea7b --- /dev/null +++ b/docs/models/orderunvoidedevent.md @@ -0,0 +1,23 @@ +# OrderUnvoidedEvent + +An event created by Polar when an order is unvoided. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `id` | *str* | :heavy_check_mark: | The ID of the object. | | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp of the event. | | +| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the event. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | +| `customer_id` | *Nullable[str]* | :heavy_check_mark: | ID of the customer in your Polar organization associated with the event. | | +| `customer` | [Nullable[models.Customer]](../models/customer.md) | :heavy_check_mark: | The customer associated with the event. | | +| `external_customer_id` | *Nullable[str]* | :heavy_check_mark: | ID of the customer in your system associated with the event. | | +| `member_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the member within the customer's organization who performed the action inside B2B. | | +| `external_member_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the member in your system within the customer's organization who performed the action inside B2B. | | +| `child_count` | *Optional[int]* | :heavy_minus_sign: | Number of direct child events linked to this event. | | +| `parent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the parent event. | | +| `label` | *str* | :heavy_check_mark: | Human readable label of the event type. | | +| `source` | *Literal["system"]* | :heavy_check_mark: | The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API. | | +| `name` | *Literal["order.unvoided"]* | :heavy_check_mark: | The name of the event. | | +| `metadata` | [models.OrderUnvoidedMetadata](../models/orderunvoidedmetadata.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/orderunvoidedmetadata.md b/docs/models/orderunvoidedmetadata.md new file mode 100644 index 00000000..d007e83b --- /dev/null +++ b/docs/models/orderunvoidedmetadata.md @@ -0,0 +1,10 @@ +# OrderUnvoidedMetadata + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `order_id` | *str* | :heavy_check_mark: | N/A | +| `amount` | *int* | :heavy_check_mark: | N/A | +| `currency` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/organization.md b/docs/models/organization.md index 2bc029d5..ecf5eff7 100644 --- a/docs/models/organization.md +++ b/docs/models/organization.md @@ -3,29 +3,32 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. | -| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. | -| `id` | *str* | :heavy_check_mark: | The ID of the object. | -| `name` | *str* | :heavy_check_mark: | Organization name shown in checkout, customer portal, emails etc. | -| `slug` | *str* | :heavy_check_mark: | Unique organization slug in checkout, customer portal and credit card statements. | -| `avatar_url` | *Nullable[str]* | :heavy_check_mark: | Avatar URL shown in checkout, customer portal, emails etc. | -| `proration_behavior` | [models.SubscriptionProrationBehavior](../models/subscriptionprorationbehavior.md) | :heavy_check_mark: | N/A | -| `allow_customer_updates` | *bool* | :heavy_check_mark: | Whether customers can update their subscriptions from the customer portal. | -| `email` | *Nullable[str]* | :heavy_check_mark: | Public support email. | -| `website` | *Nullable[str]* | :heavy_check_mark: | Official website of the organization. | -| `socials` | List[[models.OrganizationSocialLink](../models/organizationsociallink.md)] | :heavy_check_mark: | Links to social profiles. | -| `status` | [models.OrganizationStatus](../models/organizationstatus.md) | :heavy_check_mark: | N/A | -| `details_submitted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the business details were submitted for review. | -| `sso_enforced` | *bool* | :heavy_check_mark: | Whether members must access this organization through its SSO connection. | -| `default_presentment_currency` | *str* | :heavy_check_mark: | Default presentment currency. Used as fallback in checkout and customer portal, if the customer's local currency is not available. | -| `default_tax_behavior` | [models.TaxBehaviorOption](../models/taxbehavioroption.md) | :heavy_check_mark: | N/A | -| `feature_settings` | [Nullable[models.OrganizationFeatureSettings]](../models/organizationfeaturesettings.md) | :heavy_check_mark: | Organization feature settings | -| `subscription_settings` | [models.OrganizationSubscriptionSettings](../models/organizationsubscriptionsettings.md) | :heavy_check_mark: | N/A | -| `customer_email_settings` | [models.OrganizationCustomerEmailSettings](../models/organizationcustomeremailsettings.md) | :heavy_check_mark: | N/A | -| `customer_portal_settings` | [models.OrganizationCustomerPortalSettings](../models/organizationcustomerportalsettings.md) | :heavy_check_mark: | N/A | -| `country` | [OptionalNullable[models.CountryAlpha2]](../models/countryalpha2.md) | :heavy_minus_sign: | Two-letter country code (ISO 3166-1 alpha-2). | -| `account_id` | *Nullable[str]* | :heavy_check_mark: | ID of the transactions account. | -| `payout_account_id` | *Nullable[str]* | :heavy_check_mark: | ID of the payout account. | -| `capabilities` | [models.OrganizationCapabilities](../models/organizationcapabilities.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. | +| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. | +| `id` | *str* | :heavy_check_mark: | The ID of the object. | +| `name` | *str* | :heavy_check_mark: | Organization name shown in checkout, customer portal, emails etc. | +| `slug` | *str* | :heavy_check_mark: | Unique organization slug in checkout, customer portal and credit card statements. | +| `avatar_url` | *Nullable[str]* | :heavy_check_mark: | Avatar URL shown in checkout, customer portal, emails etc. | +| `proration_behavior` | [models.SubscriptionProrationBehavior](../models/subscriptionprorationbehavior.md) | :heavy_check_mark: | N/A | +| `allow_customer_updates` | *bool* | :heavy_check_mark: | Whether customers can update their subscriptions from the customer portal. | +| `email` | *Nullable[str]* | :heavy_check_mark: | Public support email. | +| `website` | *Nullable[str]* | :heavy_check_mark: | Official website of the organization. | +| `socials` | List[[models.OrganizationSocialLink](../models/organizationsociallink.md)] | :heavy_check_mark: | Links to social profiles. | +| `status` | [models.OrganizationStatus](../models/organizationstatus.md) | :heavy_check_mark: | N/A | +| `details_submitted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When the business details were submitted for review. | +| `onboarding_resubmission_requested_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | When Polar requested that the organization review and resubmit its onboarding information, if applicable. | +| `sso_enforced` | *bool* | :heavy_check_mark: | Whether members must access this organization through its SSO connection. | +| `default_presentment_currency` | *str* | :heavy_check_mark: | Default presentment currency. Used as fallback in checkout and customer portal, if the customer's local currency is not available. | +| `default_tax_behavior` | [models.TaxBehaviorOption](../models/taxbehavioroption.md) | :heavy_check_mark: | N/A | +| `feature_settings` | [Nullable[models.OrganizationFeatureSettings]](../models/organizationfeaturesettings.md) | :heavy_check_mark: | Organization feature settings | +| `subscription_settings` | [models.OrganizationSubscriptionSettings](../models/organizationsubscriptionsettings.md) | :heavy_check_mark: | N/A | +| `customer_email_settings` | [models.OrganizationCustomerEmailSettings](../models/organizationcustomeremailsettings.md) | :heavy_check_mark: | N/A | +| `customer_portal_settings` | [models.OrganizationCustomerPortalSettings](../models/organizationcustomerportalsettings.md) | :heavy_check_mark: | N/A | +| `embed_hosts` | List[*str*] | :heavy_check_mark: | Hosts allowed to embed this organization's checkout. An entry is a host and an optional port, without a scheme: HTTPS is always allowed, and HTTP too for local hosts — `localhost`, any `.localhost` or `.local` name, and loopback or private addresses. `*.example.com` matches any subdomain, but not `example.com` itself. An app origin such as `chrome-extension://abcdef` carries its scheme, having no host to match on. | +| `embed_hosts_enforced` | *bool* | :heavy_check_mark: | Whether an embedding page's origin must match `embed_hosts`. Organizations that have not configured a list yet embed unchecked until the allowlist is enforced for everyone. | +| `country` | [OptionalNullable[models.CountryAlpha2]](../models/countryalpha2.md) | :heavy_minus_sign: | Two-letter country code (ISO 3166-1 alpha-2). | +| `account_id` | *Nullable[str]* | :heavy_check_mark: | ID of the transactions account. | +| `payout_account_id` | *Nullable[str]* | :heavy_check_mark: | ID of the payout account. | +| `capabilities` | [models.OrganizationCapabilities](../models/organizationcapabilities.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/organizationcustomeremailsettings.md b/docs/models/organizationcustomeremailsettings.md index 705e78de..0a109c1a 100644 --- a/docs/models/organizationcustomeremailsettings.md +++ b/docs/models/organizationcustomeremailsettings.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | `order_confirmation` | *bool* | :heavy_check_mark: | N/A | +| `payment_method_expiration_reminder` | *bool* | :heavy_check_mark: | N/A | | `subscription_cancellation` | *bool* | :heavy_check_mark: | N/A | | `subscription_confirmation` | *bool* | :heavy_check_mark: | N/A | | `subscription_cycled` | *bool* | :heavy_check_mark: | N/A | diff --git a/docs/models/organizationupdate.md b/docs/models/organizationupdate.md index 1ab4e184..931e8a72 100644 --- a/docs/models/organizationupdate.md +++ b/docs/models/organizationupdate.md @@ -3,19 +3,20 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `avatar_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Public support email. | -| `website` | *OptionalNullable[str]* | :heavy_minus_sign: | Official website of the organization. | -| `socials` | List[[models.OrganizationSocialLink](../models/organizationsociallink.md)] | :heavy_minus_sign: | Links to social profiles. | -| `details` | [OptionalNullable[models.OrganizationDetails]](../models/organizationdetails.md) | :heavy_minus_sign: | Additional, private, business details Polar needs about active organizations for compliance (KYC). | -| `country` | [OptionalNullable[models.CountryCountryAlpha2Input]](../models/countrycountryalpha2input.md) | :heavy_minus_sign: | Two-letter country code (ISO 3166-1 alpha-2). | -| `feature_settings` | [OptionalNullable[models.OrganizationFeatureSettingsUpdate]](../models/organizationfeaturesettingsupdate.md) | :heavy_minus_sign: | N/A | -| `subscription_settings` | [OptionalNullable[models.OrganizationSubscriptionSettings]](../models/organizationsubscriptionsettings.md) | :heavy_minus_sign: | N/A | -| `customer_email_settings` | [OptionalNullable[models.OrganizationCustomerEmailSettings]](../models/organizationcustomeremailsettings.md) | :heavy_minus_sign: | N/A | -| `customer_portal_settings` | [OptionalNullable[models.OrganizationCustomerPortalSettings]](../models/organizationcustomerportalsettings.md) | :heavy_minus_sign: | N/A | -| `default_presentment_currency` | [OptionalNullable[models.PresentmentCurrency]](../models/presentmentcurrency.md) | :heavy_minus_sign: | Default presentment currency for the organization | -| `default_tax_behavior` | [OptionalNullable[models.TaxBehaviorOption]](../models/taxbehavioroption.md) | :heavy_minus_sign: | Default tax behavior applied on products. | -| `sso_enforced` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether members must access this organization through its SSO connection. Turning this on requires an active SSO session for this organization and at least one enabled SSO connection. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | +| `avatar_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | +| `email` | *OptionalNullable[str]* | :heavy_minus_sign: | Public support email. | | +| `website` | *OptionalNullable[str]* | :heavy_minus_sign: | Official website of the organization. | | +| `socials` | List[[models.OrganizationSocialLink](../models/organizationsociallink.md)] | :heavy_minus_sign: | Links to social profiles. | | +| `details` | [OptionalNullable[models.OrganizationDetails]](../models/organizationdetails.md) | :heavy_minus_sign: | Additional, private, business details Polar needs about active organizations for compliance (KYC). | | +| `country` | [OptionalNullable[models.CountryCountryAlpha2Input]](../models/countrycountryalpha2input.md) | :heavy_minus_sign: | Two-letter country code (ISO 3166-1 alpha-2). | | +| `feature_settings` | [OptionalNullable[models.OrganizationFeatureSettingsUpdate]](../models/organizationfeaturesettingsupdate.md) | :heavy_minus_sign: | N/A | | +| `subscription_settings` | [OptionalNullable[models.OrganizationSubscriptionSettings]](../models/organizationsubscriptionsettings.md) | :heavy_minus_sign: | N/A | | +| `customer_email_settings` | [OptionalNullable[models.OrganizationCustomerEmailSettings]](../models/organizationcustomeremailsettings.md) | :heavy_minus_sign: | N/A | | +| `customer_portal_settings` | [OptionalNullable[models.OrganizationCustomerPortalSettings]](../models/organizationcustomerportalsettings.md) | :heavy_minus_sign: | N/A | | +| `embed_hosts` | List[*str*] | :heavy_minus_sign: | N/A | [
"example.com",
"*.example.com",
"localhost:3000"
] | +| `default_presentment_currency` | [OptionalNullable[models.PresentmentCurrency]](../models/presentmentcurrency.md) | :heavy_minus_sign: | Default presentment currency for the organization | | +| `default_tax_behavior` | [OptionalNullable[models.TaxBehaviorOption]](../models/taxbehavioroption.md) | :heavy_minus_sign: | Default tax behavior applied on products. | | +| `sso_enforced` | *OptionalNullable[bool]* | :heavy_minus_sign: | Whether members must access this organization through its SSO connection. Turning this on requires an active SSO session for this organization and at least one enabled SSO connection. | | \ No newline at end of file diff --git a/docs/models/queryparamstatusfilter.md b/docs/models/queryparamstatusfilter.md index c060ed4e..357291d2 100644 --- a/docs/models/queryparamstatusfilter.md +++ b/docs/models/queryparamstatusfilter.md @@ -1,19 +1,19 @@ # QueryParamStatusFilter -Filter by dispute status. +Filter by order status. ## Supported Types -### `models.DisputeStatus` +### `models.OrderStatus` ```python -value: models.DisputeStatus = /* values here */ +value: models.OrderStatus = /* values here */ ``` -### `List[models.DisputeStatus]` +### `List[models.OrderStatus]` ```python -value: List[models.DisputeStatus] = /* values here */ +value: List[models.OrderStatus] = /* values here */ ``` diff --git a/docs/models/subscriptionreinstatedevent.md b/docs/models/subscriptionreinstatedevent.md new file mode 100644 index 00000000..bfc5b24c --- /dev/null +++ b/docs/models/subscriptionreinstatedevent.md @@ -0,0 +1,23 @@ +# SubscriptionReinstatedEvent + +An event created by Polar when a canceled subscription is reinstated. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `id` | *str* | :heavy_check_mark: | The ID of the object. | | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | The timestamp of the event. | | +| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the event. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 | +| `customer_id` | *Nullable[str]* | :heavy_check_mark: | ID of the customer in your Polar organization associated with the event. | | +| `customer` | [Nullable[models.Customer]](../models/customer.md) | :heavy_check_mark: | The customer associated with the event. | | +| `external_customer_id` | *Nullable[str]* | :heavy_check_mark: | ID of the customer in your system associated with the event. | | +| `member_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the member within the customer's organization who performed the action inside B2B. | | +| `external_member_id` | *OptionalNullable[str]* | :heavy_minus_sign: | ID of the member in your system within the customer's organization who performed the action inside B2B. | | +| `child_count` | *Optional[int]* | :heavy_minus_sign: | Number of direct child events linked to this event. | | +| `parent_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the parent event. | | +| `label` | *str* | :heavy_check_mark: | Human readable label of the event type. | | +| `source` | *Literal["system"]* | :heavy_check_mark: | The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API. | | +| `name` | *Literal["subscription.reinstated"]* | :heavy_check_mark: | The name of the event. | | +| `metadata` | [models.SubscriptionReinstatedMetadata](../models/subscriptionreinstatedmetadata.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/subscriptionreinstatedmetadata.md b/docs/models/subscriptionreinstatedmetadata.md new file mode 100644 index 00000000..73ce1a17 --- /dev/null +++ b/docs/models/subscriptionreinstatedmetadata.md @@ -0,0 +1,13 @@ +# SubscriptionReinstatedMetadata + + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `subscription_id` | *str* | :heavy_check_mark: | N/A | +| `product_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `amount` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `currency` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `recurring_interval` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `recurring_interval_count` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/subscriptionslistrequest.md b/docs/models/subscriptionslistrequest.md index 7cf372d2..6009229e 100644 --- a/docs/models/subscriptionslistrequest.md +++ b/docs/models/subscriptionslistrequest.md @@ -16,6 +16,8 @@ | `customer_cancellation_reason` | [OptionalNullable[models.CustomerCancellationReasonFilter]](../models/customercancellationreasonfilter.md) | :heavy_minus_sign: | Filter by customer cancellation reason. | | `canceled_at_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Filter by cancellation date (after or equal to). | | `canceled_at_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Filter by cancellation date (before or equal to). | +| `started_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include subscriptions started after this date. | +| `started_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include subscriptions started before this date. | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | List[[models.SubscriptionSortProperty](../models/subscriptionsortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | diff --git a/docs/models/systemevent.md b/docs/models/systemevent.md index 743d3340..3c599001 100644 --- a/docs/models/systemevent.md +++ b/docs/models/systemevent.md @@ -111,6 +111,12 @@ value: models.OrderPaidEvent = /* values here */ value: models.OrderRefundedEvent = /* values here */ ``` +### `models.OrderUnvoidedEvent` + +```python +value: models.OrderUnvoidedEvent = /* values here */ +``` + ### `models.OrderVoidedEvent` ```python @@ -165,6 +171,12 @@ value: models.SubscriptionProductUpdatedEvent = /* values here */ value: models.SubscriptionReactivatedEvent = /* values here */ ``` +### `models.SubscriptionReinstatedEvent` + +```python +value: models.SubscriptionReinstatedEvent = /* values here */ +``` + ### `models.SubscriptionResumedEvent` ```python diff --git a/docs/models/webhookdiscountcreatedpayload.md b/docs/models/webhookdiscountcreatedpayload.md new file mode 100644 index 00000000..fd6f3670 --- /dev/null +++ b/docs/models/webhookdiscountcreatedpayload.md @@ -0,0 +1,14 @@ +# WebhookDiscountCreatedPayload + +Sent when a new discount is created. + +**Discord & Slack support:** Basic + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `type` | *Literal["discount.created"]* | :heavy_check_mark: | N/A | discount.created | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | +| `data` | [models.Discount](../models/discount.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/webhookdiscountdeletedpayload.md b/docs/models/webhookdiscountdeletedpayload.md new file mode 100644 index 00000000..8a168d5d --- /dev/null +++ b/docs/models/webhookdiscountdeletedpayload.md @@ -0,0 +1,14 @@ +# WebhookDiscountDeletedPayload + +Sent when a discount is deleted. + +**Discord & Slack support:** Basic + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `type` | *Literal["discount.deleted"]* | :heavy_check_mark: | N/A | discount.deleted | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | +| `data` | [models.Discount](../models/discount.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/webhookdiscountupdatedpayload.md b/docs/models/webhookdiscountupdatedpayload.md new file mode 100644 index 00000000..853f0db9 --- /dev/null +++ b/docs/models/webhookdiscountupdatedpayload.md @@ -0,0 +1,14 @@ +# WebhookDiscountUpdatedPayload + +Sent when a discount is updated. + +**Discord & Slack support:** Basic + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `type` | *Literal["discount.updated"]* | :heavy_check_mark: | N/A | discount.updated | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | +| `data` | [models.Discount](../models/discount.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/webhookeventtype.md b/docs/models/webhookeventtype.md index d429bca4..c0126c4a 100644 --- a/docs/models/webhookeventtype.md +++ b/docs/models/webhookeventtype.md @@ -27,6 +27,7 @@ | `SUBSCRIPTION_ACTIVE` | subscription.active | | `SUBSCRIPTION_CANCELED` | subscription.canceled | | `SUBSCRIPTION_UNCANCELED` | subscription.uncanceled | +| `SUBSCRIPTION_CYCLED` | subscription.cycled | | `SUBSCRIPTION_REVOKED` | subscription.revoked | | `SUBSCRIPTION_PAST_DUE` | subscription.past_due | | `SUBSCRIPTION_PAUSED` | subscription.paused | @@ -35,6 +36,9 @@ | `REFUND_UPDATED` | refund.updated | | `PRODUCT_CREATED` | product.created | | `PRODUCT_UPDATED` | product.updated | +| `DISCOUNT_CREATED` | discount.created | +| `DISCOUNT_UPDATED` | discount.updated | +| `DISCOUNT_DELETED` | discount.deleted | | `BENEFIT_CREATED` | benefit.created | | `BENEFIT_UPDATED` | benefit.updated | | `BENEFIT_GRANT_CREATED` | benefit_grant.created | diff --git a/docs/models/webhooksubscriptioncycledpayload.md b/docs/models/webhooksubscriptioncycledpayload.md new file mode 100644 index 00000000..02eebe9a --- /dev/null +++ b/docs/models/webhooksubscriptioncycledpayload.md @@ -0,0 +1,22 @@ +# WebhookSubscriptionCycledPayload + +Sent when a subscription enters a new billing period. + +The payload carries the new `current_period_start` and `current_period_end`. +It fires when the period rolls over, before the renewal order exists and +regardless of whether the renewal payment succeeds — listen to `order.paid` +if you need the payment. + +A trial converting to a paid subscription starts a new period, so it fires +there too. Read `status` to tell the two apart. + +**Discord & Slack support:** Basic + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `type` | *Literal["subscription.cycled"]* | :heavy_check_mark: | N/A | subscription.cycled | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | +| `data` | [models.Subscription](../models/subscription.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/webhooksubscriptionupdatedpayload.md b/docs/models/webhooksubscriptionupdatedpayload.md index 3621ab19..09724ae5 100644 --- a/docs/models/webhooksubscriptionupdatedpayload.md +++ b/docs/models/webhooksubscriptionupdatedpayload.md @@ -4,7 +4,7 @@ Sent when a subscription is updated. This event fires for all changes to the sub If you want more specific events, you can listen to `subscription.active`, `subscription.canceled`, `subscription.past_due`, and `subscription.revoked`. -To listen specifically for renewals, you can listen to `order.created` events and check the `billing_reason` field. +To listen specifically for renewals, listen to `subscription.cycled`. **Discord & Slack support:** On cancellation, past due, and revocation. Renewals are skipped. diff --git a/docs/sdks/checkouts/README.md b/docs/sdks/checkouts/README.md index 51a3db2f..6c3f1f1d 100644 --- a/docs/sdks/checkouts/README.md +++ b/docs/sdks/checkouts/README.md @@ -213,6 +213,7 @@ with Polar( | models.NotOpenCheckout | 403 | application/json | | models.PaymentNotReady | 403 | application/json | | models.TrialAlreadyRedeemed | 403 | application/json | +| models.DiscountRedemptionLimitReached | 403 | application/json | | models.ResourceNotFound | 404 | application/json | | models.HTTPValidationError | 422 | application/json | | models.SDKError | 4XX, 5XX | \*/\* | @@ -302,6 +303,7 @@ with Polar() as polar: | models.NotOpenCheckout | 403 | application/json | | models.PaymentNotReady | 403 | application/json | | models.TrialAlreadyRedeemed | 403 | application/json | +| models.DiscountRedemptionLimitReached | 403 | application/json | | models.ResourceNotFound | 404 | application/json | | models.ExpiredCheckoutError | 410 | application/json | | models.HTTPValidationError | 422 | application/json | @@ -360,6 +362,7 @@ with Polar( | models.NotOpenCheckout | 403 | application/json | | models.PaymentNotReady | 403 | application/json | | models.TrialAlreadyRedeemed | 403 | application/json | +| models.DiscountRedemptionLimitReached | 403 | application/json | | models.ResourceNotFound | 404 | application/json | | models.ExpiredCheckoutError | 410 | application/json | | models.HTTPValidationError | 422 | application/json | diff --git a/docs/sdks/disputes/README.md b/docs/sdks/disputes/README.md index d2208d00..162e4dd2 100644 --- a/docs/sdks/disputes/README.md +++ b/docs/sdks/disputes/README.md @@ -41,7 +41,7 @@ with Polar( | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `organization_id` | [OptionalNullable[models.DisputesListQueryParamOrganizationIDFilter]](../../models/disputeslistqueryparamorganizationidfilter.md) | :heavy_minus_sign: | Filter by organization ID. | | `order_id` | [OptionalNullable[models.QueryParamOrderIDFilter]](../../models/queryparamorderidfilter.md) | :heavy_minus_sign: | Filter by order ID. | -| `status` | [OptionalNullable[models.QueryParamStatusFilter]](../../models/queryparamstatusfilter.md) | :heavy_minus_sign: | Filter by dispute status. | +| `status` | [OptionalNullable[models.DisputesListQueryParamStatusFilter]](../../models/disputeslistqueryparamstatusfilter.md) | :heavy_minus_sign: | Filter by dispute status. | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | List[[models.DisputeSortProperty](../../models/disputesortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index f6490ac0..10fd15da 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -53,6 +53,9 @@ with Polar( | `external_customer_id` | [OptionalNullable[models.OrdersListQueryParamExternalCustomerIDFilter]](../../models/orderslistqueryparamexternalcustomeridfilter.md) | :heavy_minus_sign: | Filter by customer external ID. | | `checkout_id` | [OptionalNullable[models.CheckoutIDFilter]](../../models/checkoutidfilter.md) | :heavy_minus_sign: | Filter by checkout ID. | | `subscription_id` | [OptionalNullable[models.SubscriptionIDFilter]](../../models/subscriptionidfilter.md) | :heavy_minus_sign: | Filter by subscription ID. | +| `status` | [OptionalNullable[models.QueryParamStatusFilter]](../../models/queryparamstatusfilter.md) | :heavy_minus_sign: | Filter by order status. | +| `created_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include orders created after this date | +| `created_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include orders created before this date | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | List[[models.OrderSortProperty](../../models/ordersortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 550f39e1..44f7236e 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -163,7 +163,13 @@ with Polar( access_token="", ) as polar: - res = polar.organizations.update(id="1dbfc517-0bbf-4301-9ba8-555ca42b9737", organization_update={}) + res = polar.organizations.update(id="1dbfc517-0bbf-4301-9ba8-555ca42b9737", organization_update={ + "embed_hosts": [ + "example.com", + "*.example.com", + "localhost:3000", + ], + }) # Handle response print(res) diff --git a/docs/sdks/subscriptions/README.md b/docs/sdks/subscriptions/README.md index fe3c574e..960b31f0 100644 --- a/docs/sdks/subscriptions/README.md +++ b/docs/sdks/subscriptions/README.md @@ -53,6 +53,8 @@ with Polar( | `customer_cancellation_reason` | [OptionalNullable[models.CustomerCancellationReasonFilter]](../../models/customercancellationreasonfilter.md) | :heavy_minus_sign: | Filter by customer cancellation reason. | | `canceled_at_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Filter by cancellation date (after or equal to). | | `canceled_at_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Filter by cancellation date (before or equal to). | +| `started_after` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include subscriptions started after this date. | +| `started_before` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Only include subscriptions started before this date. | | `page` | *Optional[int]* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *Optional[int]* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | List[[models.SubscriptionSortProperty](../../models/subscriptionsortproperty.md)] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | diff --git a/pyproject.toml b/pyproject.toml index 60bba62a..0f997e10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "polar-sdk" -version = "0.32.0" +version = "0.32.1" description = "Polar SDK for Python" authors = [{ name = "Polar" },] readme = "README-PYPI.md" diff --git a/src/polar_sdk/_version.py b/src/polar_sdk/_version.py index 78a05afd..22ac49dd 100644 --- a/src/polar_sdk/_version.py +++ b/src/polar_sdk/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "polar-sdk" -__version__: str = "0.32.0" +__version__: str = "0.32.1" __openapi_doc_version__: str = "2026-04" __gen_version__: str = "2.737.0" -__user_agent__: str = "speakeasy-sdk/python 0.32.0 2.737.0 2026-04 polar-sdk" +__user_agent__: str = "speakeasy-sdk/python 0.32.1 2.737.0 2026-04 polar-sdk" try: if __package__ is not None: diff --git a/src/polar_sdk/disputes.py b/src/polar_sdk/disputes.py index 7d333086..43a66d9c 100644 --- a/src/polar_sdk/disputes.py +++ b/src/polar_sdk/disputes.py @@ -25,7 +25,10 @@ def list( ] ] = UNSET, status: OptionalNullable[ - Union[models.QueryParamStatusFilter, models.QueryParamStatusFilterTypedDict] + Union[ + models.DisputesListQueryParamStatusFilter, + models.DisputesListQueryParamStatusFilterTypedDict, + ] ] = UNSET, page: Optional[int] = 1, limit: Optional[int] = 10, @@ -171,7 +174,10 @@ async def list_async( ] ] = UNSET, status: OptionalNullable[ - Union[models.QueryParamStatusFilter, models.QueryParamStatusFilterTypedDict] + Union[ + models.DisputesListQueryParamStatusFilter, + models.DisputesListQueryParamStatusFilterTypedDict, + ] ] = UNSET, page: Optional[int] = 1, limit: Optional[int] = 10, diff --git a/src/polar_sdk/models/__init__.py b/src/polar_sdk/models/__init__.py index e271ba24..2ab65ae6 100644 --- a/src/polar_sdk/models/__init__.py +++ b/src/polar_sdk/models/__init__.py @@ -1633,6 +1633,10 @@ DiscountPercentageRepeatDurationBaseTypedDict, ) from .discountproduct import DiscountProduct, DiscountProductTypedDict + from .discountredemptionlimitreached import ( + DiscountRedemptionLimitReached, + DiscountRedemptionLimitReachedData, + ) from .discounts_deleteop import ( DiscountsDeleteRequest, DiscountsDeleteRequestTypedDict, @@ -1671,14 +1675,14 @@ from .disputes_listop import ( DisputesListQueryParamOrganizationIDFilter, DisputesListQueryParamOrganizationIDFilterTypedDict, + DisputesListQueryParamStatusFilter, + DisputesListQueryParamStatusFilterTypedDict, DisputesListRequest, DisputesListRequestTypedDict, DisputesListResponse, DisputesListResponseTypedDict, QueryParamOrderIDFilter, QueryParamOrderIDFilterTypedDict, - QueryParamStatusFilter, - QueryParamStatusFilterTypedDict, ) from .disputesortproperty import DisputeSortProperty from .disputestatus import DisputeStatus @@ -2447,6 +2451,11 @@ from .ordersortproperty import OrderSortProperty from .orderstatus import OrderStatus from .ordersubscription import OrderSubscription, OrderSubscriptionTypedDict + from .orderunvoidedevent import OrderUnvoidedEvent, OrderUnvoidedEventTypedDict + from .orderunvoidedmetadata import ( + OrderUnvoidedMetadata, + OrderUnvoidedMetadataTypedDict, + ) from .orderupdate import OrderUpdate, OrderUpdateTypedDict from .ordervoidedevent import OrderVoidedEvent, OrderVoidedEventTypedDict from .ordervoidedmetadata import OrderVoidedMetadata, OrderVoidedMetadataTypedDict @@ -2860,6 +2869,14 @@ SubscriptionReactivatedMetadata, SubscriptionReactivatedMetadataTypedDict, ) + from .subscriptionreinstatedevent import ( + SubscriptionReinstatedEvent, + SubscriptionReinstatedEventTypedDict, + ) + from .subscriptionreinstatedmetadata import ( + SubscriptionReinstatedMetadata, + SubscriptionReinstatedMetadataTypedDict, + ) from .subscriptionresume import SubscriptionResume, SubscriptionResumeTypedDict from .subscriptionresumedevent import ( SubscriptionResumedEvent, @@ -2977,6 +2994,8 @@ QueryParamOrganizationIDFilterTypedDict, QueryParamProductIDFilter, QueryParamProductIDFilterTypedDict, + QueryParamStatusFilter, + QueryParamStatusFilterTypedDict, SourceFilter, SourceFilterTypedDict, StatusFilter, @@ -3146,6 +3165,18 @@ WebhookCustomerUpdatedPayloadTypedDict, ) from .webhookdelivery import WebhookDelivery, WebhookDeliveryTypedDict + from .webhookdiscountcreatedpayload import ( + WebhookDiscountCreatedPayload, + WebhookDiscountCreatedPayloadTypedDict, + ) + from .webhookdiscountdeletedpayload import ( + WebhookDiscountDeletedPayload, + WebhookDiscountDeletedPayloadTypedDict, + ) + from .webhookdiscountupdatedpayload import ( + WebhookDiscountUpdatedPayload, + WebhookDiscountUpdatedPayloadTypedDict, + ) from .webhookendpoint import WebhookEndpoint, WebhookEndpointTypedDict from .webhookendpointcreate import ( WebhookEndpointCreate, @@ -3257,6 +3288,10 @@ WebhookSubscriptionCreatedPayload, WebhookSubscriptionCreatedPayloadTypedDict, ) + from .webhooksubscriptioncycledpayload import ( + WebhookSubscriptionCycledPayload, + WebhookSubscriptionCycledPayloadTypedDict, + ) from .webhooksubscriptionpastduepayload import ( WebhookSubscriptionPastDuePayload, WebhookSubscriptionPastDuePayloadTypedDict, @@ -4423,6 +4458,8 @@ "DiscountPercentageRepeatDurationTypedDict", "DiscountProduct", "DiscountProductTypedDict", + "DiscountRedemptionLimitReached", + "DiscountRedemptionLimitReachedData", "DiscountSortProperty", "DiscountType", "DiscountTypedDict", @@ -4458,6 +4495,8 @@ "DisputesGetRequestTypedDict", "DisputesListQueryParamOrganizationIDFilter", "DisputesListQueryParamOrganizationIDFilterTypedDict", + "DisputesListQueryParamStatusFilter", + "DisputesListQueryParamStatusFilterTypedDict", "DisputesListRequest", "DisputesListRequestTypedDict", "DisputesListResponse", @@ -5049,6 +5088,10 @@ "OrderSubscription", "OrderSubscriptionTypedDict", "OrderTypedDict", + "OrderUnvoidedEvent", + "OrderUnvoidedEventTypedDict", + "OrderUnvoidedMetadata", + "OrderUnvoidedMetadataTypedDict", "OrderUpdate", "OrderUpdateTypedDict", "OrderVoidedEvent", @@ -5453,6 +5496,10 @@ "SubscriptionReactivatedEventTypedDict", "SubscriptionReactivatedMetadata", "SubscriptionReactivatedMetadataTypedDict", + "SubscriptionReinstatedEvent", + "SubscriptionReinstatedEventTypedDict", + "SubscriptionReinstatedMetadata", + "SubscriptionReinstatedMetadataTypedDict", "SubscriptionResume", "SubscriptionResumeTypedDict", "SubscriptionResumedEvent", @@ -5593,6 +5640,12 @@ "WebhookCustomerUpdatedPayloadTypedDict", "WebhookDelivery", "WebhookDeliveryTypedDict", + "WebhookDiscountCreatedPayload", + "WebhookDiscountCreatedPayloadTypedDict", + "WebhookDiscountDeletedPayload", + "WebhookDiscountDeletedPayloadTypedDict", + "WebhookDiscountUpdatedPayload", + "WebhookDiscountUpdatedPayloadTypedDict", "WebhookEndpoint", "WebhookEndpointCreate", "WebhookEndpointCreateTypedDict", @@ -5633,6 +5686,8 @@ "WebhookSubscriptionCanceledPayloadTypedDict", "WebhookSubscriptionCreatedPayload", "WebhookSubscriptionCreatedPayloadTypedDict", + "WebhookSubscriptionCycledPayload", + "WebhookSubscriptionCycledPayloadTypedDict", "WebhookSubscriptionPastDuePayload", "WebhookSubscriptionPastDuePayloadTypedDict", "WebhookSubscriptionPausedPayload", @@ -6728,6 +6783,8 @@ "DiscountPercentageRepeatDurationBaseTypedDict": ".discountpercentagerepeatdurationbase", "DiscountProduct": ".discountproduct", "DiscountProductTypedDict": ".discountproduct", + "DiscountRedemptionLimitReached": ".discountredemptionlimitreached", + "DiscountRedemptionLimitReachedData": ".discountredemptionlimitreached", "DiscountsDeleteRequest": ".discounts_deleteop", "DiscountsDeleteRequestTypedDict": ".discounts_deleteop", "DiscountsGetRequest": ".discounts_getop", @@ -6760,14 +6817,14 @@ "DisputesGetRequestTypedDict": ".disputes_getop", "DisputesListQueryParamOrganizationIDFilter": ".disputes_listop", "DisputesListQueryParamOrganizationIDFilterTypedDict": ".disputes_listop", + "DisputesListQueryParamStatusFilter": ".disputes_listop", + "DisputesListQueryParamStatusFilterTypedDict": ".disputes_listop", "DisputesListRequest": ".disputes_listop", "DisputesListRequestTypedDict": ".disputes_listop", "DisputesListResponse": ".disputes_listop", "DisputesListResponseTypedDict": ".disputes_listop", "QueryParamOrderIDFilter": ".disputes_listop", "QueryParamOrderIDFilterTypedDict": ".disputes_listop", - "QueryParamStatusFilter": ".disputes_listop", - "QueryParamStatusFilterTypedDict": ".disputes_listop", "DisputeSortProperty": ".disputesortproperty", "DisputeStatus": ".disputestatus", "DownloadableFileCreate": ".downloadablefilecreate", @@ -7424,6 +7481,10 @@ "OrderStatus": ".orderstatus", "OrderSubscription": ".ordersubscription", "OrderSubscriptionTypedDict": ".ordersubscription", + "OrderUnvoidedEvent": ".orderunvoidedevent", + "OrderUnvoidedEventTypedDict": ".orderunvoidedevent", + "OrderUnvoidedMetadata": ".orderunvoidedmetadata", + "OrderUnvoidedMetadataTypedDict": ".orderunvoidedmetadata", "OrderUpdate": ".orderupdate", "OrderUpdateTypedDict": ".orderupdate", "OrderVoidedEvent": ".ordervoidedevent", @@ -7740,6 +7801,10 @@ "SubscriptionReactivatedEventTypedDict": ".subscriptionreactivatedevent", "SubscriptionReactivatedMetadata": ".subscriptionreactivatedmetadata", "SubscriptionReactivatedMetadataTypedDict": ".subscriptionreactivatedmetadata", + "SubscriptionReinstatedEvent": ".subscriptionreinstatedevent", + "SubscriptionReinstatedEventTypedDict": ".subscriptionreinstatedevent", + "SubscriptionReinstatedMetadata": ".subscriptionreinstatedmetadata", + "SubscriptionReinstatedMetadataTypedDict": ".subscriptionreinstatedmetadata", "SubscriptionResume": ".subscriptionresume", "SubscriptionResumeTypedDict": ".subscriptionresume", "SubscriptionResumedEvent": ".subscriptionresumedevent", @@ -7844,6 +7909,8 @@ "QueryParamOrganizationIDFilterTypedDict": ".subscriptions_listop", "QueryParamProductIDFilter": ".subscriptions_listop", "QueryParamProductIDFilterTypedDict": ".subscriptions_listop", + "QueryParamStatusFilter": ".subscriptions_listop", + "QueryParamStatusFilterTypedDict": ".subscriptions_listop", "SourceFilter": ".subscriptions_listop", "SourceFilterTypedDict": ".subscriptions_listop", "StatusFilter": ".subscriptions_listop", @@ -7954,6 +8021,12 @@ "WebhookCustomerUpdatedPayloadTypedDict": ".webhookcustomerupdatedpayload", "WebhookDelivery": ".webhookdelivery", "WebhookDeliveryTypedDict": ".webhookdelivery", + "WebhookDiscountCreatedPayload": ".webhookdiscountcreatedpayload", + "WebhookDiscountCreatedPayloadTypedDict": ".webhookdiscountcreatedpayload", + "WebhookDiscountDeletedPayload": ".webhookdiscountdeletedpayload", + "WebhookDiscountDeletedPayloadTypedDict": ".webhookdiscountdeletedpayload", + "WebhookDiscountUpdatedPayload": ".webhookdiscountupdatedpayload", + "WebhookDiscountUpdatedPayloadTypedDict": ".webhookdiscountupdatedpayload", "WebhookEndpoint": ".webhookendpoint", "WebhookEndpointTypedDict": ".webhookendpoint", "WebhookEndpointCreate": ".webhookendpointcreate", @@ -8019,6 +8092,8 @@ "WebhookSubscriptionCanceledPayloadTypedDict": ".webhooksubscriptioncanceledpayload", "WebhookSubscriptionCreatedPayload": ".webhooksubscriptioncreatedpayload", "WebhookSubscriptionCreatedPayloadTypedDict": ".webhooksubscriptioncreatedpayload", + "WebhookSubscriptionCycledPayload": ".webhooksubscriptioncycledpayload", + "WebhookSubscriptionCycledPayloadTypedDict": ".webhooksubscriptioncycledpayload", "WebhookSubscriptionPastDuePayload": ".webhooksubscriptionpastduepayload", "WebhookSubscriptionPastDuePayloadTypedDict": ".webhooksubscriptionpastduepayload", "WebhookSubscriptionPausedPayload": ".webhooksubscriptionpausedpayload", diff --git a/src/polar_sdk/models/checkout.py b/src/polar_sdk/models/checkout.py index fda45665..e2b70985 100644 --- a/src/polar_sdk/models/checkout.py +++ b/src/polar_sdk/models/checkout.py @@ -182,6 +182,8 @@ class CheckoutTypedDict(TypedDict): customer_billing_name: Nullable[str] customer_billing_address: Nullable[AddressTypedDict] customer_tax_id: Nullable[str] + payment_method_type: Nullable[str] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" payment_processor_metadata: Dict[str, str] billing_address_fields: CheckoutBillingAddressFieldsTypedDict trial_interval: Nullable[TrialInterval] @@ -340,6 +342,9 @@ class Checkout(BaseModel): customer_tax_id: Nullable[str] + payment_method_type: Nullable[str] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" + payment_processor_metadata: Dict[str, str] billing_address_fields: CheckoutBillingAddressFields @@ -427,6 +432,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "trial_interval", "trial_interval_count", "external_customer_id", diff --git a/src/polar_sdk/models/checkoutconfirmstripe.py b/src/polar_sdk/models/checkoutconfirmstripe.py index 59937ba6..93517ba1 100644 --- a/src/polar_sdk/models/checkoutconfirmstripe.py +++ b/src/polar_sdk/models/checkoutconfirmstripe.py @@ -43,6 +43,8 @@ class CheckoutConfirmStripeTypedDict(TypedDict): customer_billing_address: NotRequired[Nullable[AddressInputTypedDict]] customer_tax_id: NotRequired[Nullable[str]] locale: NotRequired[Nullable[str]] + payment_method_type: NotRequired[Nullable[str]] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" discount_code: NotRequired[Nullable[str]] r"""Discount code to apply to the checkout.""" allow_trial: Nullable[Literal[False]] @@ -89,6 +91,9 @@ class CheckoutConfirmStripe(BaseModel): locale: OptionalNullable[str] = UNSET + payment_method_type: OptionalNullable[str] = UNSET + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" + discount_code: OptionalNullable[str] = UNSET r"""Discount code to apply to the checkout.""" @@ -118,6 +123,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "discount_code", "allow_trial", "confirmation_token_id", @@ -134,6 +140,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "discount_code", "allow_trial", "confirmation_token_id", diff --git a/src/polar_sdk/models/checkoutforbiddenerror.py b/src/polar_sdk/models/checkoutforbiddenerror.py index dfd4264c..d863e338 100644 --- a/src/polar_sdk/models/checkoutforbiddenerror.py +++ b/src/polar_sdk/models/checkoutforbiddenerror.py @@ -2,6 +2,7 @@ from __future__ import annotations from .alreadyactivesubscriptionerror import AlreadyActiveSubscriptionErrorData +from .discountredemptionlimitreached import DiscountRedemptionLimitReachedData from .notopencheckout import NotOpenCheckoutData from .paymentnotready import PaymentNotReadyData from .trialalreadyredeemed import TrialAlreadyRedeemedData @@ -19,6 +20,7 @@ NotOpenCheckoutData, PaymentNotReadyData, TrialAlreadyRedeemedData, + DiscountRedemptionLimitReachedData, ], ) diff --git a/src/polar_sdk/models/checkoutpublic.py b/src/polar_sdk/models/checkoutpublic.py index 322d2254..05a636c7 100644 --- a/src/polar_sdk/models/checkoutpublic.py +++ b/src/polar_sdk/models/checkoutpublic.py @@ -174,6 +174,8 @@ class CheckoutPublicTypedDict(TypedDict): customer_billing_name: Nullable[str] customer_billing_address: Nullable[AddressTypedDict] customer_tax_id: Nullable[str] + payment_method_type: Nullable[str] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" payment_processor_metadata: Dict[str, str] billing_address_fields: CheckoutBillingAddressFieldsTypedDict products: List[CheckoutProductTypedDict] @@ -324,6 +326,9 @@ class CheckoutPublic(BaseModel): customer_tax_id: Nullable[str] + payment_method_type: Nullable[str] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" + payment_processor_metadata: Dict[str, str] billing_address_fields: CheckoutBillingAddressFields @@ -400,6 +405,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "product", "product_price", "prices", diff --git a/src/polar_sdk/models/checkoutpublicconfirmed.py b/src/polar_sdk/models/checkoutpublicconfirmed.py index 37399c2b..625231ab 100644 --- a/src/polar_sdk/models/checkoutpublicconfirmed.py +++ b/src/polar_sdk/models/checkoutpublicconfirmed.py @@ -179,6 +179,8 @@ class CheckoutPublicConfirmedTypedDict(TypedDict): customer_billing_name: Nullable[str] customer_billing_address: Nullable[AddressTypedDict] customer_tax_id: Nullable[str] + payment_method_type: Nullable[str] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" payment_processor_metadata: Dict[str, str] billing_address_fields: CheckoutBillingAddressFieldsTypedDict products: List[CheckoutProductTypedDict] @@ -333,6 +335,9 @@ class CheckoutPublicConfirmed(BaseModel): customer_tax_id: Nullable[str] + payment_method_type: Nullable[str] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" + payment_processor_metadata: Dict[str, str] billing_address_fields: CheckoutBillingAddressFields @@ -416,6 +421,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "product", "product_price", "prices", diff --git a/src/polar_sdk/models/checkoutupdatepublic.py b/src/polar_sdk/models/checkoutupdatepublic.py index dc822b56..9a074584 100644 --- a/src/polar_sdk/models/checkoutupdatepublic.py +++ b/src/polar_sdk/models/checkoutupdatepublic.py @@ -43,6 +43,8 @@ class CheckoutUpdatePublicTypedDict(TypedDict): customer_billing_address: NotRequired[Nullable[AddressInputTypedDict]] customer_tax_id: NotRequired[Nullable[str]] locale: NotRequired[Nullable[str]] + payment_method_type: NotRequired[Nullable[str]] + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" discount_code: NotRequired[Nullable[str]] r"""Discount code to apply to the checkout.""" allow_trial: Nullable[Literal[False]] @@ -87,6 +89,9 @@ class CheckoutUpdatePublic(BaseModel): locale: OptionalNullable[str] = UNSET + payment_method_type: OptionalNullable[str] = UNSET + r"""Payment method type selected by the customer in the checkout form, e.g. `card`, `apple_pay` or `upi`.""" + discount_code: OptionalNullable[str] = UNSET r"""Discount code to apply to the checkout.""" @@ -113,6 +118,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "discount_code", "allow_trial", ] @@ -128,6 +134,7 @@ def serialize_model(self, handler): "customer_billing_address", "customer_tax_id", "locale", + "payment_method_type", "discount_code", "allow_trial", ] diff --git a/src/polar_sdk/models/discountfixedcreate.py b/src/polar_sdk/models/discountfixedcreate.py index f2f001f2..f11a3fcc 100644 --- a/src/polar_sdk/models/discountfixedcreate.py +++ b/src/polar_sdk/models/discountfixedcreate.py @@ -50,6 +50,8 @@ class DiscountFixedCreateTypedDict(TypedDict): r"""Optional timestamp after which the discount is no longer redeemable.""" max_redemptions: NotRequired[Nullable[int]] r"""Optional maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: NotRequired[Nullable[int]] + r"""Optional maximum number of times the discount can be redeemed by a single customer.""" products: NotRequired[Nullable[List[str]]] organization_id: NotRequired[Nullable[str]] r"""The ID of the organization owning the discount. **Required unless you use an organization token.**""" @@ -101,6 +103,9 @@ class DiscountFixedCreate(BaseModel): max_redemptions: OptionalNullable[int] = UNSET r"""Optional maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: OptionalNullable[int] = UNSET + r"""Optional maximum number of times the discount can be redeemed by a single customer.""" + products: OptionalNullable[List[str]] = UNSET organization_id: OptionalNullable[str] = UNSET @@ -144,6 +149,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", "products", "organization_id", "type", @@ -157,6 +163,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", "products", "organization_id", "duration_in_months", diff --git a/src/polar_sdk/models/discountfixedonceforeverduration.py b/src/polar_sdk/models/discountfixedonceforeverduration.py index e3def6e6..017554f9 100644 --- a/src/polar_sdk/models/discountfixedonceforeverduration.py +++ b/src/polar_sdk/models/discountfixedonceforeverduration.py @@ -39,6 +39,8 @@ class DiscountFixedOnceForeverDurationTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -96,6 +98,9 @@ class DiscountFixedOnceForeverDuration(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -113,6 +118,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountfixedonceforeverdurationbase.py b/src/polar_sdk/models/discountfixedonceforeverdurationbase.py index 96ec9cf3..d9418497 100644 --- a/src/polar_sdk/models/discountfixedonceforeverdurationbase.py +++ b/src/polar_sdk/models/discountfixedonceforeverdurationbase.py @@ -36,6 +36,8 @@ class DiscountFixedOnceForeverDurationBaseTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -90,6 +92,9 @@ class DiscountFixedOnceForeverDurationBase(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -105,6 +110,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountfixedrepeatduration.py b/src/polar_sdk/models/discountfixedrepeatduration.py index 491031b1..2021c427 100644 --- a/src/polar_sdk/models/discountfixedrepeatduration.py +++ b/src/polar_sdk/models/discountfixedrepeatduration.py @@ -42,6 +42,8 @@ class DiscountFixedRepeatDurationTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -103,6 +105,9 @@ class DiscountFixedRepeatDuration(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -120,6 +125,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountfixedrepeatdurationbase.py b/src/polar_sdk/models/discountfixedrepeatdurationbase.py index f8986ad2..644fa551 100644 --- a/src/polar_sdk/models/discountfixedrepeatdurationbase.py +++ b/src/polar_sdk/models/discountfixedrepeatdurationbase.py @@ -37,6 +37,8 @@ class DiscountFixedRepeatDurationBaseTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -93,6 +95,9 @@ class DiscountFixedRepeatDurationBase(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -108,6 +113,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountpercentagecreate.py b/src/polar_sdk/models/discountpercentagecreate.py index 89f05236..02dbb049 100644 --- a/src/polar_sdk/models/discountpercentagecreate.py +++ b/src/polar_sdk/models/discountpercentagecreate.py @@ -55,6 +55,8 @@ class DiscountPercentageCreateTypedDict(TypedDict): r"""Optional timestamp after which the discount is no longer redeemable.""" max_redemptions: NotRequired[Nullable[int]] r"""Optional maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: NotRequired[Nullable[int]] + r"""Optional maximum number of times the discount can be redeemed by a single customer.""" products: NotRequired[Nullable[List[str]]] organization_id: NotRequired[Nullable[str]] r"""The ID of the organization owning the discount. **Required unless you use an organization token.**""" @@ -110,6 +112,9 @@ class DiscountPercentageCreate(BaseModel): max_redemptions: OptionalNullable[int] = UNSET r"""Optional maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: OptionalNullable[int] = UNSET + r"""Optional maximum number of times the discount can be redeemed by a single customer.""" + products: OptionalNullable[List[str]] = UNSET organization_id: OptionalNullable[str] = UNSET @@ -140,6 +145,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", "products", "organization_id", "type", @@ -150,6 +156,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", "products", "organization_id", "duration_in_months", diff --git a/src/polar_sdk/models/discountpercentageonceforeverduration.py b/src/polar_sdk/models/discountpercentageonceforeverduration.py index b35e08e7..50f45914 100644 --- a/src/polar_sdk/models/discountpercentageonceforeverduration.py +++ b/src/polar_sdk/models/discountpercentageonceforeverduration.py @@ -36,6 +36,8 @@ class DiscountPercentageOnceForeverDurationTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -79,6 +81,9 @@ class DiscountPercentageOnceForeverDuration(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -96,6 +101,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountpercentageonceforeverdurationbase.py b/src/polar_sdk/models/discountpercentageonceforeverdurationbase.py index fcb45389..a1e7e8f6 100644 --- a/src/polar_sdk/models/discountpercentageonceforeverdurationbase.py +++ b/src/polar_sdk/models/discountpercentageonceforeverdurationbase.py @@ -33,6 +33,8 @@ class DiscountPercentageOnceForeverDurationBaseTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -73,6 +75,9 @@ class DiscountPercentageOnceForeverDurationBase(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -88,6 +93,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountpercentagerepeatduration.py b/src/polar_sdk/models/discountpercentagerepeatduration.py index 29c6a2a1..c4550f3f 100644 --- a/src/polar_sdk/models/discountpercentagerepeatduration.py +++ b/src/polar_sdk/models/discountpercentagerepeatduration.py @@ -39,6 +39,8 @@ class DiscountPercentageRepeatDurationTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -86,6 +88,9 @@ class DiscountPercentageRepeatDuration(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -103,6 +108,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountpercentagerepeatdurationbase.py b/src/polar_sdk/models/discountpercentagerepeatdurationbase.py index 554f45b1..6898e574 100644 --- a/src/polar_sdk/models/discountpercentagerepeatdurationbase.py +++ b/src/polar_sdk/models/discountpercentagerepeatdurationbase.py @@ -34,6 +34,8 @@ class DiscountPercentageRepeatDurationBaseTypedDict(TypedDict): r"""Timestamp after which the discount is no longer redeemable.""" max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" redemptions_count: int r"""Number of times the discount has been redeemed.""" organization_id: str @@ -76,6 +78,9 @@ class DiscountPercentageRepeatDurationBase(BaseModel): max_redemptions: Nullable[int] r"""Maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: Nullable[int] + r"""Maximum number of times the discount can be redeemed by a single customer.""" + redemptions_count: int r"""Number of times the discount has been redeemed.""" @@ -91,6 +96,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", ] null_default_fields = [] diff --git a/src/polar_sdk/models/discountredemptionlimitreached.py b/src/polar_sdk/models/discountredemptionlimitreached.py new file mode 100644 index 00000000..a8873d06 --- /dev/null +++ b/src/polar_sdk/models/discountredemptionlimitreached.py @@ -0,0 +1,39 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from dataclasses import dataclass, field +import httpx +from polar_sdk.models import PolarError +from polar_sdk.types import BaseModel +from polar_sdk.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal, Optional +from typing_extensions import Annotated + + +class DiscountRedemptionLimitReachedData(BaseModel): + detail: str + + ERROR: Annotated[ + Annotated[ + Literal["DiscountRedemptionLimitReached"], + AfterValidator(validate_const("DiscountRedemptionLimitReached")), + ], + pydantic.Field(alias="error"), + ] = "DiscountRedemptionLimitReached" + + +@dataclass(unsafe_hash=True) +class DiscountRedemptionLimitReached(PolarError): + data: DiscountRedemptionLimitReachedData = field(hash=False) + + def __init__( + self, + data: DiscountRedemptionLimitReachedData, + raw_response: httpx.Response, + body: Optional[str] = None, + ): + message = body or raw_response.text + super().__init__(message, raw_response, body) + object.__setattr__(self, "data", data) diff --git a/src/polar_sdk/models/discountupdate.py b/src/polar_sdk/models/discountupdate.py index c959a861..526b3ca9 100644 --- a/src/polar_sdk/models/discountupdate.py +++ b/src/polar_sdk/models/discountupdate.py @@ -47,6 +47,8 @@ class DiscountUpdateTypedDict(TypedDict): r"""Optional timestamp after which the discount is no longer redeemable.""" max_redemptions: NotRequired[Nullable[int]] r"""Optional maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: NotRequired[Nullable[int]] + r"""Optional maximum number of times the discount can be redeemed by a single customer.""" duration: NotRequired[Nullable[DiscountDuration]] duration_in_months: NotRequired[Nullable[int]] type: NotRequired[Nullable[DiscountType]] @@ -88,6 +90,9 @@ class DiscountUpdate(BaseModel): max_redemptions: OptionalNullable[int] = UNSET r"""Optional maximum number of times the discount can be redeemed.""" + max_redemptions_per_customer: OptionalNullable[int] = UNSET + r"""Optional maximum number of times the discount can be redeemed by a single customer.""" + duration: OptionalNullable[DiscountDuration] = UNSET duration_in_months: OptionalNullable[int] = UNSET @@ -123,6 +128,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", "duration", "duration_in_months", "type", @@ -138,6 +144,7 @@ def serialize_model(self, handler): "starts_at", "ends_at", "max_redemptions", + "max_redemptions_per_customer", "duration", "duration_in_months", "type", diff --git a/src/polar_sdk/models/disputes_listop.py b/src/polar_sdk/models/disputes_listop.py index 0926852f..3cff4234 100644 --- a/src/polar_sdk/models/disputes_listop.py +++ b/src/polar_sdk/models/disputes_listop.py @@ -35,14 +35,15 @@ r"""Filter by order ID.""" -QueryParamStatusFilterTypedDict = TypeAliasType( - "QueryParamStatusFilterTypedDict", Union[DisputeStatus, List[DisputeStatus]] +DisputesListQueryParamStatusFilterTypedDict = TypeAliasType( + "DisputesListQueryParamStatusFilterTypedDict", + Union[DisputeStatus, List[DisputeStatus]], ) r"""Filter by dispute status.""" -QueryParamStatusFilter = TypeAliasType( - "QueryParamStatusFilter", Union[DisputeStatus, List[DisputeStatus]] +DisputesListQueryParamStatusFilter = TypeAliasType( + "DisputesListQueryParamStatusFilter", Union[DisputeStatus, List[DisputeStatus]] ) r"""Filter by dispute status.""" @@ -54,7 +55,7 @@ class DisputesListRequestTypedDict(TypedDict): r"""Filter by organization ID.""" order_id: NotRequired[Nullable[QueryParamOrderIDFilterTypedDict]] r"""Filter by order ID.""" - status: NotRequired[Nullable[QueryParamStatusFilterTypedDict]] + status: NotRequired[Nullable[DisputesListQueryParamStatusFilterTypedDict]] r"""Filter by dispute status.""" page: NotRequired[int] r"""Page number, defaults to 1.""" @@ -78,7 +79,7 @@ class DisputesListRequest(BaseModel): r"""Filter by order ID.""" status: Annotated[ - OptionalNullable[QueryParamStatusFilter], + OptionalNullable[DisputesListQueryParamStatusFilter], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET r"""Filter by dispute status.""" diff --git a/src/polar_sdk/models/orderunvoidedevent.py b/src/polar_sdk/models/orderunvoidedevent.py new file mode 100644 index 00000000..6cc4643a --- /dev/null +++ b/src/polar_sdk/models/orderunvoidedevent.py @@ -0,0 +1,140 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .customer import Customer, CustomerTypedDict +from .orderunvoidedmetadata import OrderUnvoidedMetadata, OrderUnvoidedMetadataTypedDict +from datetime import datetime +from polar_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from polar_sdk.utils import validate_const +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from typing import Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class OrderUnvoidedEventTypedDict(TypedDict): + r"""An event created by Polar when an order is unvoided.""" + + id: str + r"""The ID of the object.""" + timestamp: datetime + r"""The timestamp of the event.""" + organization_id: str + r"""The ID of the organization owning the event.""" + customer_id: Nullable[str] + r"""ID of the customer in your Polar organization associated with the event.""" + customer: Nullable[CustomerTypedDict] + r"""The customer associated with the event.""" + external_customer_id: Nullable[str] + r"""ID of the customer in your system associated with the event.""" + label: str + r"""Human readable label of the event type.""" + metadata: OrderUnvoidedMetadataTypedDict + member_id: NotRequired[Nullable[str]] + r"""ID of the member within the customer's organization who performed the action inside B2B.""" + external_member_id: NotRequired[Nullable[str]] + r"""ID of the member in your system within the customer's organization who performed the action inside B2B.""" + child_count: NotRequired[int] + r"""Number of direct child events linked to this event.""" + parent_id: NotRequired[Nullable[str]] + r"""The ID of the parent event.""" + source: Literal["system"] + r"""The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.""" + name: Literal["order.unvoided"] + r"""The name of the event.""" + + +class OrderUnvoidedEvent(BaseModel): + r"""An event created by Polar when an order is unvoided.""" + + id: str + r"""The ID of the object.""" + + timestamp: datetime + r"""The timestamp of the event.""" + + organization_id: str + r"""The ID of the organization owning the event.""" + + customer_id: Nullable[str] + r"""ID of the customer in your Polar organization associated with the event.""" + + customer: Nullable[Customer] + r"""The customer associated with the event.""" + + external_customer_id: Nullable[str] + r"""ID of the customer in your system associated with the event.""" + + label: str + r"""Human readable label of the event type.""" + + metadata: OrderUnvoidedMetadata + + member_id: OptionalNullable[str] = UNSET + r"""ID of the member within the customer's organization who performed the action inside B2B.""" + + external_member_id: OptionalNullable[str] = UNSET + r"""ID of the member in your system within the customer's organization who performed the action inside B2B.""" + + child_count: Optional[int] = 0 + r"""Number of direct child events linked to this event.""" + + parent_id: OptionalNullable[str] = UNSET + r"""The ID of the parent event.""" + + SOURCE: Annotated[ + Annotated[Literal["system"], AfterValidator(validate_const("system"))], + pydantic.Field(alias="source"), + ] = "system" + r"""The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.""" + + NAME: Annotated[ + Annotated[ + Literal["order.unvoided"], AfterValidator(validate_const("order.unvoided")) + ], + pydantic.Field(alias="name"), + ] = "order.unvoided" + r"""The name of the event.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "member_id", + "external_member_id", + "child_count", + "parent_id", + ] + nullable_fields = [ + "customer_id", + "customer", + "external_customer_id", + "member_id", + "external_member_id", + "parent_id", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/polar_sdk/models/orderunvoidedmetadata.py b/src/polar_sdk/models/orderunvoidedmetadata.py new file mode 100644 index 00000000..11e61d93 --- /dev/null +++ b/src/polar_sdk/models/orderunvoidedmetadata.py @@ -0,0 +1,19 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from polar_sdk.types import BaseModel +from typing_extensions import TypedDict + + +class OrderUnvoidedMetadataTypedDict(TypedDict): + order_id: str + amount: int + currency: str + + +class OrderUnvoidedMetadata(BaseModel): + order_id: str + + amount: int + + currency: str diff --git a/src/polar_sdk/models/organization.py b/src/polar_sdk/models/organization.py index 8ea6e76e..a929dbcb 100644 --- a/src/polar_sdk/models/organization.py +++ b/src/polar_sdk/models/organization.py @@ -313,6 +313,8 @@ class OrganizationTypedDict(TypedDict): status: OrganizationStatus details_submitted_at: Nullable[datetime] r"""When the business details were submitted for review.""" + onboarding_resubmission_requested_at: Nullable[datetime] + r"""When Polar requested that the organization review and resubmit its onboarding information, if applicable.""" sso_enforced: bool r"""Whether members must access this organization through its SSO connection.""" default_presentment_currency: str @@ -323,6 +325,10 @@ class OrganizationTypedDict(TypedDict): subscription_settings: OrganizationSubscriptionSettingsTypedDict customer_email_settings: OrganizationCustomerEmailSettingsTypedDict customer_portal_settings: OrganizationCustomerPortalSettingsTypedDict + embed_hosts: List[str] + r"""Hosts allowed to embed this organization's checkout. An entry is a host and an optional port, without a scheme: HTTPS is always allowed, and HTTP too for local hosts — `localhost`, any `.localhost` or `.local` name, and loopback or private addresses. `*.example.com` matches any subdomain, but not `example.com` itself. An app origin such as `chrome-extension://abcdef` carries its scheme, having no host to match on.""" + embed_hosts_enforced: bool + r"""Whether an embedding page's origin must match `embed_hosts`. Organizations that have not configured a list yet embed unchecked until the allowlist is enforced for everyone.""" account_id: Nullable[str] r"""ID of the transactions account.""" payout_account_id: Nullable[str] @@ -370,6 +376,9 @@ class Organization(BaseModel): details_submitted_at: Nullable[datetime] r"""When the business details were submitted for review.""" + onboarding_resubmission_requested_at: Nullable[datetime] + r"""When Polar requested that the organization review and resubmit its onboarding information, if applicable.""" + sso_enforced: bool r"""Whether members must access this organization through its SSO connection.""" @@ -387,6 +396,12 @@ class Organization(BaseModel): customer_portal_settings: OrganizationCustomerPortalSettings + embed_hosts: List[str] + r"""Hosts allowed to embed this organization's checkout. An entry is a host and an optional port, without a scheme: HTTPS is always allowed, and HTTP too for local hosts — `localhost`, any `.localhost` or `.local` name, and loopback or private addresses. `*.example.com` matches any subdomain, but not `example.com` itself. An app origin such as `chrome-extension://abcdef` carries its scheme, having no host to match on.""" + + embed_hosts_enforced: bool + r"""Whether an embedding page's origin must match `embed_hosts`. Organizations that have not configured a list yet embed unchecked until the allowlist is enforced for everyone.""" + account_id: Nullable[str] r"""ID of the transactions account.""" @@ -407,6 +422,7 @@ def serialize_model(self, handler): "email", "website", "details_submitted_at", + "onboarding_resubmission_requested_at", "feature_settings", "country", "account_id", diff --git a/src/polar_sdk/models/organizationcustomeremailsettings.py b/src/polar_sdk/models/organizationcustomeremailsettings.py index 8886125d..b63e6b30 100644 --- a/src/polar_sdk/models/organizationcustomeremailsettings.py +++ b/src/polar_sdk/models/organizationcustomeremailsettings.py @@ -7,6 +7,7 @@ class OrganizationCustomerEmailSettingsTypedDict(TypedDict): order_confirmation: bool + payment_method_expiration_reminder: bool subscription_cancellation: bool subscription_confirmation: bool subscription_cycled: bool @@ -24,6 +25,8 @@ class OrganizationCustomerEmailSettingsTypedDict(TypedDict): class OrganizationCustomerEmailSettings(BaseModel): order_confirmation: bool + payment_method_expiration_reminder: bool + subscription_cancellation: bool subscription_confirmation: bool diff --git a/src/polar_sdk/models/organizationupdate.py b/src/polar_sdk/models/organizationupdate.py index c1990de2..c5e36e93 100644 --- a/src/polar_sdk/models/organizationupdate.py +++ b/src/polar_sdk/models/organizationupdate.py @@ -301,6 +301,7 @@ class OrganizationUpdateTypedDict(TypedDict): customer_portal_settings: NotRequired[ Nullable[OrganizationCustomerPortalSettingsTypedDict] ] + embed_hosts: NotRequired[Nullable[List[str]]] default_presentment_currency: NotRequired[Nullable[PresentmentCurrency]] r"""Default presentment currency for the organization""" default_tax_behavior: NotRequired[Nullable[TaxBehaviorOption]] @@ -339,6 +340,8 @@ class OrganizationUpdate(BaseModel): UNSET ) + embed_hosts: OptionalNullable[List[str]] = UNSET + default_presentment_currency: OptionalNullable[PresentmentCurrency] = UNSET r"""Default presentment currency for the organization""" @@ -362,6 +365,7 @@ def serialize_model(self, handler): "subscription_settings", "customer_email_settings", "customer_portal_settings", + "embed_hosts", "default_presentment_currency", "default_tax_behavior", "sso_enforced", @@ -378,6 +382,7 @@ def serialize_model(self, handler): "subscription_settings", "customer_email_settings", "customer_portal_settings", + "embed_hosts", "default_presentment_currency", "default_tax_behavior", "sso_enforced", diff --git a/src/polar_sdk/models/subscriptionreinstatedevent.py b/src/polar_sdk/models/subscriptionreinstatedevent.py new file mode 100644 index 00000000..77212038 --- /dev/null +++ b/src/polar_sdk/models/subscriptionreinstatedevent.py @@ -0,0 +1,144 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .customer import Customer, CustomerTypedDict +from .subscriptionreinstatedmetadata import ( + SubscriptionReinstatedMetadata, + SubscriptionReinstatedMetadataTypedDict, +) +from datetime import datetime +from polar_sdk.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from polar_sdk.utils import validate_const +import pydantic +from pydantic import model_serializer +from pydantic.functional_validators import AfterValidator +from typing import Literal, Optional +from typing_extensions import Annotated, NotRequired, TypedDict + + +class SubscriptionReinstatedEventTypedDict(TypedDict): + r"""An event created by Polar when a canceled subscription is reinstated.""" + + id: str + r"""The ID of the object.""" + timestamp: datetime + r"""The timestamp of the event.""" + organization_id: str + r"""The ID of the organization owning the event.""" + customer_id: Nullable[str] + r"""ID of the customer in your Polar organization associated with the event.""" + customer: Nullable[CustomerTypedDict] + r"""The customer associated with the event.""" + external_customer_id: Nullable[str] + r"""ID of the customer in your system associated with the event.""" + label: str + r"""Human readable label of the event type.""" + metadata: SubscriptionReinstatedMetadataTypedDict + member_id: NotRequired[Nullable[str]] + r"""ID of the member within the customer's organization who performed the action inside B2B.""" + external_member_id: NotRequired[Nullable[str]] + r"""ID of the member in your system within the customer's organization who performed the action inside B2B.""" + child_count: NotRequired[int] + r"""Number of direct child events linked to this event.""" + parent_id: NotRequired[Nullable[str]] + r"""The ID of the parent event.""" + source: Literal["system"] + r"""The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.""" + name: Literal["subscription.reinstated"] + r"""The name of the event.""" + + +class SubscriptionReinstatedEvent(BaseModel): + r"""An event created by Polar when a canceled subscription is reinstated.""" + + id: str + r"""The ID of the object.""" + + timestamp: datetime + r"""The timestamp of the event.""" + + organization_id: str + r"""The ID of the organization owning the event.""" + + customer_id: Nullable[str] + r"""ID of the customer in your Polar organization associated with the event.""" + + customer: Nullable[Customer] + r"""The customer associated with the event.""" + + external_customer_id: Nullable[str] + r"""ID of the customer in your system associated with the event.""" + + label: str + r"""Human readable label of the event type.""" + + metadata: SubscriptionReinstatedMetadata + + member_id: OptionalNullable[str] = UNSET + r"""ID of the member within the customer's organization who performed the action inside B2B.""" + + external_member_id: OptionalNullable[str] = UNSET + r"""ID of the member in your system within the customer's organization who performed the action inside B2B.""" + + child_count: Optional[int] = 0 + r"""Number of direct child events linked to this event.""" + + parent_id: OptionalNullable[str] = UNSET + r"""The ID of the parent event.""" + + SOURCE: Annotated[ + Annotated[Literal["system"], AfterValidator(validate_const("system"))], + pydantic.Field(alias="source"), + ] = "system" + r"""The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.""" + + NAME: Annotated[ + Annotated[ + Literal["subscription.reinstated"], + AfterValidator(validate_const("subscription.reinstated")), + ], + pydantic.Field(alias="name"), + ] = "subscription.reinstated" + r"""The name of the event.""" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "member_id", + "external_member_id", + "child_count", + "parent_id", + ] + nullable_fields = [ + "customer_id", + "customer", + "external_customer_id", + "member_id", + "external_member_id", + "parent_id", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/polar_sdk/models/subscriptionreinstatedmetadata.py b/src/polar_sdk/models/subscriptionreinstatedmetadata.py new file mode 100644 index 00000000..7ccbdc65 --- /dev/null +++ b/src/polar_sdk/models/subscriptionreinstatedmetadata.py @@ -0,0 +1,29 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from polar_sdk.types import BaseModel +from typing import Optional +from typing_extensions import NotRequired, TypedDict + + +class SubscriptionReinstatedMetadataTypedDict(TypedDict): + subscription_id: str + product_id: NotRequired[str] + amount: NotRequired[int] + currency: NotRequired[str] + recurring_interval: NotRequired[str] + recurring_interval_count: NotRequired[int] + + +class SubscriptionReinstatedMetadata(BaseModel): + subscription_id: str + + product_id: Optional[str] = None + + amount: Optional[int] = None + + currency: Optional[str] = None + + recurring_interval: Optional[str] = None + + recurring_interval_count: Optional[int] = None diff --git a/src/polar_sdk/models/subscriptions_listop.py b/src/polar_sdk/models/subscriptions_listop.py index c4d63331..3620061e 100644 --- a/src/polar_sdk/models/subscriptions_listop.py +++ b/src/polar_sdk/models/subscriptions_listop.py @@ -24,6 +24,7 @@ ) from .metersortproperty import MeterSortProperty from .ordersortproperty import OrderSortProperty +from .orderstatus import OrderStatus from .productbillingtype import ProductBillingType from .productsortproperty import ProductSortProperty from .productvisibility import ProductVisibility @@ -152,6 +153,10 @@ class SubscriptionsListRequestTypedDict(TypedDict): r"""Filter by cancellation date (after or equal to).""" canceled_at_before: NotRequired[Nullable[datetime]] r"""Filter by cancellation date (before or equal to).""" + started_after: NotRequired[Nullable[datetime]] + r"""Only include subscriptions started after this date.""" + started_before: NotRequired[Nullable[datetime]] + r"""Only include subscriptions started before this date.""" page: NotRequired[int] r"""Page number, defaults to 1.""" limit: NotRequired[int] @@ -232,6 +237,18 @@ class SubscriptionsListRequest(BaseModel): ] = UNSET r"""Filter by cancellation date (before or equal to).""" + started_after: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Only include subscriptions started after this date.""" + + started_before: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Only include subscriptions started before this date.""" + page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -270,6 +287,8 @@ def serialize_model(self, handler): "customer_cancellation_reason", "canceled_at_after", "canceled_at_before", + "started_after", + "started_before", "page", "limit", "sorting", @@ -287,6 +306,8 @@ def serialize_model(self, handler): "customer_cancellation_reason", "canceled_at_after", "canceled_at_before", + "started_after", + "started_before", "sorting", "metadata", ] @@ -787,6 +808,18 @@ class ProductsListResponse(BaseModel): r"""Filter by subscription ID.""" +QueryParamStatusFilterTypedDict = TypeAliasType( + "QueryParamStatusFilterTypedDict", Union[OrderStatus, List[OrderStatus]] +) +r"""Filter by order status.""" + + +QueryParamStatusFilter = TypeAliasType( + "QueryParamStatusFilter", Union[OrderStatus, List[OrderStatus]] +) +r"""Filter by order status.""" + + class OrdersListRequestTypedDict(TypedDict): organization_id: NotRequired[ Nullable[OrdersListQueryParamOrganizationIDFilterTypedDict] @@ -808,6 +841,12 @@ class OrdersListRequestTypedDict(TypedDict): r"""Filter by checkout ID.""" subscription_id: NotRequired[Nullable[SubscriptionIDFilterTypedDict]] r"""Filter by subscription ID.""" + status: NotRequired[Nullable[QueryParamStatusFilterTypedDict]] + r"""Filter by order status.""" + created_after: NotRequired[Nullable[datetime]] + r"""Only include orders created after this date""" + created_before: NotRequired[Nullable[datetime]] + r"""Only include orders created before this date""" page: NotRequired[int] r"""Page number, defaults to 1.""" limit: NotRequired[int] @@ -867,6 +906,24 @@ class OrdersListRequest(BaseModel): ] = UNSET r"""Filter by subscription ID.""" + status: Annotated[ + OptionalNullable[QueryParamStatusFilter], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Filter by order status.""" + + created_after: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Only include orders created after this date""" + + created_before: Annotated[ + OptionalNullable[datetime], + FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), + ] = UNSET + r"""Only include orders created before this date""" + page: Annotated[ Optional[int], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), @@ -902,6 +959,9 @@ def serialize_model(self, handler): "external_customer_id", "checkout_id", "subscription_id", + "status", + "created_after", + "created_before", "page", "limit", "sorting", @@ -916,6 +976,9 @@ def serialize_model(self, handler): "external_customer_id", "checkout_id", "subscription_id", + "status", + "created_after", + "created_before", "sorting", "metadata", ] diff --git a/src/polar_sdk/models/systemevent.py b/src/polar_sdk/models/systemevent.py index 765c1b5f..73b81f02 100644 --- a/src/polar_sdk/models/systemevent.py +++ b/src/polar_sdk/models/systemevent.py @@ -28,6 +28,7 @@ from .meterresetevent import MeterResetEvent, MeterResetEventTypedDict from .orderpaidevent import OrderPaidEvent, OrderPaidEventTypedDict from .orderrefundedevent import OrderRefundedEvent, OrderRefundedEventTypedDict +from .orderunvoidedevent import OrderUnvoidedEvent, OrderUnvoidedEventTypedDict from .ordervoidedevent import OrderVoidedEvent, OrderVoidedEventTypedDict from .subscriptionbillingperiodupdatedevent import ( SubscriptionBillingPeriodUpdatedEvent, @@ -61,6 +62,10 @@ SubscriptionReactivatedEvent, SubscriptionReactivatedEventTypedDict, ) +from .subscriptionreinstatedevent import ( + SubscriptionReinstatedEvent, + SubscriptionReinstatedEventTypedDict, +) from .subscriptionresumedevent import ( SubscriptionResumedEvent, SubscriptionResumedEventTypedDict, @@ -107,6 +112,7 @@ SubscriptionRevokedEventTypedDict, SubscriptionPastDueEventTypedDict, SubscriptionReactivatedEventTypedDict, + SubscriptionReinstatedEventTypedDict, SubscriptionPausedEventTypedDict, SubscriptionResumedEventTypedDict, SubscriptionUncanceledEventTypedDict, @@ -117,6 +123,7 @@ OrderPaidEventTypedDict, OrderRefundedEventTypedDict, OrderVoidedEventTypedDict, + OrderUnvoidedEventTypedDict, CheckoutCreatedEventTypedDict, CustomerCreatedEventTypedDict, CustomerUpdatedEventTypedDict, @@ -151,6 +158,7 @@ Annotated[MeterResetEvent, Tag("meter.reset")], Annotated[OrderPaidEvent, Tag("order.paid")], Annotated[OrderRefundedEvent, Tag("order.refunded")], + Annotated[OrderUnvoidedEvent, Tag("order.unvoided")], Annotated[OrderVoidedEvent, Tag("order.voided")], Annotated[ SubscriptionBillingPeriodUpdatedEvent, @@ -163,6 +171,7 @@ Annotated[SubscriptionPausedEvent, Tag("subscription.paused")], Annotated[SubscriptionProductUpdatedEvent, Tag("subscription.product_updated")], Annotated[SubscriptionReactivatedEvent, Tag("subscription.reactivated")], + Annotated[SubscriptionReinstatedEvent, Tag("subscription.reinstated")], Annotated[SubscriptionResumedEvent, Tag("subscription.resumed")], Annotated[SubscriptionRevokedEvent, Tag("subscription.revoked")], Annotated[SubscriptionSeatsUpdatedEvent, Tag("subscription.seats_updated")], diff --git a/src/polar_sdk/models/webhookdiscountcreatedpayload.py b/src/polar_sdk/models/webhookdiscountcreatedpayload.py new file mode 100644 index 00000000..ea1ac6d5 --- /dev/null +++ b/src/polar_sdk/models/webhookdiscountcreatedpayload.py @@ -0,0 +1,41 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .discount import Discount, DiscountTypedDict +from datetime import datetime +from polar_sdk.types import BaseModel +from polar_sdk.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class WebhookDiscountCreatedPayloadTypedDict(TypedDict): + r"""Sent when a new discount is created. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + data: DiscountTypedDict + type: Literal["discount.created"] + + +class WebhookDiscountCreatedPayload(BaseModel): + r"""Sent when a new discount is created. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + + data: Discount + + TYPE: Annotated[ + Annotated[ + Literal["discount.created"], + AfterValidator(validate_const("discount.created")), + ], + pydantic.Field(alias="type"), + ] = "discount.created" diff --git a/src/polar_sdk/models/webhookdiscountdeletedpayload.py b/src/polar_sdk/models/webhookdiscountdeletedpayload.py new file mode 100644 index 00000000..5738b4d8 --- /dev/null +++ b/src/polar_sdk/models/webhookdiscountdeletedpayload.py @@ -0,0 +1,41 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .discount import Discount, DiscountTypedDict +from datetime import datetime +from polar_sdk.types import BaseModel +from polar_sdk.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class WebhookDiscountDeletedPayloadTypedDict(TypedDict): + r"""Sent when a discount is deleted. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + data: DiscountTypedDict + type: Literal["discount.deleted"] + + +class WebhookDiscountDeletedPayload(BaseModel): + r"""Sent when a discount is deleted. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + + data: Discount + + TYPE: Annotated[ + Annotated[ + Literal["discount.deleted"], + AfterValidator(validate_const("discount.deleted")), + ], + pydantic.Field(alias="type"), + ] = "discount.deleted" diff --git a/src/polar_sdk/models/webhookdiscountupdatedpayload.py b/src/polar_sdk/models/webhookdiscountupdatedpayload.py new file mode 100644 index 00000000..3bd92fce --- /dev/null +++ b/src/polar_sdk/models/webhookdiscountupdatedpayload.py @@ -0,0 +1,41 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .discount import Discount, DiscountTypedDict +from datetime import datetime +from polar_sdk.types import BaseModel +from polar_sdk.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class WebhookDiscountUpdatedPayloadTypedDict(TypedDict): + r"""Sent when a discount is updated. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + data: DiscountTypedDict + type: Literal["discount.updated"] + + +class WebhookDiscountUpdatedPayload(BaseModel): + r"""Sent when a discount is updated. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + + data: Discount + + TYPE: Annotated[ + Annotated[ + Literal["discount.updated"], + AfterValidator(validate_const("discount.updated")), + ], + pydantic.Field(alias="type"), + ] = "discount.updated" diff --git a/src/polar_sdk/models/webhookeventtype.py b/src/polar_sdk/models/webhookeventtype.py index 92f1ff15..7cb91491 100644 --- a/src/polar_sdk/models/webhookeventtype.py +++ b/src/polar_sdk/models/webhookeventtype.py @@ -27,6 +27,7 @@ class WebhookEventType(str, Enum): SUBSCRIPTION_ACTIVE = "subscription.active" SUBSCRIPTION_CANCELED = "subscription.canceled" SUBSCRIPTION_UNCANCELED = "subscription.uncanceled" + SUBSCRIPTION_CYCLED = "subscription.cycled" SUBSCRIPTION_REVOKED = "subscription.revoked" SUBSCRIPTION_PAST_DUE = "subscription.past_due" SUBSCRIPTION_PAUSED = "subscription.paused" @@ -35,6 +36,9 @@ class WebhookEventType(str, Enum): REFUND_UPDATED = "refund.updated" PRODUCT_CREATED = "product.created" PRODUCT_UPDATED = "product.updated" + DISCOUNT_CREATED = "discount.created" + DISCOUNT_UPDATED = "discount.updated" + DISCOUNT_DELETED = "discount.deleted" BENEFIT_CREATED = "benefit.created" BENEFIT_UPDATED = "benefit.updated" BENEFIT_GRANT_CREATED = "benefit_grant.created" diff --git a/src/polar_sdk/models/webhooksubscriptioncycledpayload.py b/src/polar_sdk/models/webhooksubscriptioncycledpayload.py new file mode 100644 index 00000000..6a035b1c --- /dev/null +++ b/src/polar_sdk/models/webhooksubscriptioncycledpayload.py @@ -0,0 +1,57 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from .subscription import Subscription, SubscriptionTypedDict +from datetime import datetime +from polar_sdk.types import BaseModel +from polar_sdk.utils import validate_const +import pydantic +from pydantic.functional_validators import AfterValidator +from typing import Literal +from typing_extensions import Annotated, TypedDict + + +class WebhookSubscriptionCycledPayloadTypedDict(TypedDict): + r"""Sent when a subscription enters a new billing period. + + The payload carries the new `current_period_start` and `current_period_end`. + It fires when the period rolls over, before the renewal order exists and + regardless of whether the renewal payment succeeds — listen to `order.paid` + if you need the payment. + + A trial converting to a paid subscription starts a new period, so it fires + there too. Read `status` to tell the two apart. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + data: SubscriptionTypedDict + type: Literal["subscription.cycled"] + + +class WebhookSubscriptionCycledPayload(BaseModel): + r"""Sent when a subscription enters a new billing period. + + The payload carries the new `current_period_start` and `current_period_end`. + It fires when the period rolls over, before the renewal order exists and + regardless of whether the renewal payment succeeds — listen to `order.paid` + if you need the payment. + + A trial converting to a paid subscription starts a new period, so it fires + there too. Read `status` to tell the two apart. + + **Discord & Slack support:** Basic + """ + + timestamp: datetime + + data: Subscription + + TYPE: Annotated[ + Annotated[ + Literal["subscription.cycled"], + AfterValidator(validate_const("subscription.cycled")), + ], + pydantic.Field(alias="type"), + ] = "subscription.cycled" diff --git a/src/polar_sdk/models/webhooksubscriptionupdatedpayload.py b/src/polar_sdk/models/webhooksubscriptionupdatedpayload.py index 47955731..2820bfd3 100644 --- a/src/polar_sdk/models/webhooksubscriptionupdatedpayload.py +++ b/src/polar_sdk/models/webhooksubscriptionupdatedpayload.py @@ -16,7 +16,7 @@ class WebhookSubscriptionUpdatedPayloadTypedDict(TypedDict): If you want more specific events, you can listen to `subscription.active`, `subscription.canceled`, `subscription.past_due`, and `subscription.revoked`. - To listen specifically for renewals, you can listen to `order.created` events and check the `billing_reason` field. + To listen specifically for renewals, listen to `subscription.cycled`. **Discord & Slack support:** On cancellation, past due, and revocation. Renewals are skipped. """ @@ -31,7 +31,7 @@ class WebhookSubscriptionUpdatedPayload(BaseModel): If you want more specific events, you can listen to `subscription.active`, `subscription.canceled`, `subscription.past_due`, and `subscription.revoked`. - To listen specifically for renewals, you can listen to `order.created` events and check the `billing_reason` field. + To listen specifically for renewals, listen to `subscription.cycled`. **Discord & Slack support:** On cancellation, past due, and revocation. Renewals are skipped. """ diff --git a/src/polar_sdk/orders.py b/src/polar_sdk/orders.py index 26e34d2d..b5fecb69 100644 --- a/src/polar_sdk/orders.py +++ b/src/polar_sdk/orders.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .basesdk import BaseSDK +from datetime import datetime from jsonpath import JSONPath from polar_sdk import models, utils from polar_sdk._hooks import HookContext @@ -55,6 +56,11 @@ def list( subscription_id: OptionalNullable[ Union[models.SubscriptionIDFilter, models.SubscriptionIDFilterTypedDict] ] = UNSET, + status: OptionalNullable[ + Union[models.QueryParamStatusFilter, models.QueryParamStatusFilterTypedDict] + ] = UNSET, + created_after: OptionalNullable[datetime] = UNSET, + created_before: OptionalNullable[datetime] = UNSET, page: Optional[int] = 1, limit: Optional[int] = 10, sorting: OptionalNullable[List[models.OrderSortProperty]] = UNSET, @@ -83,6 +89,9 @@ def list( :param external_customer_id: Filter by customer external ID. :param checkout_id: Filter by checkout ID. :param subscription_id: Filter by subscription ID. + :param status: Filter by order status. + :param created_after: Only include orders created after this date + :param created_before: Only include orders created before this date :param page: Page number, defaults to 1. :param limit: Size of a page, defaults to 10. Maximum is 100. :param sorting: Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. @@ -111,6 +120,9 @@ def list( external_customer_id=external_customer_id, checkout_id=checkout_id, subscription_id=subscription_id, + status=status, + created_after=created_after, + created_before=created_before, page=page, limit=limit, sorting=sorting, @@ -181,6 +193,9 @@ def next_func() -> Optional[models.OrdersListResponse]: external_customer_id=external_customer_id, checkout_id=checkout_id, subscription_id=subscription_id, + status=status, + created_after=created_after, + created_before=created_before, page=next_page, limit=limit, sorting=sorting, @@ -253,6 +268,11 @@ async def list_async( subscription_id: OptionalNullable[ Union[models.SubscriptionIDFilter, models.SubscriptionIDFilterTypedDict] ] = UNSET, + status: OptionalNullable[ + Union[models.QueryParamStatusFilter, models.QueryParamStatusFilterTypedDict] + ] = UNSET, + created_after: OptionalNullable[datetime] = UNSET, + created_before: OptionalNullable[datetime] = UNSET, page: Optional[int] = 1, limit: Optional[int] = 10, sorting: OptionalNullable[List[models.OrderSortProperty]] = UNSET, @@ -281,6 +301,9 @@ async def list_async( :param external_customer_id: Filter by customer external ID. :param checkout_id: Filter by checkout ID. :param subscription_id: Filter by subscription ID. + :param status: Filter by order status. + :param created_after: Only include orders created after this date + :param created_before: Only include orders created before this date :param page: Page number, defaults to 1. :param limit: Size of a page, defaults to 10. Maximum is 100. :param sorting: Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. @@ -309,6 +332,9 @@ async def list_async( external_customer_id=external_customer_id, checkout_id=checkout_id, subscription_id=subscription_id, + status=status, + created_after=created_after, + created_before=created_before, page=page, limit=limit, sorting=sorting, @@ -379,6 +405,9 @@ def next_func() -> Optional[models.OrdersListResponse]: external_customer_id=external_customer_id, checkout_id=checkout_id, subscription_id=subscription_id, + status=status, + created_after=created_after, + created_before=created_before, page=next_page, limit=limit, sorting=sorting, diff --git a/src/polar_sdk/subscriptions.py b/src/polar_sdk/subscriptions.py index b9239e7f..924f37a4 100644 --- a/src/polar_sdk/subscriptions.py +++ b/src/polar_sdk/subscriptions.py @@ -45,6 +45,8 @@ def list( ] = UNSET, canceled_at_after: OptionalNullable[datetime] = UNSET, canceled_at_before: OptionalNullable[datetime] = UNSET, + started_after: OptionalNullable[datetime] = UNSET, + started_before: OptionalNullable[datetime] = UNSET, page: Optional[int] = 1, limit: Optional[int] = 10, sorting: OptionalNullable[List[models.SubscriptionSortProperty]] = UNSET, @@ -76,6 +78,8 @@ def list( :param customer_cancellation_reason: Filter by customer cancellation reason. :param canceled_at_after: Filter by cancellation date (after or equal to). :param canceled_at_before: Filter by cancellation date (before or equal to). + :param started_after: Only include subscriptions started after this date. + :param started_before: Only include subscriptions started before this date. :param page: Page number, defaults to 1. :param limit: Size of a page, defaults to 10. Maximum is 100. :param sorting: Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. @@ -107,6 +111,8 @@ def list( customer_cancellation_reason=customer_cancellation_reason, canceled_at_after=canceled_at_after, canceled_at_before=canceled_at_before, + started_after=started_after, + started_before=started_before, page=page, limit=limit, sorting=sorting, @@ -180,6 +186,8 @@ def next_func() -> Optional[models.SubscriptionsListResponse]: customer_cancellation_reason=customer_cancellation_reason, canceled_at_after=canceled_at_after, canceled_at_before=canceled_at_before, + started_after=started_after, + started_before=started_before, page=next_page, limit=limit, sorting=sorting, @@ -243,6 +251,8 @@ async def list_async( ] = UNSET, canceled_at_after: OptionalNullable[datetime] = UNSET, canceled_at_before: OptionalNullable[datetime] = UNSET, + started_after: OptionalNullable[datetime] = UNSET, + started_before: OptionalNullable[datetime] = UNSET, page: Optional[int] = 1, limit: Optional[int] = 10, sorting: OptionalNullable[List[models.SubscriptionSortProperty]] = UNSET, @@ -274,6 +284,8 @@ async def list_async( :param customer_cancellation_reason: Filter by customer cancellation reason. :param canceled_at_after: Filter by cancellation date (after or equal to). :param canceled_at_before: Filter by cancellation date (before or equal to). + :param started_after: Only include subscriptions started after this date. + :param started_before: Only include subscriptions started before this date. :param page: Page number, defaults to 1. :param limit: Size of a page, defaults to 10. Maximum is 100. :param sorting: Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. @@ -305,6 +317,8 @@ async def list_async( customer_cancellation_reason=customer_cancellation_reason, canceled_at_after=canceled_at_after, canceled_at_before=canceled_at_before, + started_after=started_after, + started_before=started_before, page=page, limit=limit, sorting=sorting, @@ -378,6 +392,8 @@ def next_func() -> Optional[models.SubscriptionsListResponse]: customer_cancellation_reason=customer_cancellation_reason, canceled_at_after=canceled_at_after, canceled_at_before=canceled_at_before, + started_after=started_after, + started_before=started_before, page=next_page, limit=limit, sorting=sorting, From 828c7355d99b8d8c28a5dd03a8e44a30a57b41c6 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 00:35:49 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow