Get User

Fetch details of a user account.

/users/:user_id

GET https://api.terminal.africa/v1/users/:user_id

This endpoint allows you to retrieve details for a user account.

Path Parameters

Name
Type
Description

id

string

id of user.

Headers

Name
Type
Description

Authorization*

string

Set value to Bearer SECRET_KEY

{
	status: true,
	message: 'User retrieved successfully',
	data: {
		carriers: {
			domestic: [{
				id: 'CA-57817511298',
				name: 'Kwik Delivery'			
			},{
				id: 'CA-75867693999',
				name: 'Sendstack'			
			}],
			regional: [{
				id: 'CA-55085474292',
				name: 'Fedex (Red Star Express)'			
			},{
				id: 'CA-26458064035',
				name: 'GIG Logistics'			
			}],
			international: [{
				id: 'CA-38139208388',
				name: 'DHL Express'			
			},{
				id: 'CA-68449927312',
				name: 'Sendbox'			
			},{		
				id: 'CA-75540598397',
				name: 'Topship'
			},{		
				id: 'CA-30614897119',
				name: 'United Parcel Services'
			}]
		},
		company_name: 'Terminal Africa',
		email: 'support@terminal-africa.com',
		first_name: 'Larry',
		last_name: 'Banjo',
		id: '6aVb7978zZYmke2gJPF9WppUEWvvK5OU',
		name: 'Larry Banjo',
		phone: '+2345442289021',
		user_id: 'USER-72759104719',
		wallet: 'nGvZRE5lyb7H1ZuORKVjKlXfETsWff0J',
		status: 'success',
		created_at: '2021-07-13T20:25:53.011Z',
		updated_at: '2021-07-13T20:25:53.011Z'
	}
}

Last updated