Skip to content
On this page

Get KCCA Trading Licence Verification Details By Id

Endpoint for getting details of a specific KCCA licence Verification request by unique id.

Endpoint

https://kcca-api-test.streamline.laboremus.ug/api/verifylicense/{id}
https://kcca-api-test.streamline.laboremus.ug/api/verifylicense/{id}

Request

Request Type : GET

Path Parameters Values

NameTypeRequiredDescription
idstring(uuid)yesThe Unique ID of a KCCA Licence request

Query Parameters Values

NameTypeRequiredDescription
vstringyesThe version of the API

Header Parameters

NameTypeRequiredDescription
Bearerstring(JwtToken)noThe token for accessing the resource

Response

Content type

application/json

Response Values

NameTypeDescription
idstring (uuid)The unique Id of the request.
applicationReferencestring or nullThe application reference of a given verification request.
statusstring (Pending,Successful,Failed)The code of the error returned.
textstring or nullThe verification description.
successbooleanTrue if the request was processed, and false if it was not processed.
isErrorbooleanTrue if there was an error that occurred during the verification process.
errorCodeinteger or null (int32)The error code, if isError is true.
errorsarray of errorsThe errors that are returned.
coininteger or null (int32)The City Operator Identification Number.
taxPayerNamestring or nullThe name of the tax-payer.
tinstring or nullThe Tax Identification Number of the tax-payer.
businessNamestring or nullThe name of the business.
categorystring or nullThe category in which the business is.
naturestring or nullThe nature of the business.
yearinteger or null (int32)The year in which the business was licenced.
issueDatestring or null (date-time)The date in which the licence was issued.
expiryDatestring or nullThe expiry date of the licence.
amountnumber or null (double)The amount paid by the business.
divisionstring or nullThe division in which the business is situated.
parishstring or nullThe parish in which the business is situated.
villagestring or nullThe village in which the business is situated.
streetstring or nullThe street on which the business is situated.
buildingstring or nullThe building in which the business is situated.
shopNostring or nullThe shop number which the business is situated.
prnstring or nullThe Payment Reference Number used to track payments.
initiatorstring or nullThe user that initiated the request.
sentAtstring or null (date-time)Date the request was sent.
processedAtstring or null (date-time)Date at which the verification request was processed.
createdAtstring or null (date-time)Date at which the verification request was created.
lastUpdatedstring or null (date-time)Date at which the verification request was last updated.

errors

NameTypeDescription
suggestionstring[]List of suggestions related to the error.
codestringThe error code.
messagestringThe short message describing the error.
descriptionstringA detailed description of the error.
typestringThe type or category of the error.

Example Response Body

json
{
	"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
	"applicationReference": "string",
	"status": "Pending",
	"text": "string",
	"success": true,
	"isError": true,
	"errors": [
				{
					"suggestion": [
						"Something went wrong, Please contact support at email support@laboremus.ug"
					],
					"code": "S0001",
					"message": "FAILED_TO_VERIFY_KCCA_LICENCE_NUMBER",
					"description": "Failed to verify KCCA Licence Numbe",
					"type": "Fatal"
				}
			],
	"errorCode": 0,
	"coin": 0,
	"taxPayerName": "string",
	"tin": "string",
	"businessName": "string",
	"category": "string",
	"nature": "string",
	"year": 0,
	"issueDate": "2019-08-24T14:15:22Z",
	"expiryDate": "string",
	"amount": 0,
	"division": "string",
	"parish": "string",
	"village": "string",
	"street": "string",
	"building": "string",
	"shopNo": "string",
	"prn": "string",
	"initiator": "string",
	"sentAt": "2019-08-24T14:15:22Z",
	"processedAt": "2019-08-24T14:15:22Z",
	"createdAt": "2019-08-24T14:15:22Z",
	"lastUpdated": "2019-08-24T14:15:22Z"
}
{
	"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
	"applicationReference": "string",
	"status": "Pending",
	"text": "string",
	"success": true,
	"isError": true,
	"errors": [
				{
					"suggestion": [
						"Something went wrong, Please contact support at email support@laboremus.ug"
					],
					"code": "S0001",
					"message": "FAILED_TO_VERIFY_KCCA_LICENCE_NUMBER",
					"description": "Failed to verify KCCA Licence Numbe",
					"type": "Fatal"
				}
			],
	"errorCode": 0,
	"coin": 0,
	"taxPayerName": "string",
	"tin": "string",
	"businessName": "string",
	"category": "string",
	"nature": "string",
	"year": 0,
	"issueDate": "2019-08-24T14:15:22Z",
	"expiryDate": "string",
	"amount": 0,
	"division": "string",
	"parish": "string",
	"village": "string",
	"street": "string",
	"building": "string",
	"shopNo": "string",
	"prn": "string",
	"initiator": "string",
	"sentAt": "2019-08-24T14:15:22Z",
	"processedAt": "2019-08-24T14:15:22Z",
	"createdAt": "2019-08-24T14:15:22Z",
	"lastUpdated": "2019-08-24T14:15:22Z"
}

Error Response

400 Bad Request

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

401 Unauthorized

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

403 Forbidden

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

404 Not Found

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

500 Server Error

application/json

NameTypeDescription
errorobject(Error)Type of error response

Error

NameTypeDescription
codestring or nullThe Error code
messagestring or nullThe Error message

Error Codes

When working with our KCCA Trading Licence Verifcation API, you'll encounter errors shown below. Each type of error comes with an appropriate code and suggestion to aid in troubleshooting.

All errors share the same basic response format.code indicating the error code,message providing an overview of the error, description to show more information about the error, suggestion to aid in troubleshooting and type describing the error type

CodeMessageDescriptionSuggestionType
S0001FAILED_TO_VERIFY_KCCA_LICENCE_NUMBERFailed to verify KCCA Licence NumberSomething went wrong, Please contact support at email support@laboremus.ugFatal
S0002INVALID_KCCA_LICENCE_NUMBERThe KCCA Licence number provided is invalid.The KCCA Licence Number provided is invalid. Please check and try again.Data
S0003INVALID_CREDENTIALSThe connection credentials provided are invalid.Please check whether the subscription key is correct or contact support at email support@laboremus.ugAuthentication

Tech served right