Update current operator’s company
Users > 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 |
| company[financial_company_id] | Company financial company |
Request
Route
PUT /api/v1/users/company
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNzE5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDEwLCJleHAiOjE3NjYyMTg0MTAsImp0aSI6IjkwY2JjNGEwLTNmMGItNGQ3MC04Y2YyLWU1YjQ2YjZkNzBjMyJ9.6J6h9NLsOhEI5z68W7C_DHxgRb4WEzt5uDuJEgFtz2w
Host: example.org
Cookie:
Body
{
"company": {
"name": "Brown, Runte and Hintz",
"address": "Apt. 469 810 Rolando Passage, Port Darin, OK WA8 5NJ",
"license_number": "35678987224",
"invoice_email": "myrna@reynolds.example",
"vat_number": "81014876038",
"billing_phone_number": "+4407565873328",
"billing_full_name": "Johnson Mohr",
"billing_address": "75492 Weston Spring, Shirlborough, AK ZG3 0AA",
"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/"a8551012405dc2fbc67d99684deb5f21"
cache-control: max-age=0, private, must-revalidate
x-request-id: 86cf0c81-4c2d-4bfa-ac22-4503a32fc9be
x-runtime: 0.009781
content-length: 735
Body
{
"company": {
"id": 647,
"address": "Apt. 469 810 Rolando Passage, Port Darin, OK WA8 5NJ",
"available_currencies": [
"GBP",
"EUR"
],
"billing_address": "75492 Weston Spring, Shirlborough, AK ZG3 0AA",
"billing_full_name": "Johnson Mohr",
"billing_phone_number": "+4407565873328",
"commission": "10.0",
"country": "GBR",
"currency": "GBP",
"due_days": 30,
"financial_company_id": null,
"invoice_email": "myrna@reynolds.example",
"license_number": "35678987224",
"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": "Brown, Runte and Hintz",
"state": "verified",
"vat_number": "81014876038"
}
}