Validate Address

Validate details for an address

/addresses/validate

POST https://api.terminal.africa/v1/addresses/validate

This endpoint allows you to validate the details of any global address.

Headers

Name
Type
Description

Authorization*

String

Set value to Bearer SECRET_KEY

Content-Type

String

Set value to application/json

Request Body

Name
Type
Description

city*

String

Address city.

country*

String

ISO 2 country code for address.

line1*

String

Street address. Required for arranging pickup / delivery.

line2

String

Second line of street address.

state*

String

State of street address.

zip*

String

Zip / Postal code. Required for arranging pickup / delivery.

{
	status: true,
	message: 'Address validated successfully',
	data: {
		is_valid: true,
		validation_results: {},
		city: 'Lagos',
		coordinates: {
				lat: 6.5969424,
				lng: 3.3542992
		},	
		country: 'NG',
		line1: '1121 Allen Avenue, Ikeja',
		line2: '',
		state: 'Lagos',
		zip: '121006'
	}
}

Last updated