Customers
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
- Base URLhttps://sandbox-api.ryftpay.com/v1
- URLhttps://sandbox-api.ryftpay.com/v1/customers
- AuthAPI key in header Authorization
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
}Changes
No recorded changes to this operation across all 10 revisions of this API.