Address
This endpoint verifies an address using the provided address details. Use this endpoint to validate shipping addresses before creating shipments. A correct address is important for successful shipment booking and smooth delivery.
Important:
country,state, andzip_codeare critical for accurate verification.You can use the same value in
addressandaddress_in_detail.Use this endpoint before shipment creation to reduce failed shipment requests due to invalid addresses.
Use your base64-encoded public_key:private_key value.
SFNFirst name.
FridayLast name.
JohnnyEmail address.
johnnyfriday@gmail.comPhone number.
09012345678nullable Alternate phone number.
09012345687Destination country code. This is critical for verification.
GBDestination state/region code. This is critical for verification.
ENGDestination city.
LondonMain address line.
221B Baker Street, Marylebone, London NW1 6XE, UKDetailed address. You can use the same value as address.
221B Baker Street, Marylebone, London NW1 6XE, UKnullable Nearby landmark to improve address matching.
221B Baker Street, Marylebone, London NW1 6XEPostal/ZIP code. This is critical for verification.
NW1 6XEThe address type.
receiversometimes Longitude value.
-4.0109224sometimes Latitude value.
4.7075493sometimes Street number. Example:
architectosometimes Street name. Example:
architectosometimes Whether this address originated from Google Address lookup.
truetrue200Address verification completed successfullyPOST /api/v1/address/verify HTTP/1.1
Host: api-sandbox.africaniestest.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 542
{
"first_name": "Friday",
"last_name": "Johnny",
"email": "johnnyfriday@gmail.com",
"phone": "09012345678",
"alternate_phone": "09012345687",
"country": "GB",
"state": "ENG",
"city": "London",
"address": "221B Baker Street, Marylebone, London NW1 6XE, UK",
"address_in_detail": "221B Baker Street, Marylebone, London NW1 6XE, UK",
"address_landmark": "221B Baker Street, Marylebone, London NW1 6XE",
"zip_code": "NW1 6XE",
"type": "receiver",
"longitude": "-4.0109224",
"latitude": "4.7075493",
"street_number": "architecto",
"street_name": "architecto",
"google_address": true
}{
"success": true,
"status_code": 200,
"message": "Address verification completed successfully",
"data": {
"address": [
{
"countryCode": "GB",
"postalCode": "NW16",
"cityName": "LONDON",
"serviceArea": {
"code": "LHR",
"description": "LONDON-HEATHROW-UNITED KINGDOM",
"GMTOffset": "+00:00"
}
}
]
}
}Last updated