Get Company Detail
GET :https://<base_url>/digipay/v3/base/company/{id}
Get Details of any company using their primary key.
PATH PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
ID | String | Primary key of currency detail | 76bc712200ca444fa334f9e55e5fd7a8 |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request GET \
--url http://192.168.1.102:8014/digipay/v3/base/company/1dc947afefad4fea82a9c798eec4507e. \
--header 'Autorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"company": {
"id": "3549876c11664010a8cacb215ff51b6d",
"company_name": "DigipayDev",
"country_id": "fae1ef4bb1a142159c7fe8244370e8e3",
"dial_code": "+91",
"phone_number": ""2599353535"",
"email": "digipay@dev.com",
"company_model_type": 1,
"toll_free_number": null,
"address": null,
"postal_code": null,
"city": null,
"state": null,
"is_active": true,
"created_by": null,
"created_date": 1680875671,
"updated_by": null,
"updated_date": 1691389893,
"subdomain": null,
"parent_id": null,
"domain"": "192.168.1.165:5000",
"timezone"": ""GMT+05:30"",
"date_format": 1,
"time_format": 1,
"account_number_prefix": null,
"status"": 1,
"licence_number": null
}
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |