Overview

Drivly’s Transport & Delivery API simplifies the complex process of managing vehicle transport and delivery services, offering a straightforward solution for obtaining quotes and placing orders.

It’s designed to enhance operational efficiency, reduce costs, and ensure high-quality service. With customizable UI components, businesses can seamlessly integrate transportation capabilities into their products and gain access to a network of professional service providers, ensuring prompt and exceptional care for their vehicles.

Types of Transportation


Transport vehicles over long distances, typically between cities or states.


Workflows

The Transport & Delivery API facilitates two primary types of transportation and delivery services: Quote and Order vehicle transportation services.

Quote Transport & Delivery

Retrieve instant cost estimates for transporting and delivering vehicles over any distances.

Order Transport & Delivery

Easily order transportation and delivery to meet precise delivery standards and deadlines.


Webhooks

service.created - This event is triggered when a service order is created, providing you with the details of the order:

{
  "event": "service.created",
  "type": "transport-&-delivery",
  "data": {
    "id": "order_fcx8YdY2lM2zjR",
    "deal": "deal_9f8Y7c",
    "status": "pending", // pending, in-progress, completed, delayed, canceled
    "estimatedTime": "2024-01-01T12:00:00Z",
    "receiptLink": "https://checkout.driv.ly/order_fcx8YdY2lM2zjR",
    "paid": true,
    "total": 796.5,
    "items": [
      {
        "service": "transport-&-delivery",
        "price": 796.5,
        "name": "Transport & Delivery",
        "description": "Transport and delivery for WP0AF2A99KS165242",
        "fromZip": "60695",
        "toZip": "55379",
        "distance": 429,
        "eta": {
          "min": 2,
          "max": 3
        }
      }
    ],
    "history": [
      // An Array to show the keys changed and when
      {
        "status": "pending",
        "paid": true,
        "time": "2024-01-01T12:00:00Z"
      }
    ]
  }
}

service.updated - This event is triggered when a service order is updated, for example, when we have picked up the vehicle and are in transit or when the service has an issue:

{
  "event": "service.updated",
  "type": "transport-&-delivery",
  "data": {
    "id": "order_fcx8YdY2lM2zjR",
    "deal": "deal_9f8Y7c",
    "status": "in-progress",
    "estimatedTime": "2024-01-01T12:00:00Z",
    "receiptLink": "https://checkout.driv.ly/order_fcx8YdY2lM2zjR",
    "paid": true,
    "total": 796.5,
    "items": [
      {
        "service": "transport-&-delivery",
        "price": 796.5,
        "name": "Transport & Delivery",
        "description": "Transport and delivery for WP0AF2A99KS165242",
        "fromZip": "60695",
        "toZip": "55379",
        "distance": 429,
        "eta": {
          "min": 2,
          "max": 3
        }
      }
    ],
    "history": [
      {
        "status": "pending",
        "paid": true,
        "time": "2024-01-01T12:00:00Z"
      },
      {
        "status": "in-progress",
        "time": "2024-01-02T12:00:00Z"
      }
    ]
  }
}

service.completed - This event is triggered when a service order is completed:

{
  "event": "service.completed",
  "type": "transport-&-delivery",
  "data": {
    "id": "order_fcx8YdY2lM2zjR",
    "deal": "deal_9f8Y7c",
    "status": "completed",
    "estimatedTime": "2024-01-01T12:00:00Z",
    "receiptLink": "https://checkout.driv.ly/order_fcx8YdY2lM2zjR",
    "paid": true,
    "total": 796.5,
    "items": [
      {
        "service": "transport-&-delivery",
        "price": 796.5,
        "name": "Transport & Delivery",
        "description": "Transport and delivery for WP0AF2A99KS165242",
        "fromZip": "60695",
        "toZip": "55379",
        "distance": 429
      }
    ],
    "history": [
      {
        "status": "pending",
        "paid": true,
        "time": "2024-01-01T12:00:00Z"
      },
      {
        "status": "in-progress",
        "time": "2024-01-02T12:00:00Z"
      },
      {
        "status": "completed",
        "time": "2024-01-04T12:00:00Z"
      }
    ]
  }
}

Next Steps

Ready to get started with Transport & Delivery API?