PUT customers/{id}/update_business
name
: string, requiredaddress
: string, requiredcity
: string, requiredregion
: string, requiredpost_code
: string, requiredcountry
: string, requiredmobile_number
: stringtelephone_number
: stringbilling_address
: stringbilling_city
: stringbilling_region
: stringbilling_post_code
: stringbilling_company_registration_number
: stringbilling_vat_number
: stringPUT /api/v1/customers/1/update_business HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json
{
"name": "Example Customer",
"address": "123 Example Address",
"city": "Example City",
"region": "Example Region",
"post_code": "123 EXAMPLE",
"country": "US",
"mobile_number": "001122334455"
}
data
: object
id
: intname
: stringtelephone_number
: stringmobile_number
: stringaddress
: stringcountry
: stringregion
: stringcity
: stringpost_code
: stringbilling_address
: stringbilling_country
: stringbilling_region
: stringbilling_city
: stringbilling_post_code
: stringbilling_vat_number
: stringbilling_company_registration_number
: stringcreated_at
: string ("2020-12-31T00:00:00+00:00"
)updated_at
: string ("2020-12-31T00:00:00+00:00"
){
"data":{
"id":1,
"name":"Example Customer",
"type":"business",
"telephone_number":null,
"mobile_number":"001122334455",
"address":"123 Example Address",
"country":"US",
"region":"Example Region",
"city":"Example City",
"post_code":"123 EXAMPLE",
"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":"2020-01-01T00:00:00+00:00",
"updated_at":"2020-01-01T00:00:00+00:00"
}
}