Companies

Update company

PUT company (admin)

Endpoint

PUT /api/v1/companies/:id

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

Request

Route

PUT /api/v1/companies/35

Headers

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

Body

{
  "company": {
    "name": "Bednar, Mueller and Kuhn",
    "address": "617 Waldo Landing, South Rigobertofort, ME YN8 9XN",
    "license_number": "44202060554",
    "invoice_email": "herschel@gorczany-lueilwitz.example",
    "vat_number": "50384474126",
    "billing_phone_number": "+4407992451835",
    "billing_full_name": "Betsey Langworth III",
    "billing_address": "617 Lebsack Parks, West Sonyaberg, WA ZF9 1AF",
    "due_days": 20,
    "commission": 5
  }
}

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/"471a6815afdcc40fc05a0d56f5f83f9b"
cache-control: max-age=0, private, must-revalidate
x-request-id: beef9671-bee7-45ee-80b8-855a4e9a6858
x-runtime: 0.014557
content-length: 754

Body

{
  "company": {
    "id": 35,
    "address": "617 Waldo Landing, South Rigobertofort, ME YN8 9XN",
    "available_currencies": [
      "GBP",
      "EUR"
    ],
    "billing_address": "617 Lebsack Parks, West Sonyaberg, WA ZF9 1AF",
    "billing_full_name": "Betsey Langworth III",
    "billing_phone_number": "+4407992451835",
    "commission": "5.0",
    "country": "GBR",
    "currency": "GBP",
    "due_days": 20,
    "financial_company_id": null,
    "invoice_email": "herschel@gorczany-lueilwitz.example",
    "license_number": "44202060554",
    "minimum_charge_rate": 17.92,
    "minimum_driver_rate": 16.13,
    "minimum_wages": {
      "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": "Bednar, Mueller and Kuhn",
    "state": "verified",
    "vat_number": "50384474126"
  }
}