Users > Company

Complete operator registration. Create current operator’s company

POST create company

Endpoint

POST /api/v1/users/company

Parameters

Name Description
company[name] required Company name
company[address] required Company address
company[license_number] required Company license number
company[first_name] required Company first name
company[last_name] required Company last name
company[contact_phone_number] required Company contact phone number

Request

Route

POST /api/v1/users/company

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjI5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg4LCJleHAiOjE3NDAxNDM1ODgsImp0aSI6IjhkZmNlYTlhLTRjODktNDZkMC1hNjY3LTg0NGU4ZTNhMjhlYSJ9.3HpBjWLpnO5VYxm7YP7yUvSpImh9pv-yK4G4MYuworI
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Windler, Reilly and Kessler",
    "address": "Suite 629 8847 Coralee Wells, Lake Buddyside, NV Y9K 0DN",
    "license_number": "89467547005",
    "first_name": "Micah",
    "last_name": "Gutkowski",
    "contact_phone_number": "+4407123029579"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"87e449b096f3a38d6e6c97583a1e1716"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1ca571ba-0231-4849-8b52-9d0425fd1d43
x-runtime: 0.040377
content-length: 306

Body

{
  "company": {
    "id": 607,
    "address": "Suite 629 8847 Coralee Wells, Lake Buddyside, NV Y9K 0DN",
    "billing_address": null,
    "billing_full_name": null,
    "billing_phone_number": null,
    "due_days": 30,
    "invoice_email": null,
    "license_number": "89467547005",
    "name": "Windler, Reilly and Kessler",
    "state": "pending",
    "vat_number": null
  }
}