Index of companies

GET /admin/companies

Example Request

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

Response Structure

  • data: array[object]
    • id: int
    • name: string
    • telephone_number: string
    • mobile_number: string
    • address: string
    • country: string
    • region: string
    • city: string
    • post_code: string
    • has_used_trial: bool
    • 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-31 00:00:00+00:00")
    • updated_at: string ("2020-12-31 00:00:00+00:00")
  • meta: object
    • first_url: string
    • last_url: string
    • next_url: string
    • previous_url: string
    • total: int
    • per_page: int
    • current_page: int
    • last_page: int
    • from: int
    • to: int

Example Response

{
  "data":[
    {
      "id":2,
      "name":"Example Reseller",
      "telephone_number":null,
     "mobile_number":null,
      "address":"",
      "country":null,
      "region":null,
      "city":null,
      "post_code":null,
      "has_used_trial":false,
      "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-11T10:10:17+00:00",
      "updated_at":"2018-04-11T10:10:17+00:00"
    },
    {
      "id":3,
      "name":"Example Customer",
      "telephone_number":null,
      "mobile_number":null,
      "address":"",
      "country":null,
      "region":null,
      "city":null,
      "post_code":null,
      "has_used_trial":false,
      "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-11T10:10:17+00:00",
      "updated_at":"2018-04-11T10:10:17+00:00"
    }
  ],
  "meta":{
    "first_url":"https://tph.io/api/v1/admin/companies",
    "last_url":"https://tph.io/api/v1/admin/companies?page=1",
    "next_url":"https://tph.io/api/v1/admin/companies?page=1",
    "previous_url":"https://tph.io/api/v1/admin/companies?page=1",
    "total":7,
    "per_page":50,
    "current_page":1,
    "last_page":1,
    "from":1,
    "to":7
  }
}