List Billing Intent Actions.
Learn more about calling API v2 endpoints.Parameters
- intent_
idstringRequired ID of the Billing Intent to list Billing Intent Actions for.
- limitinteger
Optionally set the maximum number of results per page. Defaults to 10.
- pagestring
Opaque page token.
Returns
Response attributes
- dataarray of objects
List of Billing Intent Actions.
- 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 billing intent is not found.
{ "data": [ { "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" } } ], "next_page_url": null, "previous_page_url": null}
List Billing Intents.
Learn more about calling API v2 endpoints.Parameters
- limitinteger
Optionally set the maximum number of results per page. Defaults to 10.
- pagestring
Opaque page token.
Returns
Response attributes
- dataarray of objects
List of Billing Intent objects.
- 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.
{ "data": [ { "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" } ], "next_page_url": null, "previous_page_url": null}
Cancel a Billing Intent.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the Billing Intent to cancel.
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 committed or canceled.
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": "canceled", "status_transitions": { "canceled_at": "2025-01-05T00:00:00.000Z", "committed_at": null, "drafted_at": "2025-01-01T00:00:00.000Z", "reserved_at": null }, "livemode": true, "cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy"}
Commit a Billing Intent.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the Billing Intent to commit.
- payment_
intentstring ID of the PaymentIntent associated with this commit.
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 trying to commit a billing intent and the status is not in reserved.
Returned when the payment intent does not have an amount matching the billing intent’s total amount.
Returned when the payment intent customer does not match the billing cadence payer.
Returned when the payment intent does not have a succeeded status.
Returned when a payment intent is provided for a billing intent with a non-positive total amount.
Returned when a payment intent is provided and the billing cadence has a send_
collection setting.
Returned when a payment intent is required to commit the billing intent.
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 billing intent is not found.
Returned when payment intent is not found.
Returned when payment record 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": "committed", "status_transitions": { "canceled_at": null, "committed_at": "2025-01-01T00:00:00.000Z", "drafted_at": "2025-01-01T00:00:00.000Z", "reserved_at": "2025-01-01T00:00:00.000Z" }, "livemode": true, "cadence": "bc_61SbQ4ZVMJ2ESqq2416S40x4RVA8P2F2ShZStd6x6RCy"}
Release a Billing Intent.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the Billing Intent to release.
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 reserved.
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"}