Skip to main content

Courier Integrations

Overview

Nexus integrates with courier/delivery services for AWB (airway bill) creation, label printing, and real-time shipment tracking. The primary integration is with Bosta (a MENA-region last-mile delivery service).

Capabilities

  • Create shipments/AWBs via courier API.
  • Generate and print shipping labels.
  • Real-time tracking status updates via webhooks.
  • Automatic order status updates on delivery events.

Edge Functions

FunctionDirectionPurpose
create-awb-bostaOutboundCreates a shipment with Bosta courier
print-awbReadGenerates a printable shipping label
tracking-webhookInboundReceives shipment status updates
internal-tracking-webhookInboundInternal tracking event handler
logistics-webhookInboundGeneral logistics event handler
process-order-shipmentActionProcesses order for shipment creation

Common troubleshooting

IssueResolution
AWB creation failsVerify courier API credentials. Check that the shipping address is complete.
Tracking updates not receivedEnsure the tracking webhook URL is registered with the courier.
Label not printingCheck that print-awb returns a valid PDF URL. Verify browser popup settings.