Attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.pricing_plan_subscription"
String representing the object’s type. Objects of the same type share the same value of the object field.
- billing_
cadencestring The ID of the Billing Cadence this subscription is billed on.
- collection_
statusenum Current collection status of this subscription.
Possible enum valuesawaiting_
customer_ action The subscription payment is pending and requires customer action.
current
The subscription is in good standing. All payments have been successfully processed.
past_
due The subscription is currently overdue for payment. We are actively attempting to process the payment.
paused
Payment collection for the subscription is temporarily paused. The subscription may be resumed in the future, but no payments are being processed at this time.
unpaid
All attempts to collect payment for the subscription have been unsuccessful, and the outstanding balance is marked as uncollectible.
- collection_
status_ transitionsobject Timestamps for collection status transitions.
- createdtimestamp
Time at which the object was created.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - metadatanullable map
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- pricing_
planstring The ID of the Pricing Plan for this subscription.
- pricing_
plan_ versionstring The ID of the Pricing Plan Version for this subscription.
- servicing_
statusenum Current servicing status of this subscription.
Possible enum valuesactive
The provisionee of this subscription is receiving servicing.
canceled
Servicing for this subscription is canceled.
paused
The servicing for the provisionee of this subscription is paused.
pending
The subscription is pending a successful payment and is not being serviced yet.
- servicing_
status_ transitionsobject Timestamps for servicing status transitions.
- test_
clocknullable string The ID of the Test Clock of the associated Billing Cadence, if any.
{ "billing_cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "cancelation_scheduled_for": "2025-01-01T00:00:00.000Z", "collection_status": "current", "collection_status_transitions": { "awaiting_customer_action_at": null, "current_at": "2025-01-01T00:00:00.000Z", "past_due_at": null, "paused_at": null, "unpaid_at": null }, "created": "2025-01-01T00:00:00.000Z", "id": "bpps_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "metadata": { "key": "value" }, "object": "v2.billing.pricing_plan_subscription", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "servicing_status": "active", "servicing_status_transitions": { "activated_at": "2025-01-01T00:00:00.000Z", "canceled_at": null, "paused_at": null }, "test_clock": "clock_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "livemode": true}
Update a PricingPlanSubscription object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlanSubscription to update.
- metadatamap
Set of key-value pairs that you can attach to an object.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlanSubscription.
- objectstring, value is "v2.billing.pricing_plan_subscription"
String representing the object’s type. Objects of the same type share the same value of the object field.
- billing_
cadencestring The ID of the Cadence this subscription is billed on.
- cancellation_
scheduled_ fornullable timestamp Time at which this subscription will be canceled.
- collection_
statusenum Current collection status of this subscription.
Possible enum valuesawaiting_
customer_ action The subscription payment is pending and requires customer action.
current
The subscription is in good standing. All payments have been successfully processed.
past_
due The subscription is currently overdue for payment. We are actively attempting to process the payment.
paused
Payment collection for the subscription is temporarily paused. The subscription may be resumed in the future, but no payments are being processed at this time.
unpaid
All attempts to collect payment for the subscription have been unsuccessful, and the outstanding balance is marked as uncollectible.
- collection_
status_ transitionsobject Timestamps for collection status transitions.
- createdtimestamp
Time at which the object was created.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - metadatanullable map
Set of key-value pairs that you can attach to an object.
- pricing_
planstring The ID of the PricingPlan for this subscription.
- pricing_
plan_ versionstring The ID of the PricingPlanVersion for this subscription.
- servicing_
statusenum Current servicing status of this subscription.
Possible enum valuesactive
The provisionee of this subscription is receiving servicing.
canceled
Servicing for this subscription is canceled.
paused
The servicing for the provisionee of this subscription is paused.
pending
The subscription is pending a successful payment and is not being serviced yet.
- servicing_
status_ transitionsobject Timestamps for servicing status transitions.
- test_
clocknullable string The ID of the TestClock of the associated Cadence, if any.
Returned when trying to update a pricing plan subscription with servicing status canceled
.
Returned when a pricing plan subscription with the provided ID cannot be found.
{ "billing_cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "collection_status": "awaiting_customer_action", "collection_status_transitions": { "awaiting_customer_action_at": null, "current_at": "2025-01-01T00:00:00.000Z", "past_due_at": null, "paused_at": null, "unpaid_at": null }, "created": "2025-01-01T00:00:00.000Z", "id": "bpps_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "metadata": { "existing_key": "updated_value", "new_key": "new_value" }, "object": "v2.billing.pricing_plan_subscription", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "servicing_status": "active", "servicing_status_transitions": { "activated_at": "2025-01-01T00:00:00.000Z", "canceled_at": null, "paused_at": null }, "test_clock": "clock_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "livemode": true}
Retrieve a Pricing Plan Subscription object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the Pricing Plan Subscription to retrieve.
Returns
Response attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.pricing_plan_subscription"
String representing the object’s type. Objects of the same type share the same value of the object field.
- billing_
cadencestring The ID of the Billing Cadence this subscription is billed on.
- collection_
statusenum Current collection status of this subscription.
Possible enum valuesawaiting_
customer_ action The subscription payment is pending and requires customer action.
current
The subscription is in good standing. All payments have been successfully processed.
past_
due The subscription is currently overdue for payment. We are actively attempting to process the payment.
paused
Payment collection for the subscription is temporarily paused. The subscription may be resumed in the future, but no payments are being processed at this time.
unpaid
All attempts to collect payment for the subscription have been unsuccessful, and the outstanding balance is marked as uncollectible.
- collection_
status_ transitionsobject Timestamps for collection status transitions.
- createdtimestamp
Time at which the object was created.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - metadatanullable map
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- pricing_
planstring The ID of the Pricing Plan for this subscription.
- pricing_
plan_ versionstring The ID of the Pricing Plan Version for this subscription.
- servicing_
statusenum Current servicing status of this subscription.
Possible enum valuesactive
The provisionee of this subscription is receiving servicing.
canceled
Servicing for this subscription is canceled.
paused
The servicing for the provisionee of this subscription is paused.
pending
The subscription is pending a successful payment and is not being serviced yet.
- servicing_
status_ transitionsobject Timestamps for servicing status transitions.
- test_
clocknullable string The ID of the Test Clock of the associated Billing Cadence, if any.
Returned when a pricing plan subscription with the provided ID cannot be found.
{ "billing_cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "collection_status": "current", "collection_status_transitions": { "awaiting_customer_action_at": null, "current_at": "2025-01-01T00:00:00.000Z", "past_due_at": null, "paused_at": null, "unpaid_at": null }, "created": "2025-01-01T00:00:00.000Z", "id": "bpps_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "metadata": { "order-id": "1234567890" }, "object": "v2.billing.pricing_plan_subscription", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "servicing_status": "active", "servicing_status_transitions": { "activated_at": "2025-01-01T00:00:00.000Z", "canceled_at": null, "paused_at": null }, "test_clock": "clock_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "livemode": true}
List all Pricing Plan Subscription objects.
Learn more about calling API v2 endpoints.Parameters
- billing_
cadencestring Filter by Billing Cadence ID. Mutually exclusive with
payer
,pricing_
, andplan pricing_
.plan_ version - limitinteger
Optionally set the maximum number of results per page. Defaults to 20.
- pagestring
A cursor for use in pagination.
- payerobject
Filter by payer. Mutually exclusive with
billing_
,cadence pricing_
, andplan pricing_
.plan_ version - pricing_
planstring Filter by PricingPlan ID. Mutually exlcusive with
billing_
,cadence payer
, andpricing_
.plan_ version - pricing_
plan_ versionstring Filter by Pricing Plan Version ID. Mutually exlcusive with
billing_
,cadence payer
, andpricing_
.plan - servicing_
statusenum Filter by servicing status.
Possible enum valuesactive
The provisionee of this subscription is receiving servicing.
canceled
Servicing for this subscription is canceled.
paused
The servicing for the provisionee of this subscription is paused.
pending
The subscription is pending a successful payment and is not being serviced yet.
Returns
Response attributes
- dataarray of objects
List of Pricing Plan Subscriptions.
- next_
page_ urlnullable string The URL to get the next page of results, if there are any.
- previous_
page_ urlnullable string The URL to get the previous page of results, if there are any.
Returned when the provided billing_cadence ID cannot be found.
Returned when the customer for the provided ID cannot be found.
Returned when the provided pricing_plan ID cannot be found.
Returned when the provided pricing_plan_version ID cannot be found.
{ "data": [ { "billing_cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "collection_status": "current", "collection_status_transitions": { "awaiting_customer_action_at": null, "current_at": "2025-01-01T00:00:00.000Z", "past_due_at": null, "paused_at": null, "unpaid_at": null }, "created": "2025-01-01T00:00:00.000Z", "id": "bpps_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "metadata": { "key": "value" }, "object": "v2.billing.pricing_plan_subscription", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "servicing_status": "active", "servicing_status_transitions": { "activated_at": "2025-01-01T00:00:00.000Z", "canceled_at": null, "paused_at": null }, "test_clock": "clock_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "livemode": true } ], "next_page_url": null, "previous_page_url": null}
Cancel a PricingPlanSubscription.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the PricingPlanSubscription to cancel.
- cancellation_
scheduled_ forenum Optionally, schedule the PricingPlanSubscription to be canceled in the future.
Possible enum valuesmax_
servicing_ period_ end Subscription will be canceled at the latest occuring end of a servicing period.
min_
servicing_ period_ end Subscription will be canceled at the earliest occuring end of a servicing period.
Returns
Response attributes
- idstring
Unique identifier for the PricingPlanSubscription.
- objectstring, value is "v2.billing.pricing_plan_subscription"
String representing the object’s type. Objects of the same type share the same value of the object field.
- billing_
cadencestring The ID of the Cadence this subscription is billed on.
- cancellation_
scheduled_ fornullable timestamp Time at which this subscription will be canceled.
- collection_
statusenum Current collection status of this subscription.
Possible enum valuesawaiting_
customer_ action The subscription payment is pending and requires customer action.
current
The subscription is in good standing. All payments have been successfully processed.
past_
due The subscription is currently overdue for payment. We are actively attempting to process the payment.
paused
Payment collection for the subscription is temporarily paused. The subscription may be resumed in the future, but no payments are being processed at this time.
unpaid
All attempts to collect payment for the subscription have been unsuccessful, and the outstanding balance is marked as uncollectible.
- collection_
status_ transitionsobject Timestamps for collection status transitions.
- createdtimestamp
Time at which the object was created.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - metadatanullable map
Set of key-value pairs that you can attach to an object.
- pricing_
planstring The ID of the PricingPlan for this subscription.
- pricing_
plan_ versionstring The ID of the PricingPlanVersion for this subscription.
- servicing_
statusenum Current servicing status of this subscription.
Possible enum valuesactive
The provisionee of this subscription is receiving servicing.
canceled
Servicing for this subscription is canceled.
paused
The servicing for the provisionee of this subscription is paused.
pending
The subscription is pending a successful payment and is not being serviced yet.
- servicing_
status_ transitionsobject Timestamps for servicing status transitions.
- test_
clocknullable string The ID of the TestClock of the associated Cadence, if any.
Returned when trying to cancel a pricing plan subscription with servicing status canceled
.
Returned when a pricing plan subscription with the provided ID cannot be found.
{ "billing_cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "collection_status": "current", "collection_status_transitions": { "awaiting_customer_action_at": null, "current_at": "2024-12-01T00:00:00.000Z", "past_due_at": null, "paused_at": null, "unpaid_at": null }, "created": "2025-01-01T00:00:00.000Z", "id": "bpps_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "metadata": { "key": "value" }, "object": "v2.billing.pricing_plan_subscription", "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "servicing_status": "active", "servicing_status_transitions": { "activated_at": "2024-12-01T00:00:00.000Z", "canceled_at": null, "paused_at": null }, "test_clock": "clock_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "livemode": true}