Product HS Code
This endpoint is the recommended way to find the correct HS code for what the customer is shipping.
Recommended integration flow:
Add a searchable item input in your UI.
As the user types, call this endpoint with the typed value.
Use the response to populate a dropdown/autocomplete list.
Let the user select the best match and save the returned HS code.
Send that HS code in
boxes.*.items.*.product_hs_codewhen creating/purchasing shipment.
Important:
It is strongly advised to use HS codes returned by this API.
Submitting an HS code that is not recognized in our system will cause shipment validation to fail.
This is critical because global carriers (for example DHL) require valid HS codes for customs.
Use your base64-encoded public_key:private_key value.
The search term for products.
smartphoneSFNtrue200Product HS code search completed successfullyGET /api/v1/product/search/{value} HTTP/1.1
Host: api-sandbox.africaniestest.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"status_code": 200,
"message": "Product HS code search completed successfully",
"data": [
{
"id": 2896,
"hs_code": "5113000000",
"name": "Woven fabrics of coarse animal hair or of horsehair.",
"active": true,
"deleted_at": null,
"created_at": "2024-12-17T12:05:32.000000Z",
"updated_at": null
}
]
}This endpoint verifies whether an HS code is valid and recognized in our system. Use it when you need an explicit validation check before submitting shipment items.
Use your base64-encoded public_key:private_key value.
SFNThe HS code of the product to verify.
0101210000true200Product verified successfullyPOST /api/v1/product/verify HTTP/1.1
Host: api-sandbox.africaniestest.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"hs_code": "0101210000"
}{
"success": true,
"status_code": 200,
"message": "Product verified successfully",
"data": {
"hs_code": "0101210000",
"valid": true,
"description": "Live animals; horses, asses, mules and hinnies",
"category": "Animals"
}
}This endpoint retrieves products and their HS code metadata used during shipment creation. HS code selection is required for international shipping and customs processing.
Use your base64-encoded public_key:private_key value.
Optional parameter. optional The ID of the specific product to retrieve.
{"summary":"When the value is omitted","value":""}SFNtrue200Products HS codes retrieved successfullyGET /api/v1/product/{id} HTTP/1.1
Host: api-sandbox.africaniestest.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"status_code": 200,
"message": "Products HS codes retrieved successfully",
"data": [
{
"id": 2896,
"hs_code": "5113000000",
"name": "Woven fabrics of coarse animal hair or of horsehair.",
"active": true,
"deleted_at": null,
"created_at": "2024-12-17T12:05:32.000000Z",
"updated_at": null
}
]
}Last updated