Skip to content
On this page

Search URA Tin Verification Requests

In case your system would like to search for the existing Tin Verification requests, you can use the following end point.

Endpoints

EnvironmentURL
Sandboxhttps://api-test.streamline.laboremus.ug/tinid-test/api/tins?v=1.0
Productionhttps://api.streamline.laboremus.ug/tin/api/tins?v=1.0

Request

Request Type : GET

Authorization

There are two ways to be authorized when making this request.

js
const token = 'eyJhbGciOiJIUzI1NiIsInR5.eyJzd...ssw5c'
axios.get(API_ENDPOINT, 
  headers: {
    Authorization: `Bearer ${token}`
  }
)
const token = 'eyJhbGciOiJIUzI1NiIsInR5.eyJzd...ssw5c'
axios.get(API_ENDPOINT, 
  headers: {
    Authorization: `Bearer ${token}`
  }
)
js
import axios from 'axios'
    import oauth from 'axios-oauth-client'
    
    const getClientCredentials = oauth.clientCredentials(
    axios.create(),
    'https://oauth.com/2.0/token',
    'CLIENT_ID',
    'CLIENT_SECRET'
    )

    const auth = await getClientCredentials('OPTIONAL_SCOPES')
    // => { "access_token": "...", "expires_in": 900, ... }

    axios.get(API_ENDPOINT, 
      headers: {
        Authorization: `Bearer ${auth.access_token}`
      }
    )
import axios from 'axios'
    import oauth from 'axios-oauth-client'
    
    const getClientCredentials = oauth.clientCredentials(
    axios.create(),
    'https://oauth.com/2.0/token',
    'CLIENT_ID',
    'CLIENT_SECRET'
    )

    const auth = await getClientCredentials('OPTIONAL_SCOPES')
    // => { "access_token": "...", "expires_in": 900, ... }

    axios.get(API_ENDPOINT, 
      headers: {
        Authorization: `Bearer ${auth.access_token}`
      }
    )

INFO

Always add your Subscription key to the request.

js
axios.get(API_ENDPOINT, 
  headers: {
    'Ocp-Apim-Subscription-Key': 'd484a1f0d34f43019'
  }
)
axios.get(API_ENDPOINT, 
  headers: {
    'Ocp-Apim-Subscription-Key': 'd484a1f0d34f43019'
  }
)
js
const res = await axios.get(API_ENDPOINT, { 
  params: { 
    Ocp-Apim-Subscription-Key: 'd484a1f0d34f43019' 
  } 
});
const res = await axios.get(API_ENDPOINT, { 
  params: { 
    Ocp-Apim-Subscription-Key: 'd484a1f0d34f43019' 
  } 
});

Path Parameters Values

NameTypeRequiredDescription
idstring(uuid)yesThe Unique ID of a Tin Verification request

Query Parameters Values

NameTypeRequiredDescription
IdstringnoSearch for a request using their unique Id
TinstringnoSearch for a request using the Tax Identification Number
Date.FromstringnoThe start date of the date range
Date.TostringnoThe end date of the date range
StatusstringnoSearch using the status of the request
InitiatorstringnoSearch for a request using the user that initiated the request
Pagination.PagestringnoPage number
Pagination.ItemsPerPagestringnoNumber of requests returned per page
Pagination.TotalItemsstringnoTotal number of requests
vstringyesThe version of the API

Response

Content type

application/json

Response Values

NameTypeDescription
requestsArray of objectsThe requests matching the search criteria
paginationobjectThe district where it is located

requests

NameTypeDescription
idstring (uuid)The unique Id of the request.
tinstring or nullTin Number sent in the request payload.
errorCodestring or nullThe code of the error returned.
errorDescriptionstring or nullThe description of the error returned.
initiatorstring or nullNames of the request initiator.
countystring or nullTin assignee's county.
districtstring or nullTin assignee's district.
isCustomsAgentstring or nullTin assignee is a custom agent ("Y"/"N")
isLicenseValidstring or nullCustoms agent license validity (Present if Tin assignee is a customs agent).
licenseNumberstring or nullCustoms agent license number (Present if Tin assignee is a customs agent)
mobileNumberstring or nullTin assignee's mobile number.
postalAddressstring or nullTin assignee's postal address.
registrationStatusstring or nullTin assignee's registration status.
subCountystring or nullTin assignee's sub-county.
taxPayerEmailstring or nullTin assignee's taxpayer email.
taxPayerNamestring or nullTin assignee's taxpayer name.
telephoneNumberstring or nullTin assignee's taxpayer phone number.
typeofUserstring or nullTin assignee's user type.
villagestring or nullTin assignee's village.
nitaFaultCodestring or nullNita response error code.
nitaFaultMessagestring or nullNita response error message.
nitaFaultDescriptionstring or nullNita response error description.
nitaFaultAmsstring or nullNita Ams error response.
nitaFaultTextstring or nullNita error text response.
statusstring (Enum: Pending, Completed, Failed)The status of the request sent
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.

pagination

NameTypeDescription
pageintegerPage number
itemsPerPageobjectNumber of requests returned per page
totalItemsstring or nullTotal number of requests

Example Response Body

json
{
	"requests": [
		{
			"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
			"tin": "string",
			"errorCode": "string",
			"errorDescription": "string",
			"initiator": "string",
			"contactNumber": "string",
			"county": "string",
			"district": "string",
			"isCustomsAgent": "string",
			"isLicenseValid": "string",
			"licenseNumber": "string",
			"mobileNumber": "string",
			"postalAddress": "string",
			"registrationStatus": "string",
			"subCounty": "string",
			"taxPayerEmail": "string",
			"taxPayerName": "string",
			"telephoneNumber": "string",
			"typeofUser": "string",
			"village": "string",
			"nitaFaultCode": "string",
			"nitaFaultMessage": "string",
			"nitaFaultDescription": "string",
			"nitaFaultAms": "string",
			"nitaFaultText": "string",
			"status": "Pending",
			"sentAt": "2019-08-24T14:15:22Z",
			"processedAt": "2019-08-24T14:15:22Z",
			"createdAt": "2019-08-24T14:15:22Z",
			"lastUpdated": "2019-08-24T14:15:22Z"
		}
	],
	"pagination": {
		"page": 0,
		"itemsPerPage": 0,
		"totalItems": 0
	}
}
{
	"requests": [
		{
			"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
			"tin": "string",
			"errorCode": "string",
			"errorDescription": "string",
			"initiator": "string",
			"contactNumber": "string",
			"county": "string",
			"district": "string",
			"isCustomsAgent": "string",
			"isLicenseValid": "string",
			"licenseNumber": "string",
			"mobileNumber": "string",
			"postalAddress": "string",
			"registrationStatus": "string",
			"subCounty": "string",
			"taxPayerEmail": "string",
			"taxPayerName": "string",
			"telephoneNumber": "string",
			"typeofUser": "string",
			"village": "string",
			"nitaFaultCode": "string",
			"nitaFaultMessage": "string",
			"nitaFaultDescription": "string",
			"nitaFaultAms": "string",
			"nitaFaultText": "string",
			"status": "Pending",
			"sentAt": "2019-08-24T14:15:22Z",
			"processedAt": "2019-08-24T14:15:22Z",
			"createdAt": "2019-08-24T14:15:22Z",
			"lastUpdated": "2019-08-24T14:15:22Z"
		}
	],
	"pagination": {
		"page": 0,
		"itemsPerPage": 0,
		"totalItems": 0
	}
}

Error Response

400 Bad Request

application/json

NameTypeDescription
typestring or nullType of error response
titlestring or nullThe title of the error response
statusinteger(int32)The status of the error response
traceIdstring or nullThe traceId of the error request producing the error
errorsobjectObject defining the errors

errors

NameTypeDescription
propertyArray of stringsThe definition of the errors

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

Tech served right