Update customer information

📘

API Refs

Path parameters

NameTypeDescriptionRequired
idstringStripe customer ID (starting with "cus_")yes

Request body

All fields are optional - only include fields you want to update.

NameTypeDescriptionRequired
emailstringUpdated email addressno
firstNamestringUpdated first nameno
lastNamestringUpdated last nameno
phonestringUpdated phone numberno
addressobjectUpdated addressno

Address Object

FieldTypeDescriptionRequired
streetstringStreet addressno
citystringCityno
statestringState or provinceno
postalCodestringPostal/ZIP codeno

Response

Success Response (200 OK)

FieldTypeDescription
idstringCustomer ID
emailstringUpdated email
stripeCustomerIdstringStripe customer ID (read-only)
firstNamestringUpdated first name
lastNamestringUpdated last name
phonestringUpdated phone
addressobjectUpdated address
createdAtstringCustomer creation date (ISO 8601)
updatedAtstringUpdate timestamp (ISO 8601)

Example Request

{
  "email": "[email protected]",
  "firstName": "John",
  "lastName": "Doe-Smith",
  "phone": "+19876543210",
  "address": {
    "street": "456 Business Ave",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  }
}

Example Response

{
  "id": "123",
  "email": "[email protected]",
  "stripeCustomerId": "cus_ExampleCustomerID123",
  "firstName": "John",
  "lastName": "Doe-Smith",
  "phone": "+19876543210",
  "address": {
    "street": "456 Business Ave",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "createdAt": "2023-12-01T00:00:00.000Z",
  "updatedAt": "2024-01-20T14:30:00.000Z"
}

Description

This endpoint updates customer information such as contact details and address. Only include the fields you want to update in the request body - any fields not included will remain unchanged. Changes are synchronized with Stripe automatically.

Note: You cannot update payment methods through this endpoint. Customers should use the billing portal for payment method management.

Error Responses

  • 400 Bad Request: Invalid update data or email format
  • 401 Unauthorized: Invalid or missing authorization token
  • 403 Forbidden: Insufficient permissions
  • 404 Not Found: Customer not found