Complete operator registration. Create current operator’s company
Users > 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 |
| company[country] required | Company country |
| company[currency] required | Company currency |
| company[financial_company_id] | Company financial company |
Request
Route
POST /api/v1/users/company
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNzE3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDA5LCJleHAiOjE3NjYyMTg0MDksImp0aSI6ImUwZjkxMDZhLTViMGMtNGM2MC1hNDJjLTRmOWQzNTI5YTYyZSJ9.D-lR4hwm8kWEbooncQGyTn6zTy7hczl_2bKhZJV6orU
Host: example.org
Cookie:
Body
{
"company": {
"name": "Beier, Jenkins and Upton",
"address": "384 Halley Way, Cummerataside, IL YG8Y 0TN",
"license_number": "27128311495",
"first_name": "Benton",
"last_name": "Tillman",
"contact_phone_number": "+4407798406450"
}
}
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/"3a27c090e74b4b0fb2eaba24e94e580c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 58cdb0e7-a017-43b1-9238-d23b56c7a7d0
x-runtime: 0.034699
content-length: 632
Body
{
"company": {
"id": 646,
"address": "384 Halley Way, Cummerataside, IL YG8Y 0TN",
"available_currencies": [
"GBP",
"EUR"
],
"billing_address": null,
"billing_full_name": null,
"billing_phone_number": null,
"commission": "10.0",
"country": "GBR",
"currency": "GBP",
"due_days": 30,
"financial_company_id": null,
"invoice_email": null,
"license_number": "27128311495",
"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": "Beier, Jenkins and Upton",
"state": "pending",
"vat_number": null
}
}