Shipment

Get shipment rates.

post

This endpoint retrieves shipping rates. based on the provided shipment details including sender/receiver information, package dimensions, and items.

Header parameters
X-Shipment-ModestringOptionalExample: SFN
Body
boxesstring[]Required

Array of package boxes.

Example: ["architecto"]
last_mile_deliverybooleanOptional

optional Enable last mile delivery.

Example: true
pickupbooleanOptional

optional Enable pickup service.

Example: false
is_insuredstring · enumOptionalExample: 0Possible values:
Responses
chevron-right
200Success
text/plain
stringOptionalExample: { "success": true, "status_code": 200, "message": "Shipment rates retrieved successfully", "data": { "name": "Africanies Air Standard", "slug": "africanies_air_basic_sfn", "total_cost": 150.00, "currency": "USD", ... } }
post
/api/v1/shipment/rates

Purchase shipment.

post

This endpoint purchases a shipment based on the provided shipment details including sender/receiver information, package dimensions, and items.

File Upload Workflow:

  1. First, call /api/v1/file/generate to get signed URLs for your files

  2. Upload your files directly to S3 using the returned upload_url values

  3. Use the returned s3_key values in documents_s3_key or photos_s3_key arrays

Header parameters
X-Shipment-ModestringOptionalExample: SFN
Body
assigned_datedateRequired

The assigned date for the shipment.

Example: 2024-01-15
boxesstring[]Required

Array of package boxes.

Example: ["architecto"]
typestringOptional

optional Shipment type.

Example: shipment
currencystringRequired

Currency type.

Example: NGN
product_codestringOptional

optional Product code (P or D).

Example: P
is_insuredstringOptional

optional Insurance status (0 or 1).

Example: 1
external_referencestringRequired

External reference identifier.

Example: EXT-REF-12345
shipment_method_slugstringRequired

Shipment method slug.

Example: africanies_air_express_sfn
Responses
chevron-right
200Success
application/json
successbooleanOptionalExample: true
status_codeintegerOptionalExample: 200
messagestringOptionalExample: Shipment purchased successfully
post
/api/v1/shipment/purchase

Track shipment.

post

This endpoint tracks a shipment using the shipment ID and tracking number.

Path parameters
tracking_numberstringRequired

The tracking number.

Example: TRK789012
Header parameters
X-Shipment-ModestringOptionalExample: SFN
Responses
chevron-right
200Success
application/json
successbooleanOptionalExample: true
status_codeintegerOptionalExample: 200
messagestringOptionalExample: Shipment tracking retrieved successfully
post
/api/v1/shipment/track/{tracking_number}

Last updated