PUT /admin/companies/customers/{customer_id}/reseller
reseller_id
: int, requiredPUT /api/v1/admin/companies/customers/9/reseller HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json
{
"reseller_id": 8
}
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"
)reseller
: 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 changed.",
"data":{
"data":{
"id":9,
"name":"Betty's Stuff",
"type":"business",
"telephone_number":null,
"mobile_number":null,
"address":"321 Example Road",
"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:44:39+00:00",
"reseller":{
"data":{
"id":8,
"name":"Bob's Company",
"telephone_number":null,
"mobile_number":null,
"address":"123 Fake Street",
"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:13:49+00:00"
}
}
}
}
}