Companies

Update company

PUT company (admin)

Endpoint

PUT /api/v1/companies/:id

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/companies/32

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMzMiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzEsImV4cCI6MTc1NTg1ODE3MSwianRpIjoiNTliZmZkNDUtZDU1Zi00NTJiLThiNDctMjQwMWQwZDJkYTQwIn0.ixFPdTbP-dyzoLS0ENfFpb5_B8dukuxGCT9Dw30ROTU
Host: example.org
Cookie: 

Body

{
  "company": {
    "name": "Jerde-Nitzsche",
    "address": "9648 Nitzsche Village, Davisland, FL S1U 0NQ",
    "license_number": "81693546133",
    "invoice_email": "darcy@tremblay-maggio.example",
    "vat_number": "81243945793",
    "billing_phone_number": "+4407357263721",
    "billing_full_name": "Lorelei Howell LLD",
    "billing_address": "8433 Aron Court, Port Fredrick, ND ZG4 1JX",
    "due_days": 20,
    "commission": 5
  }
}

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/"f9c1dc3e84e4687487d91c4de7635ced"
cache-control: max-age=0, private, must-revalidate
x-request-id: cdbe15c5-3572-4e83-bf42-3c45418a24e9
x-runtime: 0.017148
content-length: 404

Body

{
  "company": {
    "id": 32,
    "address": "9648 Nitzsche Village, Davisland, FL S1U 0NQ",
    "billing_address": "8433 Aron Court, Port Fredrick, ND ZG4 1JX",
    "billing_full_name": "Lorelei Howell LLD",
    "billing_phone_number": "+4407357263721",
    "commission": "5.0",
    "due_days": 20,
    "invoice_email": "darcy@tremblay-maggio.example",
    "license_number": "81693546133",
    "name": "Jerde-Nitzsche",
    "state": "verified",
    "vat_number": "81243945793"
  }
}