POST /admin/companies/resellers
first_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
: stringPOST /api/v1/admin/companies/resellers HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json
{
"first_name": "Bob",
"last_name": "Testerson",
"email": "bobtesterson@example.com",
"password": "password123",
"password_again": "password123",
"name": "Bob's Company",
"country": "GB"
}
success
: boolmessages
: stringdata
: object
data
: object
id
: intname
: 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":"Reseller has been created.",
"data":{
"data":{
"id":8,
"name":"Bob's Company",
"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:10:41+00:00",
"updated_at":"2018-04-27T16:10:41+00:00"
}
}
}