Skip to main content
POST
/
services
Create a new Service
curl --request POST \
  --url https://commerce.driv.ly/api/services \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "<string>",
  "vehicle": "<string>",
  "customer": "<string>",
  "id": "<string>",
  "destinationAddress": "<string>",
  "destinationContact": "<string>",
  "destinationConsumer": "<string>",
  "originAddress": "<string>",
  "originContact": "<string>",
  "originConsumer": "<string>",
  "deal": "<string>"
}
'
{
  "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
}

Query Parameters

depth
integer

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

Body

application/json
provider
required

Service is from Service Provider

vehicle
required

Service is performed on Vehicle

customer
required

Service is sought by Customer

id
string

Service is uniquely identified by id

destinationAddress

Service is to Destination Address

destinationContact

Service is to Destination Contact

destinationConsumer

Service is to Destination Consumer

originAddress

Service is from Origin Address

originContact

Service is from Origin Contact

originConsumer

Service is from Origin Consumer

deal

Service is performed for Deal

Response

Service Created

data
Service · object
success
boolean