NAV

getCompanyDetails

GET /v2/company/get-details

This API call provides information about all of the settings of the previously created company. Use this method if you would like to validate permissions or any additional configurations.

Response Messages
Code
Description
200
OK
401
Unauthorized
403
Forbidden
404
Not Found
             {
    "address": {
        "id": 0,
        "zip": "string",
        "city": "string",
        "country": 0,
        "province": 0,
        "address": "string",
        "selected": true
    },
    "api_key_models": [
        {
            "key": "string",
            "name": "string",
            "token": "string"
        }
    ],
    "billing_descriptor": "string",
    "collect_taxes": true,
    "company_code": "string",
    "company_payment_plan_settings": {
        "annual_interest": 1.01,
        "discount_on_early_payment": true,
        "early_payment_allowed": true,
        "maximum_number_of_installments": 0
    },
    "company_status": "ACTIVE",
    "default_currency": "AED",
    "default_lang": {
        "available_langs": [
            "EN",
            "FR",
            "ES"
        ],
        "default_lang": "EN"
    },
    "id": 0,
    "logo_url": "string",
    "name": "string",
    "phone": "string",
    "taxation_type": "PRECALCULATED",
    "user_model": {
        "creation_date": "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
        "email": "string",
        "first_name": "string",
        "last_name": "string",
        "logo_url": "string",
        "phone": "string",
        "role": "ACCOUNT_OWNER",
        "state": "ACTIVE",
        "user_code": "string"
    },
    "web_hooks": []
}
             
          
{ } CompanyDetailsV2Model
address (optional) AddressApiV2Model
api_key_models (optional) array|ApiKeyV2Model
billing_descriptor (optional) string
collect_taxes (optional) boolean
company_code (optional) string
company_payment_plan_settings (optional) CompanyPaymentPlanSettingsV2Model
company_status (optional) string
default_currency (optional) string
default_lang (optional) CompanyLanguageV2Model
id (optional) integer
logo_url (optional) string
name (optional) string
phone (optional) string
taxation_type (optional) string
user_model (optional) UserResponseV2Model
web_hooks (optional) array
{ } AddressApiV2Model
id (optional) integer
zip (optional) string
city (optional) string
country (optional) integer
province (optional) integer
address (optional) string
selected (optional) boolean
{ } ApiKeyV2Model
key (optional) string
name (optional) string
token (optional) string
{ } CompanyPaymentPlanSettingsV2Model
annual_interest (optional) number
discount_on_early_payment (optional) boolean
early_payment_allowed (optional) boolean
maximum_number_of_installments (optional) integer
{ } CompanyLanguageV2Model
available_langs (optional) array
default_lang (optional) string
{ } UserResponseV2Model
creation_date (optional) string
email (optional) string
first_name (optional) string
last_name (optional) string
logo_url (optional) string
phone (optional) string
role (optional) string
state (optional) string
user_code (optional) string
             <company_details_model>
  <address/>
  <api_key_models>
    <api_key_model>
      <key>string</key>
      <name>string</name>
      <token>string</token>
    </api_key_model>
    <api_key_model>
      <key>string</key>
      <name>string</name>
      <token>string</token>
    </api_key_model>
  </api_key_models>
  <billing_descriptor>string</billing_descriptor>
  <collect_taxes>1</collect_taxes>
  <company_code>string</company_code>
  <company_payment_plan_settings/>
  <company_status>ACTIVE</company_status>
  <default_currency>AED</default_currency>
  <default_lang/>
  <id>0</id>
  <logo_url>string</logo_url>
  <name>string</name>
  <phone>string</phone>
  <taxation_type>PRECALCULATED</taxation_type>
  <user_model/>
  <web_hooks/>
</company_details_model>

             
          
{ } CompanyDetailsV2Model
address (optional) AddressApiV2Model
api_key_models (optional) array|ApiKeyV2Model
billing_descriptor (optional) string
collect_taxes (optional) boolean
company_code (optional) string
company_payment_plan_settings (optional) CompanyPaymentPlanSettingsV2Model
company_status (optional) string
default_currency (optional) string
default_lang (optional) CompanyLanguageV2Model
id (optional) integer
logo_url (optional) string
name (optional) string
phone (optional) string
taxation_type (optional) string
user_model (optional) UserResponseV2Model
web_hooks (optional) array
{ } AddressApiV2Model
id (optional) integer
zip (optional) string
city (optional) string
country (optional) integer
province (optional) integer
address (optional) string
selected (optional) boolean
{ } ApiKeyV2Model
key (optional) string
name (optional) string
token (optional) string
{ } CompanyPaymentPlanSettingsV2Model
annual_interest (optional) number
discount_on_early_payment (optional) boolean
early_payment_allowed (optional) boolean
maximum_number_of_installments (optional) integer
{ } CompanyLanguageV2Model
available_langs (optional) array
default_lang (optional) string
{ } UserResponseV2Model
creation_date (optional) string
email (optional) string
first_name (optional) string
last_name (optional) string
logo_url (optional) string
phone (optional) string
role (optional) string
state (optional) string
user_code (optional) string