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.eyJzdWIiOiIxNjkxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjIyLCJleHAiOjE3NTU4NTgyMjIsImp0aSI6IjA3Y2I0MzE2LWVmYjAtNDA3Zi05M2FhLTRlY2Y3Y2ZlOWY3ZCJ9.jrqkel11xdpTYjbgalEm_bGPDUIFtQFTvCuPsdGCC0A
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Hagenes-Streich",
    "address": "Apt. 309 145 Reynalda Squares, Anamariamouth, AK Y5F 2LA",
    "license_number": "89597921711",
    "first_name": "Joshua",
    "last_name": "Steuber",
    "contact_phone_number": "+4407342881259"
  }
}

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/"9c683364e1be8d60a0e87e61d2843426"
cache-control: max-age=0, private, must-revalidate
x-request-id: 837d6f84-a700-4955-aaa5-f29b8d66add5
x-runtime: 0.040885
content-length: 314

Body

{
  "company": {
    "id": 632,
    "address": "Apt. 309 145 Reynalda Squares, Anamariamouth, AK Y5F 2LA",
    "billing_address": null,
    "billing_full_name": null,
    "billing_phone_number": null,
    "commission": "10.0",
    "due_days": 30,
    "invoice_email": null,
    "license_number": "89597921711",
    "name": "Hagenes-Streich",
    "state": "pending",
    "vat_number": null
  }
}