GET customers
GET /api/v1/customers HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
data
: array[object]
id
: inttype
: string ("business"
, "individual"
)name
: 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-01-01T00:00:00+00:00"
)updated_at
: string ("2020-01-01T00:00:00+00:00"
)meta
: object
first_url
: stringlast_url
: stringnext_url
: stringprevious_url
: stringtotal
: intper_page
: intcurrent_page
: intlast_page
: intfrom
: intto
: int{
"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":""
}
],
"meta":{
"first_url":"https://tph.io/api/v1/customers",
"last_url":"https://tph.io/api/v1/customers?page=1",
"next_url":"https://tph.io/api/v1/customers?page=1",
"previous_url":"https://tph.io/api/v1/customers?page=1",
"total":1,
"per_page":25,
"current_page":1,
"last_page":1,
"from":1,
"to":1
}
}