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.eyJzdWIiOiIxNjYyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ4LCJleHAiOjE3NDUwNTY5NDgsImp0aSI6IjNhM2Y2ZjIzLTE0MDMtNDIyYy1hODJiLTU4NzlmY2ViZjk3MSJ9.tog3s3nnetoCH2XBPiDBjjnoiAYr6Z7sUBjwvjmlqvA
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Kuvalis, Waters and Emard",
    "address": "462 Kuhlman Junctions, East Adriene, NV SX5X 8JD",
    "license_number": "48305242881",
    "invoice_email": "keli_schamberger@wyman.example",
    "vat_number": "62712223362",
    "billing_phone_number": "+4407331131033",
    "billing_full_name": "Dr. Joaquin Greenfelder",
    "billing_address": "Suite 137 861 Smitham Freeway, North Idella, SC Z7K 0AD",
    "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/"0268fe63f53f917026af84f0ad61e820"
cache-control: max-age=0, private, must-revalidate
x-request-id: a421f43c-c7e7-4276-a9ad-a7504392afec
x-runtime: 0.011195
content-length: 440

Body

{
  "company": {
    "id": 617,
    "address": "462 Kuhlman Junctions, East Adriene, NV SX5X 8JD",
    "billing_address": "Suite 137 861 Smitham Freeway, North Idella, SC Z7K 0AD",
    "billing_full_name": "Dr. Joaquin Greenfelder",
    "billing_phone_number": "+4407331131033",
    "commission": "10.0",
    "due_days": 30,
    "invoice_email": "keli_schamberger@wyman.example",
    "license_number": "48305242881",
    "name": "Kuvalis, Waters and Emard",
    "state": "verified",
    "vat_number": "62712223362"
  }
}