Overview

Drivly’s Body & Paint API simplifies the complex process of managing body and paint services, offering a straightforward solution for obtaining quotes and placing orders.


Workflows

The API facilitates two primary functions, Quote and Order Body & Paint service types.

Quote Body & Paint

Obtain accurate quotes for body and paint services, including dent repair, paint touch-ups, and full body paint jobs.

Order Paint & Body

Place orders for body and paint services, ensuring vehicles are quickly brought up to your standards.


Typical Progression

Lets go over the typical progression of a body and paint service order. While these steps are typical, there may be issues, delays, or other factors that can affect the progression of your service order.

If any problems arise, the service order’s status will be updated to either delayed or canceled, and you will be notified of the issue via email and webhook.

1

After payment is successful

A service order is created with the details of your quote, including the estimated time and cost.

The service order will start in the pending status, this means that its just waiting for the team to pick up the vehicle, and start work.

2

After some time has passed

The service provider will begin working on your vehicle, ensuring it receives the care it needs.

The service order will be updated to include the status of the service, moving from pending to in-progress.

3

Work is completed

Once the service is completed, the service order will be updated to reflect the status of the service.

After work is completed, the service order will be updated to include the status of the service, moving from in-progress to completed.


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": "body-&-paint",
  "data": {
    "id": "order_cuRxvZfmcgAchV",
    "deal": "deal_8f7Y7c",
    "status": "pending", // pending, in-progress, completed, delayed, canceled
    "estimatedTime": "2024-01-01T12:00:00Z",
    "receiptLink": "https://checkout.driv.ly/order_cuRxvZfmcgAchV",
    "paid": true,
    "price": 450,
    "items": [
      {
        "service": "body-&-paint",
        "price": 350,
        "name": "Body & Paint Repair for WP0AF2A99KS165242",
        "description": "fault_EbaCojKxsJL",
        "quantity": 1
      },
      {
        "service": "body-&-paint",
        "price": 100,
        "name": "Paint Touch-Up for WP0AF2A99KS165242",
        "description": "fault_tqdCQstNcNq",
        "quantity": 1
      }
    ],
    "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, providing you with the updated details of the order:

{
  "event": "service.updated",
  "type": "body-&-paint",
  "data": {
    "id": "order_cuRxvZfmcgAchV",
    "deal": "deal_8f7Y7c",
    "status": "in-progress",
    "estimatedTime": "2024-01-01T12:00:00Z",
    "receiptLink": "https://checkout.driv.ly/order_cuRxvZfmcgAchV",
    "paid": true,
    "price": 450,
    "items": [
      {
        "service": "body-&-paint",
        "price": 350,
        "name": "Body & Paint Repair for WP0AF2A99KS165242",
        "description": "fault_EbaCojKxsJL",
        "quantity": 1
      },
      {
        "service": "body-&-paint",
        "price": 100,
        "name": "Paint Touch-Up for WP0AF2A99KS165242",
        "description": "fault_tqdCQstNcNq",
        "quantity": 1
      }
    ],
    "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, providing you with the final details of the order:

{
  "event": "service.completed",
  "type": "body-&-paint",
  "data": {
    "id": "order_cuRxvZfmcgAchV",
    "deal": "deal_8f7Y7c",
    "status": "completed",
    "estimatedTime": "2024-01-01T12:00:00Z",
    "receiptLink": "https://checkout.driv.ly/order_cuRxvZfmcgAchV",
    "paid": true,
    "price": 450,
    "items": [
      {
        "service": "body-&-paint",
        "price": 350,
        "name": "Body & Paint Repair for WP0AF2A99KS165242",
        "description": "fault_EbaCojKxsJL",
        "quantity": 1
      },
      {
        "service": "body-&-paint",
        "price": 100,
        "name": "Paint Touch-Up for WP0AF2A99KS165242",
        "description": "fault_tqdCQstNcNq",
        "quantity": 1
      }
    ],
    "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-03T12:00:00Z"
      }
    ]
  }
}

Next Steps

Ready to get started with Body & Paint API?