Add reseller

POST /admin/companies/resellers

Request Structure

  • first_name: string, required
  • last_name: string, required
  • email: string, required
  • password: string, required
  • password_again: string, required
  • name: string, required
  • country: string, required
  • address: string
  • city: string
  • region: string
  • post_code: string
  • telephone_number: string
  • mobile_number: string
  • billing_address: string
  • billing_city: string
  • billing_region: string
  • billing_post_code: string
  • billing_country: string
  • billing_company_registration_number: string
  • billing_vat_number: string
  • custom_id: string

Example Request

POST /api/v1/admin/companies/resellers HTTP/1.1
Host: tph.io
X-Token: c9c0a840-b5f1-4e0e-84da-e8a4eedfc63b
Content-Type: application/json
{
    "first_name": "Bob",
    "last_name": "Testerson",
    "email": "bobtesterson@example.com",
    "password": "password123",
    "password_again": "password123",
    "name": "Bob's Company",
    "country": "GB"
}

Response Structure

  • success: bool
  • messages: string
  • data: object
    • data: 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")

Example Response

{
  "success":true,
  "messages":"Reseller has been created.",
  "data":{
    "data":{
      "id":8,
      "name":"Bob's Company",
      "telephone_number":null,
      "mobile_number":null,
      "address":null,
      "country":"GB",
      "region":null,
      "city":null,
      "post_code":null,
      "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-27T16:10:41+00:00",
      "updated_at":"2018-04-27T16:10:41+00:00"
    }
  }
}