Update business customer

PUT customers/{id}/update_business

Request Structure
  • name: string, required
  • address: string, required
  • city: string, required
  • region: string, required
  • post_code: string, required
  • country: string, required
  • mobile_number: string
  • telephone_number: string
  • billing_address: string
  • billing_city: string
  • billing_region: string
  • billing_post_code: string
  • billing_company_registration_number: string
  • billing_vat_number: string
Example Request
PUT /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"
}
Response Structure
  • data: object
    • id: int
    • name: string
    • telephone_number: string
    • mobile_number: string
    • address: string
    • country: string
    • region: string
    • city: string
    • post_code: string
    • billing_address: string
    • billing_country: string
    • billing_region: string
    • billing_city: string
    • billing_post_code: string
    • billing_vat_number: string
    • billing_company_registration_number: string
    • created_at: string ("2020-12-31T00:00:00+00:00")
    • updated_at: string ("2020-12-31T00:00:00+00:00")
Example Response
{
  "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"
  }
}