KKonsol Developers
API referenceCompanies

Get a company

GET
/integration/v1/companies/{id}

Returns one company your integration key can reach. Any other id returns 404.

Authorization

integrationKey
headerAuthorizationBearer <token>

Your integration key, sent as Authorization: Bearer nik_<prefix>_<secret>. Konsol issues it.

Path Parameters

id*string
Formatuuid

Response Body

The company

application/json
  1. response
id*string
Formatuuid
external_ref?|null
enterprise_id*|

The company's enterprise, or null when it has none.

Formatuuid
name*string
status*string
Value in"active""inactive"
business_reg_no?string|null
tax_id_no?string|null
sst_no?string|null
contact?|null
address?|null
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
deleted_at*|

When the record was deleted, or null. Lists return deleted records only with include_deleted=true.

Formatdate-time
Example Request
curl -X GET 'https://api.konsol.my/integration/v1/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "external_ref": "ACQ-MBB",  "enterprise_id": "2dbe425a-b3bc-4170-8bae-9e5391aafea6",  "name": "string",  "status": "active",  "business_reg_no": "string",  "tax_id_no": "string",  "sst_no": "string",  "contact": {    "person": "string",    "phone": "string",    "email": "user@example.com"  },  "address": {    "line1": "string",    "line2": "string",    "city": "string",    "postcode": "string",    "state": "MY-01",    "country": "MY"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "deleted_at": "2019-08-24T14:15:22Z"}