Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/bid/create

This action creates a new bid for a work order.

Request

FieldDescriptionRequired
report_idUnique identifier for the work orderYes
invoice_item_idUnique identifier for the invoice item. See /bid/invoice/itemsYes, if creating invoice item bid
invoice_item_otherInvoice item stringYes, if creating a custom bid
qtyBid quantityYes, if creating a bid item
qty_completionCompletion quantityYes, if creating a completion item
uomUnique identifier for the Unit of Measure (UOM). See /bid/uomNo
contractor_priceContractor price for the bidYes
client_priceClient price for the bidYes
commentBid commentNo
comp_commentCompletion commentNo

The Unit Of Measure (UOM) field may be set only if the Unit Of Measure feature is enabled for your organization.

Example for creating a bid item:

{
  "report_id": 4066,
  "invoice_item_id": "42921",
  "qty": 5,
  "contractor_price": 10.92,
  "client_price": 21.96,
  "comment": "lock comment"
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":4066,"invoice_item_id":"42921","qty":5,"contractor_price":10.92,"client_price":21.96,"comment":"lock comment"}' \
     https://ppw.web/svc/bid/create

Example for creating a completion item:

{
  "report_id": 4066,
  "invoice_item_id": "42921",
  "qty_completion": 5,
  "contractor_price": 10.92,
  "client_price": 21.96,
  "comp_comment": "completion comment"
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"report_id":4066,"invoice_item_id":"42921","qty_completion":5,"contractor_price":10.92,"client_price":21.96,"comp_comment":"completion comment"}' \
     https://ppw.web/svc/bid/create

Response

FieldDescriptionType
comp_note_idUnique identifier for the bidnumber

Example successful response:

{
  "comp_note_id": 44
}

Errors

Error TypeDescriptionStatus Code
access_deniedAccess token is invalid or expired401
scope_invalidClient app does not have the required OAuth scope403
wo_invalidWork order is invalid400
invoice_item_id_invalidInvoice item is invalid400
invoice_item_other_invalidCustom Invoice item is invalid400
invoice_item_id_not_allowedinvoice_item_id cannot be set400
qty_requiredQuantity is not in the request400
qty_invalidQuantity is invalid400
uom_invalidUnit of Measure (UOM) is invalid400
uom_not_allowedUnit of Measure (UOM) cannot be set400
contractor_price_requiredContractor price not in request400
contractor_price_invalidContractor price is not valid400
client_price_requiredClient price not in request400
client_price_invalidClient price is invalid400
internal_errorInternal server error500
save_errorServer failed to save the bid500