POST
/
serviceorders
curl --request POST \
  --url https://commerce.driv.ly/api/serviceorders \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "sord_8d93j2k4s9d2",
  "invoice": "Invoice ID",
  "service": "Service ID",
  "statusURL": "http://example.com/status",
  "serviceQuote": "Service Quote ID",
  "billToCompany": "Company ID",
  "consignmentCompany": "Company ID"
}'
{
  "data": {
    "id": "sord_8d93j2k4s9d2",
    "invoice": "Invoice ID",
    "service": "Service ID",
    "statusURL": "http://example.com/status",
    "serviceQuote": "Service Quote ID",
    "billToCompany": "Company ID",
    "consignmentCompany": "Company ID"
  },
  "success": true
}

Query Parameters

depth
integer

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

Body

application/json

Response

200
application/json

Service Order Created

The response is of type object.