View single customer

GET customers/{id}

Example Request

GET /api/v1/customers/1 HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b

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-01-01T00:00:00+00:00")
    • updated_at: string ("2020-01-01T00:00:00+00:00")

Example Response

{
  "data":{
    "id":1,
    "name":"Example Customer",
    "type":"business",
    "telephone_number":"0123456789",
    "mobile_number":"0987654321",
    "address":"123 Example Address",
    "country":"US",
    "region":"Example Region",
    "city":"Example City",
    "post_code":"123 EXAMPLE",
    "billing_address":"",
    "billing_country":"",
    "billing_region":"",
    "billing_city":"",
    "billing_post_code":"",
    "billing_vat_number":"",
    "billing_company_registration_number":"",
    "created_at":"2020-12-31T00:00:00+00:00",
    "updated_at":"2020-12-31T00:00:00+00:00"
  }
}