Billing Profile is a representation of how a bill is paid, separating payment behavior from customer identity.
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.
{ "created": "2025-01-01T00:00:00.000Z", "customer": "4242", "default_payment_method": "4242", "display_name": "4242", "id": "4242", "lookup_key": "4242", "metadata": { "4242": "4242" }, "object": "4242", "status": "active", "livemode": true}
Create a BillingProfile object.
Learn more about calling API v2 endpoints.Parameters
- customerstringRequired
The ID of the customer object.
- 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.
- 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.
- 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 customer for the provided ID cannot be found.
Returned when associating a billing profile with a deleted customer.
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.
{ "created": "2025-01-01T00:00:00.000Z", "customer": "cus_123", "default_payment_method": "pm_123", "display_name": "Display Name", "id": "bilp_123", "lookup_key": "billing_profile_cus_123", "metadata": { "test": "data" }, "object": "v2.billing.profile", "status": "active", "livemode": true}
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_123", "default_payment_method": "pm_123", "display_name": "Business Profile", "id": "bilp_123", "lookup_key": "business_profile_cus_123", "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_123", "default_payment_method": "pm_123", "display_name": "Display Name", "id": "bilp_123", "lookup_key": "billing_profile_cus_123", "metadata": { "test": "data" }, "object": "v2.billing.profile", "status": "active", "livemode": true}