PreBill.Edit

Updates an existing pre-bill charge line. The line stays on the same work order and stop.

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, 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.

JSON Body

Body type: PreBillRequestDto

Same fields as Add. All supported billing fields can be changed.

Request Sample

{
  "title": "Bate Stamping",
  "incomeAccountCode": "4000050",
  "serverCode": "NCUR",
  "flatAmount": 0.00,
  "flatRate": 0.02,
  "units": 5,
  "totalAmount": 0.10,
  "taxable": true,
  "noCharge": false,
  "billType": "pages"
}

Expected Response Schema

Status Codes

Status Notes
200 OK The line was updated.
400 Bad Request Missing fields, unknown income account, unknown employee, or invalid bill type. 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: PreBillDto

Field Type Notes
lineItem int Pre-bill identifier.
workOrder string Work order stored on the record.
facilityLineItem int Stop / facility line item.
title string Charge description.
incomeAccountCode string Income account / GL code.
serverCode string Employee code.
flatAmount decimal Flat charge amount.
flatRate decimal Per-unit rate.
units decimal Number of units.
totalAmount decimal Stored total.
taxable bool Taxable flag.
noCharge bool No-charge flag.
billType string One of none, pages, xrays, witnessFee, serviceFee, checkCharge, feesAdvanced, extra1, extra2, extra3.

Response Sample

{
  "lineItem": 771,
  "workOrder": "646982",
  "facilityLineItem": 2646058,
  "title": "Bate Stamping",
  "incomeAccountCode": "4000050",
  "serverCode": "NCUR",
  "flatAmount": 0.00,
  "flatRate": 0.02,
  "units": 5,
  "totalAmount": 0.10,
  "taxable": true,
  "noCharge": false,
  "billType": "pages"
}

Error Body

{
  "title": "Resource not found.",
  "status": 404,
  "detail": "Pre-bill line not found.",
  "errorCode": "NotFound"
}