v1
latestOpenAPI 3.0.02026-08-0696238481.7 KBCustomers
Update a customer by Id
This is used to update an existing customer
patch/customers/{customerId}
Path parameters
customerIdstring required
Example:cus_01FCTS1XMKH9FF43CAFA4CXT3P
Customer to update
Request body
Example request
{
"firstName": "Jeff",
"lastName": "Bridges",
"homePhoneNumber": "+447900000000",
"mobilePhoneNumber": "+447900000000",
"metadata": {
"customerId": "1",
"registered": "123"
},
"defaultPaymentMethod": "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ"
}Response
Successfully updated the given Customer
Example response
{
"id": "cus_01G0EYVFR02KBBVE2YWQ8AKMGJ",
"email": "test@ryftpay.com",
"firstName": "Jeff",
"lastName": "Bridges",
"homePhoneNumber": "+447900000000",
"mobilePhoneNumber": "+447900000000",
"defaultPaymentMethod": "pmt_01G0EYVFR02KBBVE2YWQ8AKMGJ",
"metadata": {
"customerId": "1",
"registered": "123"
},
"createdTimestamp": 1470989538
}