POST /admin/companies/resellers/{reseller_id}/customers
type
: string, requiredfirst_name
: string, requiredlast_name
: string, requiredemail
: string, requiredpassword
: string, requiredpassword_again
: string, requiredname
: string, requiredcountry
: string, requiredaddress
: stringcity
: stringregion
: stringpost_code
: stringtelephone_number
: stringmobile_number
: stringbilling_address
: stringbilling_city
: stringbilling_region
: stringbilling_post_code
: stringbilling_country
: stringbilling_company_registration_number
: stringbilling_vat_number
: stringcustom_id
: stringcan_top_up
: boolPOST /api/v1/admin/companies/resellers/2/customers HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json
{
"type": "business",
"first_name": "Betty",
"last_name": "Customer",
"email": "bettycustomer@example.com",
"password": "password123",
"password_again": "password123",
"name": "Betty's Stuff",
"country": "GB"
}
success
: boolmessages
: stringdata
: object
data
: object
id
: intname
: stringtype
: stringtelephone_number
: stringmobile_number
: stringaddress
: stringcountry
: stringregion
: stringcity
: stringpost_code
: stringhas_used_trial
: boolbilling_address
: stringbilling_country
: stringbilling_region
: stringbilling_city
: stringbilling_post_code
: stringbilling_vat_number
: stringbilling_company_registration_number
: stringcreated_at
: string ("2020-12-31 00:00:00+00:00"
)updated_at
: string ("2020-12-31 00:00:00+00:00"
){
"success":true,
"messages":"Business customer created.",
"data":{
"data":{
"id":9,
"name":"Betty's Stuff",
"type":"business",
"telephone_number":null,
"mobile_number":null,
"address":null,
"country":"GB",
"region":null,
"city":null,
"post_code":null,
"billing_address":null,
"billing_country":null,
"billing_region":null,
"billing_city":null,
"billing_post_code":null,
"billing_vat_number":null,
"billing_company_registration_number":null,
"created_at":"2018-04-27T16:25:20+00:00",
"updated_at":"2018-04-27T16:25:20+00:00"
}
}
}