PreBill.Delete
Deletes an existing pre-bill charge line from CWorkOrderPreBill. Only the specified line is removed.
Try it in Swagger
Endpoint
- Method:
DELETE
- Route:
PreBill/{workOrder}/{lineItem}
- 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, Session/Create, or Employee/SignIn. |
Route Parameters
| Field |
Type |
Required |
Notes |
workOrder |
string |
Yes |
Photocopy work order. |
lineItem |
int |
Yes |
Pre-bill identifier returned by PreBill.Add. |
This endpoint does not accept a JSON request body.
Expected Response Schema
Status Codes
| Status |
Notes |
200 OK |
The line was deleted. |
400 Bad Request |
Missing work order or invalid line item. Returns a ProblemDetails with errorCode ValidationError. |
404 Not Found |
The pre-bill line does not exist. Returns a ProblemDetails with errorCode NotFound. |
Success Body
Response type: PreBillDeletedDto
| Field |
Type |
Notes |
lineItem |
int |
Deleted pre-bill identifier. |
deleted |
bool |
Always true on success. |
Response Sample
{
"lineItem": 771,
"deleted": true
}
Error Body
{
"title": "Resource not found.",
"status": 404,
"detail": "Pre-bill line not found.",
"errorCode": "NotFound"
}