Update current operator’s company
Users > Company
PUT update company
Endpoint
PUT /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[vat_number] required | Company vat number |
company[invoice_email] required | Company invoice email |
company[billing_phone_number] required | Company billing phone number |
company[billing_full_name] required | Company billing full name |
company[billing_address] required | Company billing address |
company[due_days] | Company due days |
company[commission] | Company commission |
Request
Route
PUT /api/v1/users/company
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjg2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM2LCJleHAiOjE3NTExMDg1MzYsImp0aSI6ImQwMjA1MGI3LTQ4ZjgtNGJmZC04YmUzLTkwMjY4MjAzNDQ1MSJ9.sUEBoN88-9ziVbR-sNm8uyHkcoRXff9uzqjH2yDDVPM
Host: example.org
Cookie:
Body
{
"company": {
"name": "Senger-Mayer",
"address": "Apt. 246 366 Legros Circle, South Johnniefort, VA HS0 9LN",
"license_number": "78836095422",
"invoice_email": "joesph.roberts@morissette.test",
"vat_number": "99169786751",
"billing_phone_number": "+4407526344436",
"billing_full_name": "Kelsey Ziemann",
"billing_address": "Suite 715 747 Dino Stream, Danielfurt, AR ZV1W 1AL",
"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/"bd0ddc6d503dc7d434c3895beff18e5b"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9d708ffe-f638-453d-9f35-538ae29ffbb2
x-runtime: 0.012213
content-length: 422
Body
{
"company": {
"id": 630,
"address": "Apt. 246 366 Legros Circle, South Johnniefort, VA HS0 9LN",
"billing_address": "Suite 715 747 Dino Stream, Danielfurt, AR ZV1W 1AL",
"billing_full_name": "Kelsey Ziemann",
"billing_phone_number": "+4407526344436",
"commission": "10.0",
"due_days": 30,
"invoice_email": "joesph.roberts@morissette.test",
"license_number": "78836095422",
"name": "Senger-Mayer",
"state": "verified",
"vat_number": "99169786751"
}
}