FileAndServeOrder.SaveDraft

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: FileAndServeOrderRequest

Field Type Required Max Length Notes
webOrder string? No 20
orderType int Yes Order type code from FileAndServeOrder.GetJobTypes.
referenceNumber string Yes 35
plaintiff string Yes 600
defendant string Yes 600
courtCode string Conditional 12 Court code, not the court display name. Required unless court override is used. Use Court.Search, Court.GetAll, or Court.Get to retrieve valid court codes.
caseNumber string Yes 100
department string Yes 50
room string Yes 50
hearingDate DateTime? No
advanceFees bool No
checkAttached bool No
callClientWithCaseNumber bool No
statuteFiling bool No
rushReturnConfirmed bool No
representingName string Yes 100
representingCode int? No
specialInstructions string Yes 500
documentsDescription string Yes 2000
servees List<FileAndServeServeeRequest> Yes At least one servee is required.
export bool No
documents List<FileAndServeDocumentRequest> Conditional Required when the selected job type requires uploads.

Type / Enum Values

Field Allowed Values Notes
courtCode code from Court.Search, Court.GetAll, or Court.Get Send the court code, not the court name/description.
orderType Integer from FileAndServeOrder.GetJobTypes Use the linked lookup endpoint to get valid file-and-serve job types for the tenant.

Request Sample

{
  "webOrder": "W123456",
  "orderType": 201,
  "referenceNumber": "REF-12345",
  "plaintiff": "Acme Corporation",
  "defendant": "John Doe",
  "courtCode": "LASC",
  "caseNumber": "24STCV12345",
  "department": "Dept 12",
  "room": "Room 305",
  "hearingDate": "2026-05-07T09:00:00",
  "advanceFees": false,
  "checkAttached": false,
  "callClientWithCaseNumber": false,
  "statuteFiling": false,
  "rushReturnConfirmed": false,
  "representingName": "Acme Corporation",
  "representingCode": 123,
  "specialInstructions": "File and serve all parties.",
  "documentsDescription": "Summons and complaint",
  "servees": [
    {
      "partyBeingServed": "John Doe",
      "addresses": [
        {
          "businessName": "Acme Corporation",
          "street": "123 Main St",
          "suite": "Suite 100",
          "city": "Los Angeles",
          "state": "CA",
          "zip": "90012",
          "phone": "2135550100"
        }
      ],
      "serviceInstructions": "Serve before 5 PM.",
      "advanceFees": false,
      "amount": null,
      "agent": "Registered Agent",
      "fileProofOfService": true,
      "partyIsAnEntity": false
    }
  ],
  "export": false,
  "documents": [
    {
      "name": "summons.pdf",
      "id": "doc-123",
      "base64": "JVBERi0xLjQ="
    }
  ]
}

Expected Response Schema

Status Codes

Status Notes
200 OK Returned by the controller for this operation.

Success Body

Response type: string

The response body is the saved draft web order id.

Response Sample

"W123456"