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

get_invoice_items_order – Get Bid/Comp & Invoice Items

The valid Bid/Comp and Invoice options for the work order are available through the get_invoice_items_order event. Each work order could have a custom list of invoice options based on rules setup by each PPW customer. This function should be called for each order if you plan on using the invoicing function of PPWL. The result_data field contains a list of objects with the invoice_item_id and the Item Description. The first item usually has an id of zero and no description. This item can be ignored. The last item is usually “other”. This means the other item is allowed and users can add their own items to the invoice.

The invoice line items are retrieved using this event.

FieldTypeDescription
report_idnumberUnique identifier for the work order

Request payload JSON

{
  "username": "demo",
  "password": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
  "site_id": "dcc363d0-8ed1-48a2-ba2e-f638275db4f",
  "event_name": "get_invoice_items_order",
  "event_data": "{\"report_id\":\"12249320\"}"
}
curl -X POST \
  --data 'payload={
    "username": "demo",
    "password": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "site_id": "dcc363d0-8ed1-48a2-ba2e-f638275db4f",
    "event_name": "get_invoice_items_order",
    "event_data": "{\"report_id\":\"12249320\"}"
  }' \
  https://www.propertypreswizard.com/api/link/receiver.php

Response JSON

{
  "remote_site_id": "1fc25d06-72bd-42f8-ad34-ecbdc5f1a4a4",
  "error": false,
  "success": true,
  "return_error_msg": null,
  "result_data": {
    "0": "",
    "42839": "Exterior Inspection",
    "42838": "aaaaaaa",
    "42835": "11111",
    "42766": "REO Package - Basic",
    "42765": "Lock Change - Lockset",
    "42764": "Lock Change - Knob",
    "42759": "Carpet Replacement",
    "35929": "BID ITEM TEST",
    "8519": "Basements \/ Pools Needing Pumped",
    "8518": "Debris Exterior",
    "8517": "Debris Interior",
    "8523": "Grass Recut",
    "8522": "Initial Grass Cut",
    "8524": "Inspection",
    "8525": "Locks",
    "8514": "Lock Boxes",
    "8513": "Padlocks",
    "8520": "Rooms With Mold",
    "18560": "Test Drop down",
    "8521": "Trip Charge",
    "8515": "Winterization (Dry)",
    "8516": "Winterization (Wet)",
    "18561": "drop down option for demo",
    "42841": "test cancel item",
    "  ": "",
    "***other***": "Other"
  }
}