DeliveryOrder.Create

Try it in Swagger

Endpoint

Request Schema

Headers

Header Required Notes
X-Api-Key Required when tenant is not resolved by subdomain Resolves the tenant/customer database.
Authorization: Bearer {token} Required for authorized endpoints Get a token from Auth/Token or Session/Create.

JSON Body

Body type: DeliveryOrderRequest

Field Type Required Max Length Notes
webOrder string? No 20
referenceNumber string Yes 35
plaintiff string Yes 600
defendant string Yes 600
caseNumber string Yes 100
claimNumber string Conditional 50 Required when the bill-to customer is an insurance customer.
orderType int Yes Order type code from DeliveryOrder.GetJobTypes.
adjusterCode int? Yes Canonical property name. Attorney code from Attorney.GetAll. Do not send adjuster, attorney, or attorneyCode. Required on Create; SaveDraft is lenient.
billToAdjusterCode int? No Bill-to attorney code from BillTo.GetAttorneys. Defaults to adjusterCode when omitted.
dateOrdered DateTime? No
dueDate DateTime? No
specialInstructions string Yes 500
documentsDescription string Yes 2000
pickup DeliveryAddressRequest Yes Pickup name, address, city, and state are required.
delivery DeliveryAddressRequest Yes Delivery name, address, city, and state are required.
advanceFees bool No
export bool No
documents List<DeliveryOrderDocumentRequest> Conditional Required when the selected job type requires uploads.

Type / Enum Values

Field Allowed Values Notes
orderType Integer from DeliveryOrder.GetJobTypes Use the linked lookup endpoint to get valid delivery job types for the tenant.

Request Sample

{
  "webOrder": "string",
  "referenceNumber": "string",
  "plaintiff": "string",
  "defendant": "string",
  "caseNumber": "string",
  "claimNumber": "string",
  "orderType": 123,
  "dateOrdered": "2026-05-07T00:00:00",
  "dueDate": "2026-05-07T00:00:00",
  "specialInstructions": "string",
  "documentsDescription": "string",
  "pickup": {
    "carRequired": false,
    "name": "string",
    "contact": "string",
    "address": "string",
    "suite": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "phone": "string",
    "date": "2026-05-07T00:00:00",
    "instructions": "string"
  },
  "delivery": {
    "carRequired": false,
    "name": "string",
    "contact": "string",
    "address": "string",
    "suite": "string",
    "city": "string",
    "state": "string",
    "zip": "string",
    "phone": "string",
    "date": "2026-05-07T00:00:00",
    "instructions": "string"
  },
  "advanceFees": false,
  "export": false,
  "documents": [
    {
      "name": "supporting-document.pdf",
      "id": "doc-123",
      "base64": "JVBERi0xLjQ="
    }
  ]
}

Expected Response Schema

Status Codes

Status Notes
200 OK Returned by the controller for this operation.
400 Bad Request Validation, invalid request, invalid contact, or service/export failure.

Success Body

Response type: ExportedOrderResult

The response body is returned as ExportedOrderResult.

See the Order Lifecycle guide for how draft web order ids become exported work order ids.

Response Sample

{
  "webOrderId": "W123456",
  "workOrderId": "C123456",
  "generatedWorkOrders": [
    {
      "workOrder": "C123456",
      "servee": null
    }
  ]
}