{ "$schema": "http://json-schema.org/draft-04/schema#", "type":"object", "title": "company", "description": "A company is the main entity, so any data belongs to a company. It is identified by the current subdomain and cannot be edited via API atm", "properties":{ "id":{ "description":"Unique identifier - UUID", "identity":true, "readOnly":true, "type":"string", "maxLength": 22, "minLength":22 }, "name":{ "description": "Company name", "type":"string", "maxLength": 100 }, "language":{ "description": "Default language, used for new users. Must be a valid language available in SalesKing", "type":"string", "maxLength": 10 }, "currency":{ "description": "Currency code as defined by the ISO 4217 standard (3-letter UPCASE: EUR, USD)", "type":"string", "maxLength": 3, "minLength": 3 }, "sub_domain":{ "description": "Unique subdomain identifying the company's SalesKing account.", "type":"string", "maxLength": 20 }, "account_link":{ "description": "Link to a company's SalesKing account.", "type":"string", "format":"uri", "readOnly":true }, "time_zone":{ "description": "Default time zone, used for new users", "type":"string", "maxLength": 50 }, "email":{ "description": "Email address", "type":"string", "maxLength": 100 }, "url":{ "description": "A company website", "type":"string", "maxLength": 255 }, "phone_fax":{ "description": "Fax number", "type":"string", "maxLength": 30 }, "phone_office":{ "description": "Office phone number", "type":"string", "maxLength": 30 }, "phone_mobile":{ "description": "Mobile phone number", "type":"string", "maxLength": 30 }, "tax_number":{ "description": "Tax number, normally applies to a private person running a small business.", "type":"string", "maxLength": 30 }, "addresses":{ "description": "A company can have many addresses, sorted by date descending(new first). Default address used in placeholder is the most recent one.", "type":"array", "items": { "type": "object", "$ref": "./address.json#" } }, "vat_number":{ "description": "VAT number, for a company entitled to pay value added taxes.", "type":"string", "maxLength": 30 }, "sepa_creditor_id":{ "description": "SEPA Creditor ID, needed for SEPA direct debit transactions.", "type":"string", "maxLength": 18 }, "bank_name":{ "description": "Bank name", "type":"string", "maxLength": 70 }, "bank_number":{ "description": "Bank number", "type":"string", "maxLength": 35 }, "bank_account_number":{ "description": "Bank account number.", "type":"string", "maxLength": 35 }, "bank_iban":{ "description": "IBAN Number of the bank account. Is validated", "type":"string", "maxLength": 35 }, "bank_swift":{ "description": "SWIFT BIC- Bank Identifier Code", "type":"string", "maxLength": 11 }, "bank_owner":{ "description": "Bank account owner", "type":"string", "maxLength": 70 }, "created_at":{ "description": "Date the record was created in SK. Never changes afterwards.", "format":"date-time", "readOnly":true, "type":"string" }, "updated_at":{ "description": "Last date when the record was edited.", "format":"date-time", "readOnly":true, "type":"string" } }, "links":[ { "rel": "current", "href": "companies/current" } ] }