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
company[commission] Company commission

Request

Route

POST /api/v1/users/company

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjg0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM1LCJleHAiOjE3NTExMDg1MzUsImp0aSI6IjAyZWVkOGZiLWJjZDgtNDlhMy1hMjU1LTcyY2ExODA5MWFkYiJ9.5KuAt7oUFcEbXNRH8Vtjzx9DowqySsvZo7kTQgohpuo
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Cormier, Russel and Abernathy",
    "address": "Suite 189 46623 Deckow Garden, North Zack, NY GA1 6XQ",
    "license_number": "92409675574",
    "first_name": "Hiedi",
    "last_name": "Welch",
    "contact_phone_number": "+4407351975029"
  }
}

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/"49a4dce9950dbf04692c438eea913eca"
cache-control: max-age=0, private, must-revalidate
x-request-id: dd546add-aceb-4b8b-9749-8089d51831f5
x-runtime: 0.029520
content-length: 325

Body

{
  "company": {
    "id": 629,
    "address": "Suite 189 46623 Deckow Garden, North Zack, NY GA1 6XQ",
    "billing_address": null,
    "billing_full_name": null,
    "billing_phone_number": null,
    "commission": "10.0",
    "due_days": 30,
    "invoice_email": null,
    "license_number": "92409675574",
    "name": "Cormier, Russel and Abernathy",
    "state": "pending",
    "vat_number": null
  }
}