Skip to main content
GET
/
services
/
{id}
Retrieve a Service
curl --request GET \
  --url https://commerce.driv.ly/api/services/{id}
{
  "data": {
    "id": "<string>",
    "provider": "<string>",
    "vehicle": "<string>",
    "customer": "<string>",
    "destinationAddress": "<string>",
    "destinationContact": "<string>",
    "destinationConsumer": "<string>",
    "originAddress": "<string>",
    "originContact": "<string>",
    "originConsumer": "<string>",
    "deal": "<string>"
  },
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.driv.ly/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required

Service is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Response

Service Found

data
Service · object
Example:
{
"id": "ser_kj93kdl9s3d0",
"type": "Oil Change",
"price": 80,
"provider": {
"id": "ser_kj93kdl9s3d0",
"name": "Auto Shop",
"addresses": [
{
"street": "123 Main St",
"city": "San Francisco",
"state": "CA",
"zip": "94105"
}
]
},
"customer": {
"id": "cus_kj93kdl9s3d0",
"name": "John Doe",
"email": "john@example.com",
"addresses": [
{
"street": "456 Elm St",
"city": "San Francisco",
"state": "CA",
"zip": "94105"
}
],
"phoneNumbers": ["555-555-5555"]
},
"description": "Comprehensive oil change service."
}
success
boolean