Users > Company

Update current operator’s 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

Request

Route

PUT /api/v1/users/company

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjMxIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg5LCJleHAiOjE3NDAxNDM1ODksImp0aSI6ImE5ZGRlYjVlLTE1MWEtNDVkMC04MzQwLWNlOTc3MWM1ZWI2ZiJ9.Fto_uDkgO9_iOlq8vmLumTa46l-8gzZ5KMsjsD44hVA
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Dicki Inc",
    "address": "Suite 236 3422 Alease Squares, Erickview, TX W8G 6AL",
    "license_number": "45651220198",
    "invoice_email": "deshawn.mayert@pagac-rohan.test",
    "vat_number": "24985745234",
    "billing_phone_number": "+4407861870430",
    "billing_full_name": "Lavette Homenick",
    "billing_address": "80154 Reynolds Shores, Eleonorechester, MT WG8 1AJ",
    "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/"db5de2638ba80dbb7717b696a95efc91"
cache-control: max-age=0, private, must-revalidate
x-request-id: d489f7c8-dfc7-469f-a8e5-fc7d2f6aa0dd
x-runtime: 0.009763
content-length: 397

Body

{
  "company": {
    "id": 608,
    "address": "Suite 236 3422 Alease Squares, Erickview, TX W8G 6AL",
    "billing_address": "80154 Reynolds Shores, Eleonorechester, MT WG8 1AJ",
    "billing_full_name": "Lavette Homenick",
    "billing_phone_number": "+4407861870430",
    "due_days": 30,
    "invoice_email": "deshawn.mayert@pagac-rohan.test",
    "license_number": "45651220198",
    "name": "Dicki Inc",
    "state": "verified",
    "vat_number": "24985745234"
  }
}