v1
latestOpenAPI 3.0.02026-08-0696238481.7 KBCustomers
Creates a new customer within your account
This is for creating customers within your Ryft account (to enable features such as saved payment methods)
post/customers
Request body
Example request
{
"email": "example@example.com",
"firstName": "Jeff",
"lastName": "Bridges",
"homePhoneNumber": "+447900000000",
"mobilePhoneNumber": "+447900000000",
"metadata": {
"customerId": "1",
"registeredTimestamp": "123"
}
}Response
The customer was created successfully
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
}