import requests
url = "http://localhost:3000/v1/billing/customer/"
payload = {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"metadata": {},
"default_payment_method_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"metadata": {},
"default_payment_method_id": "<string>"
}import requests
url = "http://localhost:3000/v1/billing/customer/"
payload = {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"metadata": {},
"default_payment_method_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "jsmith@example.com",
"name": "<string>",
"phone": "<string>",
"metadata": {},
"default_payment_method_id": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The customer's address. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-address
The customer's email address. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-email
The customer's name. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-name
The customer's phone number. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-phone
A set of key-value pairs that can be attached to a customer object. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-metadata
The ID of the default payment method for the customer.
Successful Response
Unique identifier for the customer
The customer's address. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-address
The customer's email address. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-email
The customer's name. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-name
The customer's phone number. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-phone
A set of key-value pairs that can be attached to a customer object. Check more at https://docs.stripe.com/api/customers/object?api-version=2025-09-30.clover#customer_object-metadata
The ID of the default payment method for the customer.