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 |
Request
Route
POST /api/v1/users/company
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjcwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc0LCJleHAiOjE3NjM1NDI0NzQsImp0aSI6ImZkYmU2MjNhLWI1MDAtNDIwOC1iZGZhLTM0ZjlhYmYzMTBjZCJ9.YcutT3nxaofbCkLy-uUX92EP7-EO2jfyPnuXvgA5wCw
Host: example.org
Cookie:
Body
{
"company": {
"name": "Predovic, Leffler and Huels",
"address": "626 Terry Neck, Stanleyport, AR N2B 1NT",
"license_number": "68368752139",
"first_name": "Zachery",
"last_name": "Nitzsche",
"contact_phone_number": "+4407330930718"
}
}
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/"12c746cd544e2d9b7d3ed0141df59982"
cache-control: max-age=0, private, must-revalidate
x-request-id: ff57ba42-0209-4978-896d-ddb642d897e5
x-runtime: 0.070432
content-length: 547
Body
{
"company": {
"id": 627,
"address": "626 Terry Neck, Stanleyport, AR N2B 1NT",
"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,
"invoice_email": null,
"license_number": "68368752139",
"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": "Predovic, Leffler and Huels",
"state": "pending",
"vat_number": null
}
}