Update a BillingProfile object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the billing profile to update.
- default_
payment_ methodstring The ID of the payment method object.
- display_
namestring A customer-facing name for the billing profile. Maximum length of 250 characters. To remove the display_name from the object, set it to null in the request.
- lookup_
keystring An internal key you can use to search for a particular billing profile. It must be unique among billing profiles for a given customer. Maximum length of 200 characters. To remove the lookup_key from the object, set it to null in the request.
- metadatamap
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.
Returns
Response attributes
- idstring
The ID of the billing profile object.
- objectstring, value is "v2.billing.profile"
String representing the object’s type. Objects of the same type share the same value of the object field.
- createdtimestamp
Timestamp of when the object was created.
- customernullable string
The ID of the customer object.
- default_
payment_ methodnullable string The ID of the payment method object.
- display_
namenullable string A customer-facing name for the billing profile. Maximum length of 250 characters.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lookup_
keynullable string An internal key you can use to search for a particular billing profile. Maximum length of 200 characters.
- 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.
- statusenum
The current status of the billing profile.
Possible enum valuesactive
The billing profile is active.
inactive
The billing profile is inactive and cannot be used.
Returned when the Lookup Key already exists for another billing profile for this customer.
Returned when the payment method belongs to a different customer.
Returned when the payment method for the provided ID cannot be found.
Returned when the Billing Profile for the provided ID cannot be found.
{ "created": "2025-01-01T00:00:00.000Z", "customer": "cus_SM22QFjZh7DtOo", "default_payment_method": "pm_1RRJyOCZPkOPzJLWkaBPKr4J ", "display_name": "Business Profile", "id": "bilp_61SahwKGATwuyXMY516SBbsMNLSQJnWcho4VDz0fYLKi", "lookup_key": "business_profile_cus_SM22QFjZh7DtOo", "metadata": { "test": "data" }, "object": "v2.billing.profile", "status": "active", "livemode": true}
Retrieve a BillingProfile object.
Learn more about calling API v2 endpoints.Parameters
- idstringRequired
The ID of the billing profile to Retrieve.
Returns
Response attributes
- idstring
The ID of the billing profile object.
- objectstring, value is "v2.billing.profile"
String representing the object’s type. Objects of the same type share the same value of the object field.
- createdtimestamp
Timestamp of when the object was created.
- customernullable string
The ID of the customer object.
- default_
payment_ methodnullable string The ID of the payment method object.
- display_
namenullable string A customer-facing name for the billing profile. Maximum length of 250 characters.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - lookup_
keynullable string An internal key you can use to search for a particular billing profile. Maximum length of 200 characters.
- 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.
- statusenum
The current status of the billing profile.
Possible enum valuesactive
The billing profile is active.
inactive
The billing profile is inactive and cannot be used.
Returned when the Billing Profile for the provided ID cannot be found.
{ "created": "2025-01-01T00:00:00.000Z", "customer": "cus_SM22QFjZh7DtOo", "default_payment_method": "pm_1RRJyOCZPkOPzJLWkaBPKr4J ", "display_name": "Display Name", "id": "bilp_61SahwKGATwuyXMY516SBbsMNLSQJnWcho4VDz0fYLKi", "lookup_key": "billing_profile_cus_SM22QFjZh7DtOo", "metadata": { "test": "data" }, "object": "v2.billing.profile", "status": "active", "livemode": true}
List Billing Profiles.
Learn more about calling API v2 endpoints.Parameters
- lookup_
keysarray of stringsRequired Filter billing profiles by lookup keys. Mutually exclusive with
customer
anddefault_
. You can specify up to 10 lookup_keys.payment_ method - customerstring
Filter billing profiles by a customer. Mutually exclusive with
lookup_
andkeys default_
.payment_ method - default_
payment_ methodstring Filter billing profiles by a default payment method. Mutually exclusive with
customer
andlookup_
.keys - limitinteger
Optionally set the maximum number of results per page. Defaults to 10.
- pagestring
Opaque page token.
- statusenum
Filter billing profiles by status. Can be combined with all other filters. If not provided, all billing profiles will be returned.
Possible enum valuesactive
The billing profile is active.
inactive
The billing profile is inactive and cannot be used.
Returns
Response attributes
- dataarray of objects
The retrieved Profile objects.
- next_
page_ urlnullable string The URL of the next page of results, if there is one.
- previous_
page_ urlnullable string The URL of the previous page of results, if there is one.
Returned when the customer for the provided ID cannot be found.
Returned when the payment method for the provided ID cannot be found.
{ "data": [ { "created": "2025-01-01T00:00:00.000Z", "customer": "cus_SM22QFjZh7DtOo", "default_payment_method": "pm_1RRJyOCZPkOPzJLWkaBPKr4J ", "display_name": "Display Name", "id": "bilp_61SahwKGATwuyXMY516SBbsMNLSQJnWcho4VDz0fYLKi", "lookup_key": "billing_profile_cus_SM22QFjZh7DtOo", "metadata": { "test": "data" }, "object": "v2.billing.profile", "status": "active", "livemode": true } ]}
A Billing Intent represents a request to create, modify or cancel subscriptions.
A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.