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 |
Request
Route
POST /api/v1/users/company
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjYwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ4LCJleHAiOjE3NDUwNTY5NDgsImp0aSI6ImQzNDk4MjhiLWEyMjctNGVkYi1iMDg4LWQ4NjRkMTlmMGRhMyJ9.x-J3UlgS8WIwbYruob1LpK6AJ1vXfmY4e6WGc9Qokhg
Host: example.org
Cookie:
Body
{
"company": {
"name": "Senger-Streich",
"address": "6104 Gleason Drive, Arlieshire, AL ZK7 7NX",
"license_number": "99786053063",
"first_name": "Geoffrey",
"last_name": "Bartoletti",
"contact_phone_number": "+4407944553025"
}
}
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/"df98fa62a55342237eb75d3deb173ddd"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5f51a530-4572-4165-a2ab-0d5affacead6
x-runtime: 0.034177
content-length: 299
Body
{
"company": {
"id": 616,
"address": "6104 Gleason Drive, Arlieshire, AL ZK7 7NX",
"billing_address": null,
"billing_full_name": null,
"billing_phone_number": null,
"commission": "10.0",
"due_days": 30,
"invoice_email": null,
"license_number": "99786053063",
"name": "Senger-Streich",
"state": "pending",
"vat_number": null
}
}