CopyOrder.CreateCopy
Try it in Swagger
Endpoint
- Method:
POST
- Route:
CopyOrder/CreateCopy
- Authentication:
Authorize
Request Schema
| 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: WorkOrderCopyRequest
| Field |
Type |
Required |
Max Length |
Notes |
workOrder |
string |
Yes |
25 |
|
type |
string |
Yes |
25 |
|
Type / Enum Values
| Field |
Allowed Values |
Notes |
type |
process, processorder, p |
Copies an existing process order into a new process draft. |
type |
delivery, m |
Copies an existing messenger/delivery order into a new delivery draft. |
type |
court, c |
Copies an existing court order into a new court draft. |
workOrder is the existing WinServe work order id to copy, such as P123456, M123456, or C123456.
Request Sample
{
"workOrder": "P123456",
"type": "process"
}
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: WorkOrderCopyResponse
| Field |
Type |
Max Length |
Notes |
workOrder |
string |
|
|
Response Sample
{
"workOrder": "C123456"
}