# Update a customer by Id This is used to update an existing customer Endpoint: PATCH /customers/{customerId} Version: 1.1.0 Security: secretApiKeyAuth ## Path parameters: - `customerId` (string, required) Customer to update Example: "cus_01FCTS1XMKH9FF43CAFA4CXT3P" ## Request fields (application/json): - `firstName` (string,null) The first name of the customer Example: "Jeff" - `lastName` (string,null) The last name of the customer Example: "Bridges" - `homePhoneNumber` (string,null) The home phone number of the customer. Must be in E.164 format Example: "+447900000000" - `mobilePhoneNumber` (string,null) The mobile phone number of the customer. Must be in E.164 format Example: "+447900000000" - `metadata` (object,null) use this parameter to attach key-value data to the customer. These will be sent with any associated customer events on your webhooks. You can have a maximum of 5 pieces of metadata. Example: {"customerId":"1","registered":"123"} - `defaultPaymentMethod` (string,null) The Id of the customer's preferred/default payment method Example: "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ" ## Response 200 fields (application/json): - `id` (string) The ID of the customer Example: "cus_01G0EYVFR02KBBVE2YWQ8AKMGJ" - `email` (string) The customer's email address Example: "test@ryftpay.com" - `firstName` (string,null) The first name of the customer Example: "Jeff" - `lastName` (string,null) The last name of the customer Example: "Bridges" - `homePhoneNumber` (string,null) The home phone number of the customer. In E.164 format Example: "+447900000000" - `mobilePhoneNumber` (string,null) The mobile phone number of the customer. In E.164 format Example: "+447900000000" - `defaultPaymentMethod` (string,null) The Id of the customer's preferred/default payment method Example: "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ" - `metadata` (object,null) use this parameter to attach key-value data to the customer. These will be sent with any associated customer events on your webhooks. You can have a maximum of 5 pieces of metadata. Example: {"customerId":"1","registered":"123"} - `createdTimestamp` (integer) The epoch timestamp (seconds) when the customer was created Example: 1470989538 ## Response 404 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON" ## Response 500 fields (application/json): - `requestId` (string) Example: "b83f2653-06d7-44a9-a548-5825e8186004" - `code` (string) Example: "400" - `errors` (array) - `errors.message` (string) Example: "Required property 'amount' not found in JSON"