# order.location.updated

# Introduction

The order.location.updated webhook provides real-time location tracking for orders in transit. This webhook is triggered recurrently while the order status is en_route, sending periodic updates based on the configuration you set during app creation in the Integrator Studio.

This allows you to display live delivery tracking on maps or provide real-time updates to your customers.

For more details on webhook configuration, see the App Creation section.

# Alternative Tracking Option


# How It Works


# Webhook Request

Armada sends recurrent POST requests to your configured webhook URL with the latest order location.

# Payload Headers

These are the useful headers you need. The request may include additional headers, but these are the essential ones:

Header Description
Content-Type application/json
User-Agent Armada Delivery Solutions
x-armada-app-id Your application ID
x-armada-app-name Your application name
x-armada-installation-id Installation identifier
x-armada-api-version API version (v1)
x-armada-timestamp Webhook sent timestamp (ISO 8601)
x-armada-webhook-id Unique webhook sequence ID (same for all updates in this sequence)
x-armada-webhook-topic order.location.updated

# Payload Schema

{
  "code": "String", // Order code
  "location": { // Current order location
    "latitude": Number, // Current latitude
    "longitude": Number // Current longitude
  },
  "status": "String" // Always "en_route" for this webhook
}

# Payload Example

{
  "code": "EAA6CAC9D5",
  "location": {
    "latitude": 29.3469,
    "longitude": 47.9246
  },
  "status": "en_route"
}

# Response Requirements

# Best Practices


# Use Cases

Display the driver's current location on a map in real-time, showing customers exactly where their order is.

Calculate and display estimated arrival time based on current location and distance to destination.

Send proactive notifications when the driver is approaching (e.g., "Your order is 5 minutes away!").

Analyze delivery routes, optimize future deliveries, and track driver efficiency.

Trigger actions when the driver enters specific geographical zones or gets close to the destination.