POST customers
type
: string ("business"
, "individual"
)name
: string (Only applies to "business"
type)first_name
: string, requiredlast_name
: string, requiredemail
: string, requiredpassword
: string, requiredpassword_again
: string, requiredaddress
: string, requiredcity
: string, requiredregion
: string, requiredpost_code
: string, requiredcountry
: string, requiredmobile_number
: stringtelephone_number
: stringPOST /api/v1/customers HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json
{
"type": "business",
"name": "New Customer",
"first_name": "Customer",
"last_name": "User",
"email": "customeruser@example.com",
"password": "validpass123",
"password_again": "validpass123",
"address": "123 Example Address",
"city": "Example City",
"region": "Example Region",
"post_code": "123 EXAMPLE",
"country": "US"
}
success
: boolmessages
: string (optional)data
: object
customer_id
: int{
"success":true,
"messages":"Business customer created",
"data":{
"customer_id":2
}
}