Users > Company

Update current operator’s company

PUT update company

Endpoint

PUT /api/v1/users/company

Parameters

Name Description
company[name] Company name
company[address] Company address
company[license_number] Company license number
company[vat_number] Company vat number
company[invoice_email] Company invoice email
company[billing_phone_number] Company billing phone number
company[billing_full_name] Company billing full name
company[billing_address] Company billing address
company[due_days] Company due days
company[commission] Company commission
company[country] Company country
company[currency] Company currency

Request

Route

PUT /api/v1/users/company

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjcyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc0LCJleHAiOjE3NjM1NDI0NzQsImp0aSI6ImViYjcyYjFlLWRlMjItNDc0Zi05MDVlLTQ5MTk2Yjc2MDMxZSJ9.TaHR1tKuldMbBOivX1diJrQKsM7PIlxIQQEWAcshRMw
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Bernier-Prosacco",
    "address": "Suite 357 197 Crooks Ports, Laticiafurt, VA IG8X 2BB",
    "license_number": "64587196912",
    "invoice_email": "merlene.skiles@greenfelder.example",
    "vat_number": "33412031961",
    "billing_phone_number": "+4407864091014",
    "billing_full_name": "Leota Cassin",
    "billing_address": "Apt. 869 4042 Kendrick Freeway, Burlfurt, MS ZE9V 0NS",
    "due_days": 20
  }
}

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/"f341d90a57d8ee2b8cde76c096b48942"
cache-control: max-age=0, private, must-revalidate
x-request-id: 8e4af3b2-5dbf-4693-a870-bc2ba1aba136
x-runtime: 0.008397
content-length: 664

Body

{
  "company": {
    "id": 628,
    "address": "Suite 357 197 Crooks Ports, Laticiafurt, VA IG8X 2BB",
    "available_currencies": [
      "GBP",
      "EUR"
    ],
    "billing_address": "Apt. 869 4042 Kendrick Freeway, Burlfurt, MS ZE9V 0NS",
    "billing_full_name": "Leota Cassin",
    "billing_phone_number": "+4407864091014",
    "commission": "10.0",
    "country": "GBR",
    "currency": "GBP",
    "due_days": 30,
    "invoice_email": "merlene.skiles@greenfelder.example",
    "license_number": "64587196912",
    "minimum_wage": {
      "21+": {
        "min_wage": 12.21,
        "min_umbrella_rate": 16.13,
        "min_charge_rate": 17.92
      },
      "18-20": {
        "min_wage": 10.0,
        "min_umbrella_rate": 12.55,
        "min_charge_rate": 13.58
      }
    },
    "name": "Bernier-Prosacco",
    "state": "verified",
    "vat_number": "33412031961"
  }
}