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
company[commission] Company commission

Request

Route

PUT /api/v1/users/company

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjkzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjIyLCJleHAiOjE3NTU4NTgyMjIsImp0aSI6ImY5NmMyNjM1LThjZmMtNDI1Mi04OGQ2LTkwNzc4OGVlZjRjYyJ9.--dboygzrKW2EmPTRu5-V3cPOdoUXqDwYY6Qji-ZkJU
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Grimes-Altenwerth",
    "address": "423 Colene Well, Lake Raye, MA SB1V 4JA",
    "license_number": "84765303625",
    "invoice_email": "cordelia_funk@larkin.test",
    "vat_number": "32107163708",
    "billing_phone_number": "+4407362217196",
    "billing_full_name": "Ricarda Conn",
    "billing_address": "5545 Kuphal Branch, Wintheiserside, HI Z7J 1XB",
    "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/"42eadc4dec90606762d88fa424434dac"
cache-control: max-age=0, private, must-revalidate
x-request-id: 184991dd-4702-4f0b-9723-d9dede257bfb
x-runtime: 0.012369
content-length: 398

Body

{
  "company": {
    "id": 633,
    "address": "423 Colene Well, Lake Raye, MA SB1V 4JA",
    "billing_address": "5545 Kuphal Branch, Wintheiserside, HI Z7J 1XB",
    "billing_full_name": "Ricarda Conn",
    "billing_phone_number": "+4407362217196",
    "commission": "10.0",
    "due_days": 30,
    "invoice_email": "cordelia_funk@larkin.test",
    "license_number": "84765303625",
    "name": "Grimes-Altenwerth",
    "state": "verified",
    "vat_number": "32107163708"
  }
}