Attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.intent"
String representing the object’s type. Objects of the same type share the same value of the object field.
- amount_
detailsobject Breakdown of the amount for this Billing Intent.
- cadencenullable string
ID of an existing Cadence to use.
- createdtimestamp
Time at which the object was created.
- currencystring
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - statusenum
Current status of the Billing Intent.
Possible enum valuescanceled
The Billing Intent is canceled.
committed
The Billing Intent is committed.
draft
The Billing Intent is in draft state.
reserved
The Billing Intent is reserved.
- status_
transitionsobject Timestamps for status transitions of the Billing Intent.
{ "amount_details": { "currency": "usd", "discount": 0, "shipping": 0, "subtotal": 0, "tax": 0, "total": 0 }, "created": "2025-01-01T00:00:00.000Z", "currency": "usd", "effective_at": "current_billing_period_start", "id": "bilint_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "object": "v2.billing.billing_intent", "status": "draft", "status_transitions": { "canceled_at": null, "committed_at": null, "drafted_at": "2025-01-01T00:00:00.000Z", "reserved_at": null }, "livemode": true, "cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy"}
Attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.intent_action"
String representing the object’s type. Objects of the same type share the same value of the object field.
- applynullable objectPreview feature
Details for an apply action.
- createdtimestamp
Time at which the object was created.
- deactivatenullable object
Details for a deactivate action.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - modifynullable object
Details for a modify action.
- removenullable objectPreview feature
Details for a remove action.
- subscribenullable object
Details for a subscribe action.
- typeenum
Type of the Billing Intent Action.
Possible enum valuesapply
Action to apply any adjustments, such as adding an inline discount.
deactivate
Action to deactivate an existing subscription.
modify
Action to modify an existing subscription.
remove
Action to remove adjustments, such as removing a discount.
subscribe
Action to create a new subscription.
{ "created": "2025-01-01T00:00:00.000Z", "id": "bilinti_61T9VNT6aGFjxfNPx16SBbsMNLSQJnWcho4VDz0fYVOq", "object": "v2.billing.intent_action", "type": "subscribe", "livemode": true, "subscribe": { "type": "pricing_plan_subscription_details", "pricing_plan_subscription_details": { "component_configurations": [], "metadata": {}, "pricing_plan": "bpp_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_version": "bppv_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "pricing_plan_subscription": "bpps_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy" } }}
Create a Billing Intent.
Learn more about calling API v2 endpoints.Parameters
- actionsarray of objectsRequired
Actions to be performed by this Billing Intent.
- currencystringRequired
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- cadencestring
ID of an existing Cadence to use.
Returns
Response attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.intent"
String representing the object’s type. Objects of the same type share the same value of the object field.
- amount_
detailsobject Breakdown of the amount for this Billing Intent.
- cadencenullable string
ID of an existing Cadence to use.
- createdtimestamp
Time at which the object was created.
- currencystring
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - statusenum
Current status of the Billing Intent.
Possible enum valuescanceled
The Billing Intent is canceled.
committed
The Billing Intent is committed.
draft
The Billing Intent is in draft state.
reserved
The Billing Intent is reserved.
- status_
transitionsobject Timestamps for status transitions of the Billing Intent.
Returned when the billing intent total amount due is greater than the maximum amount allowed.
Returned when the billing intent total amount due is less than the minimum amount allowed.
Returned when trying to cancel a billing cadence that has already been canceled.
Returned when trying to create or update a billing intent with an inactive billing cadence.
Returned when trying to create a BillingIntent for a currency that is not supported by the billing cadence.
Returned when trying to create a billing intent action with a component configuration for an invalid pricing plan component.
Returned when trying to create a BillingIntent that involves multiple actions on the same object.
Returned when creating a rate card subscription for a billing cadence and the rate card currency does not match the billing cadence currency.
Returned when trying to create a BillingIntent with duplicate actions.
Returned when trying to create a billing intent action with multiple component configurations for the same pricing plan component.
Returned by billing cadences when invalid dates for a billing cycle are set.
Returned when creating or updating a cadence with a deleted customer.
Returned when trying to apply a discount with an invalid percent_off value.
Returned when the effective_at parameter is not a past timestamp.
Returned when trying to subscribe to a pricing plan that does not have any components on the version.
Returned when creating a rate card subscription for a billing cadence and the rate card currency does not match the billing cadence currency.
Returned when the license fee servicing interval exceeds the billing cadence cycle length.
Returned when the ManualTaxConfiguration is inactive.
Returned when applying a discount without a discount function.
Returned when the price currency does not match the billing intent currency.
Returned when the price interval is different than the billing cadence cycle interval.
Returned when trying to create a BillingIntent for a currency that is not supported by the PricingPlan.
Returned when trying to create or modify a subscription for an inactive pricing plan.
Returned when a user tries to create a pricing plan subscription for a billing cadence that has already subscribed to the same pricing plan.
Returned when a user tries to create a rate card subscription for a billing cadence that has already subscribed to the same rate card.
Returned when removing a discount without providing a cadence.
Returned when applying a discount without providing a cadence or cadence_data.
Returned when the rate card servicing interval exceeds the billing cadence cycle length.
Returned when a user tries to create a pricing plan subscription for a billing cadence that has already reached the limit of active pricing plan subscriptions.
Returned when a user tries to create a rate card subscription for a billing cadence that has already reached the limit of active subscriptions.
Returned when trying to create a billing intent with too many billing intent actions.
Returned when no rates can be found for the given rate card ID and version.
Returned when the bill settings ID cannot be found.
Returned when the provided bill settings version ID cannot be found.
Returned when the provided billing_cadence ID cannot be found.
Returned when the collection settings ID cannot be found.
Returned when the provided collection settings version ID cannot be found.
Returned when the customer for the provided ID cannot be found.
Returned when removing a non-existent discount, or when the discount is not found for the cadence.
Returned when no ManualTaxConfiguration object was found for the given ID.
Returned when the provided price ID cannot be found.
Returned when the provided pricing_plan_component ID cannot be found.
Returned when the provided pricing_plan ID cannot be found.
Returned when a pricing plan subscription with the provided ID cannot be found.
Returned when the provided pricing_plan_version ID cannot be found.
{ "amount_details": { "currency": "usd", "discount": 0, "shipping": 0, "subtotal": 2000, "tax": 200, "total": 2200 }, "created": "2025-01-01T00:00:00.000Z", "currency": "usd", "id": "bilint_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "object": "v2.billing.billing_intent", "status": "draft", "status_transitions": { "canceled_at": null, "committed_at": null, "drafted_at": "2025-01-01T00:00:00.000Z", "reserved_at": null }, "livemode": true, "cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy"}
Retrieve a Billing Intent.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the Billing Intent to retrieve.
Returns
Response attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.intent"
String representing the object’s type. Objects of the same type share the same value of the object field.
- amount_
detailsobject Breakdown of the amount for this Billing Intent.
- cadencenullable string
ID of an existing Cadence to use.
- createdtimestamp
Time at which the object was created.
- currencystring
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - statusenum
Current status of the Billing Intent.
Possible enum valuescanceled
The Billing Intent is canceled.
committed
The Billing Intent is committed.
draft
The Billing Intent is in draft state.
reserved
The Billing Intent is reserved.
- status_
transitionsobject Timestamps for status transitions of the Billing Intent.
Returned when billing intent is not found.
{ "amount_details": { "currency": "usd", "discount": 0, "shipping": 0, "subtotal": 2000, "tax": 200, "total": 2200 }, "created": "2025-01-01T00:00:00.000Z", "currency": "usd", "id": "bilint_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy", "object": "v2.billing.billing_intent", "status": "draft", "status_transitions": { "canceled_at": null, "committed_at": null, "drafted_at": "2025-01-01T00:00:00.000Z", "reserved_at": null }, "livemode": true, "cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy"}
Retrieve a Billing Intent Action.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
ID of the Billing Intent Action to retrieve.
- intent_
idstringRequired The ID of the Billing Intent the Billing Intent Action belongs to.
Returns
Response attributes
- idstring
Unique identifier for the object.
- objectstring, value is "v2.billing.intent_action"
String representing the object’s type. Objects of the same type share the same value of the object field.
- applynullable objectPreview feature
Details for an apply action.
- createdtimestamp
Time at which the object was created.
- deactivatenullable object
Details for a deactivate action.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - modifynullable object
Details for a modify action.
- removenullable objectPreview feature
Details for a remove action.
- subscribenullable object
Details for a subscribe action.
- typeenum
Type of the Billing Intent Action.
Possible enum valuesapply
Action to apply any adjustments, such as adding an inline discount.
deactivate
Action to deactivate an existing subscription.
modify
Action to modify an existing subscription.
remove
Action to remove adjustments, such as removing a discount.
subscribe
Action to create a new subscription.
Returned when Billing Intent Action is not found.
Returned when billing intent is not found.
{ "created": "2025-01-01T00:00:00.000Z", "id": "bilinti_61T9VNT6aGFjxfNPx16SBbsMNLSQJnWcho4VDz0fYVOq", "object": "v2.billing.intent_action", "type": "subscribe", "livemode": true, "subscribe": { "type": "pricing_plan_subscription_details" }}