{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Webhooks Event Reference","type":"basic","slug":"events-reference","excerpt":"","body":"Below you will find a reference of all webhook events fired from Fleetio. You may subscribe to some or all of these events from your webhook configuration. \n\nHere is a list of the webhook event categories:\n\n- [Contact Events](https://developer.fleetio.com/docs/events-reference#contact-events)\n- [DTC Alert Events](https://developer.fleetio.com/docs/events-reference#dtc-alert-events)\n- [Equipment Events](https://developer.fleetio.com/docs/events-reference#equipment-events)\n- [Expense Entry Events](https://developer.fleetio.com/docs/events-reference#expense-entry-events)\n- [Fuel Entry Events](https://developer.fleetio.com/docs/events-reference#fuel-entry-events)\n- [Import Events](https://developer.fleetio.com/docs/events-reference#import-events)\n- [Inspection Submission Events](https://developer.fleetio.com/docs/events-reference#inspection-submission-events)\n- [Issue Events](https://developer.fleetio.com/docs/events-reference#issue-events)\n- [Location Entry Events](https://developer.fleetio.com/docs/events-reference#location-entry-events)\n- [Meter Entry Events](https://developer.fleetio.com/docs/events-reference#meter-entry-events)\n- [Place Events](https://developer.fleetio.com/docs/events-reference#place-events)\n- [Part Events](https://developer.fleetio.com/docs/events-reference#part-events)\n- [Purchase Order Events](https://developer.fleetio.com/docs/events-reference#purchase-order-events)\n- [Service Entry Events](https://developer.fleetio.com/docs/events-reference#service-entry-events)\n- [Vehicle Assignment Events](https://developer.fleetio.com/docs/events-reference#vehicle-assignment-events)\n- [Vehicle Events](https://developer.fleetio.com/docs/events-reference#vehicle-events)\n- [Vendor Events](https://developer.fleetio.com/docs/events-reference#vendor-events)\n- [Work Order Events](https://developer.fleetio.com/docs/events-reference#work-order-events)\n[block:api-header]\n{\n  \"title\": \"IMPORTANT NOTE ABOUT IMPORTS\"\n}\n[/block]\nBecause imports can generate **many** events, we will only send one `import_completed` event to your webhook when the import finishes. Inside the payload, you will find the import type, which can be one of the following:\n\n* VehicleImport\n* FuelEntryImport\n* MeterEntryImport\n* ServiceEntryImport\n* ServiceTaskImport\n* IssueImport\n* PartImport\n* ContactImport\n* VendorImport\n* GroupImport\n* ServiceReminderImport\n* VehicleRenewalReminderImport\n* ContactRenewalReminderImport\n* EquipmentImport\n\nAlso inside the payload, you will find an array of `created_record_ids` and `updated_record_ids` containing the IDs of the records that were created or updated during the import process.\n\nIn order to help you easily get all affected records, we've added a [new API endpoint](https://developer.fleetio.com/v1/docs/importsidrecords) that lets you retrieve all created or updated records for an import.\n\nThe exception to this is the Add Multiple Users/Vehicles feature, which **will** generate multiple creation events.\n[block:api-header]\n{\n  \"title\": \"Contact Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`contact_created`\",\n    \"0-1\": \"Fired when a contact is created.\",\n    \"1-0\": \"`contact_updated`\",\n    \"1-1\": \"Fired when a contact is updated.\",\n    \"2-0\": \"`contact_deleted`\",\n    \"2-1\": \"Fired when a contact is deleted. The payload will contain the attributes of the contact before deletion.\",\n    \"3-0\": \"`contact_archived`\",\n    \"3-1\": \"Fired when a contact is archived.\",\n    \"4-0\": \"`contact_merged`\",\n    \"4-1\": \"Fired when a contact is merged into this one. The payload will contain the destination contact.\",\n    \"5-0\": \"`contact_assigned`\",\n    \"5-1\": \"Fired when a contact is assigned to a vehicle.\",\n    \"6-0\": \"`contact_comment_added`\",\n    \"6-1\": \"Fired when a comment is made on a contact.\"\n  },\n  \"cols\": 2,\n  \"rows\": 7\n}\n[/block]\nExample payload for all contact events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283768,\\n  \\\"event\\\": \\\"contact_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:49:21.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 809784,\\n    \\\"name\\\": \\\"Carlos Garcia\\\",\\n    \\\"first_name\\\": \\\"Carlos\\\",\\n    \\\"middle_name\\\": null,\\n    \\\"group_id\\\": 628009,\\n    \\\"group_name\\\": \\\"Sales\\\",\\n    \\\"last_name\\\": \\\"Garcia\\\",\\n    \\\"images_count\\\": 1,\\n    \\\"documents_count\\\": 0,\\n    \\\"comments_count\\\": 0,\\n    \\\"email\\\": \\\"cgarcia:::at:::example.com\\\",\\n    \\\"birth_date\\\": \\\"1983-02-19\\\",\\n    \\\"city\\\": null,\\n    \\\"country\\\": null,\\n    \\\"employee\\\": true,\\n    \\\"employee_number\\\": \\\"#D072\\\",\\n    \\\"home_phone_number\\\": null,\\n    \\\"job_title\\\": \\\"Driver\\\",\\n    \\\"leave_date\\\": null,\\n    \\\"license_class\\\": \\\"C\\\",\\n    \\\"license_number\\\": \\\"73386761\\\",\\n    \\\"license_state\\\": \\\"Alabama\\\",\\n    \\\"mobile_phone_number\\\": \\\"205-555-0001\\\",\\n    \\\"other_phone_number\\\": null,\\n    \\\"postal_code\\\": null,\\n    \\\"region\\\": null,\\n    \\\"start_date\\\": \\\"2020-08-27\\\",\\n    \\\"street_address\\\": null,\\n    \\\"street_address_line_2\\\": null,\\n    \\\"technician\\\": false,\\n    \\\"vehicle_operator\\\": true,\\n    \\\"work_phone_number\\\": null,\\n    \\\"hourly_labor_rate\\\": null,\\n    \\\"custom_fields\\\": {},\\n    \\\"default_image_url\\\": null,\\n    \\\"user\\\": null,\\n    \\\"created_at\\\": \\\"2021-09-29T13:10:32.673-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:49:21.100-07:00\\\"\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Equipment Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`equipment_created`\",\n    \"0-1\": \"Fired when equipment is created.\",\n    \"1-0\": \"`equipment_updated`\",\n    \"2-0\": \"`equipment_deleted`\",\n    \"3-0\": \"`equipment_comment_added`\",\n    \"1-1\": \"Fired when an attribute on equipment is updated.\",\n    \"2-1\": \"Fired when equipment is deleted. The payload will contain the attributes of the equipment before it was deleted.\",\n    \"3-1\": \"Fired when a comment is made on equipment\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all equipment events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283954,\\n  \\\"event\\\": \\\"equipment_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T12:02:31.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 49321,\\n    \\\"name\\\": \\\"Leaf blower 123\\\",\\n    \\\"brand\\\": \\\"\\\",\\n    \\\"model\\\": \\\"Z200T\\\",\\n    \\\"serial_number\\\": \\\"\\\",\\n    \\\"equipment_type_id\\\": 733486,\\n    \\\"type_name\\\": \\\"Leaf Blower\\\",\\n    \\\"equipment_status_id\\\": 209118,\\n    \\\"status_name\\\": \\\"In-Service\\\",\\n    \\\"group_id\\\": null,\\n    \\\"group_name\\\": null,\\n    \\\"purchase_vendor_id\\\": null,\\n    \\\"purchase_price_cents\\\": null,\\n    \\\"purchase_date\\\": null,\\n    \\\"warranty_expiration_date\\\": null,\\n    \\\"purchase_comments\\\": \\\"\\\",\\n    \\\"in_service_date\\\": null,\\n    \\\"estimated_service_life\\\": null,\\n    \\\"out_of_service_date\\\": null,\\n    \\\"comments_count\\\": 0,\\n    \\\"created_at\\\": \\\"2021-10-11T11:14:23.295-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T12:03:25.260-07:00\\\",\\n    \\\"archived_at\\\": null,\\n    \\\"documents_count\\\": 0,\\n    \\\"images_count\\\": 0,\\n    \\\"estimated_resale_price\\\": null,\\n    \\\"status_color\\\": \\\"green\\\",\\n    \\\"default_image_url\\\": null,\\n    \\\"watchers_count\\\": 1,\\n    \\\"is_watched\\\": true,\\n    \\\"linked_vehicle\\\": {},\\n    \\\"assigned_contact\\\": {\\n      \\\"id\\\": 810686,\\n      \\\"name\\\": \\\"Newo Contacto\\\",\\n      \\\"first_name\\\": \\\"Newo\\\",\\n      \\\"middle_name\\\": null,\\n      \\\"group_id\\\": 628272,\\n      \\\"group_name\\\": \\\"Colorado\\\",\\n      \\\"last_name\\\": \\\"Contacto\\\",\\n      \\\"images_count\\\": 0,\\n      \\\"documents_count\\\": 0,\\n      \\\"comments_count\\\": 0,\\n      \\\"email\\\": \\\"[email protected]\\\",\\n      \\\"birth_date\\\": null,\\n      \\\"city\\\": null,\\n      \\\"country\\\": null,\\n      \\\"employee\\\": false,\\n      \\\"employee_number\\\": null,\\n      \\\"home_phone_number\\\": null,\\n      \\\"job_title\\\": null,\\n      \\\"leave_date\\\": null,\\n      \\\"license_class\\\": null,\\n      \\\"license_number\\\": null,\\n      \\\"license_state\\\": null,\\n      \\\"mobile_phone_number\\\": null,\\n      \\\"other_phone_number\\\": null,\\n      \\\"postal_code\\\": null,\\n      \\\"region\\\": null,\\n      \\\"start_date\\\": null,\\n      \\\"street_address\\\": null,\\n      \\\"street_address_line_2\\\": null,\\n      \\\"technician\\\": true,\\n      \\\"vehicle_operator\\\": true,\\n      \\\"work_phone_number\\\": null,\\n      \\\"hourly_labor_rate\\\": null,\\n      \\\"custom_fields\\\": {},\\n      \\\"attachment_permissions\\\": {},\\n      \\\"default_image_url\\\": null,\\n      \\\"user\\\": null,\\n      \\\"created_at\\\": \\\"2021-09-29T17:07:24.384-06:00\\\",\\n      \\\"updated_at\\\": \\\"2021-09-29T17:07:24.384-06:00\\\"\\n    },\\n    \\\"attachment_permissions\\\": {},\\n    \\\"custom_fields\\\": {\\n      \\\"warranty\\\": \\\"false\\\",\\n      \\\"storage_location\\\": \\\"\\\"\\n    },\\n    \\\"assetable_type\\\": \\\"Equipment\\\",\\n    \\\"issues_count\\\": 0,\\n    \\\"current_location_entry\\\": {}\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Vehicle Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`vehicle_created`\",\n    \"0-1\": \"Fired when a vehicle is created.\",\n    \"1-0\": \"`vehicle_updated`\",\n    \"1-1\": \"Fired when an attribute on a vehicle is updated.\",\n    \"2-0\": \"`vehicle_status_changed`\",\n    \"2-1\": \"Fired when a vehicle's status changes.\",\n    \"3-0\": \"`vehicle_group_changed`\",\n    \"3-1\": \"Fired when a vehicle's group changes.\",\n    \"4-0\": \"`vehicle_archived`\",\n    \"4-1\": \"Fired when a vehicle is archived.\",\n    \"5-0\": \"`vehicle_deleted`\",\n    \"5-1\": \"Fired when a vehicle is deleted. The payload will contain the attributes of the vehicle before it was deleted.\",\n    \"6-0\": \"`vehicle_assigned`\",\n    \"6-1\": \"Fired when a vehicle assignment is created for a vehicle.\",\n    \"7-0\": \"`vehicle_comment_added`\",\n    \"7-1\": \"Fired when a comment is made on a vehicle\"\n  },\n  \"cols\": 2,\n  \"rows\": 8\n}\n[/block]\nExample payload for all vehicle events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12282806,\\n  \\\"event\\\": \\\"vehicle_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T10:24:42.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 1573893,\\n    \\\"account_id\\\": 54196,\\n    \\\"archived_at\\\": null,\\n    \\\"fuel_type_id\\\": null,\\n    \\\"fuel_type_name\\\": null,\\n    \\\"fuel_volume_units\\\": \\\"us_gallons\\\",\\n    \\\"group_id\\\": 628009,\\n    \\\"group_name\\\": \\\"Sales\\\",\\n    \\\"meter_unit\\\": \\\"mi\\\",\\n    \\\"name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n    \\\"ownership\\\": \\\"Owned\\\",\\n    \\\"secondary_meter\\\": false,\\n    \\\"secondary_meter_unit\\\": null,\\n    \\\"system_of_measurement\\\": \\\"imperial\\\",\\n    \\\"vehicle_status_id\\\": 289265,\\n    \\\"vehicle_status_name\\\": \\\"In Shop\\\",\\n    \\\"vehicle_status_color\\\": \\\"orange\\\",\\n    \\\"vehicle_type_id\\\": 846962,\\n    \\\"vehicle_type_name\\\": \\\"Van\\\",\\n    \\\"fuel_entries_count\\\": 7,\\n    \\\"service_entries_count\\\": 5,\\n    \\\"service_reminders_count\\\": 2,\\n    \\\"vehicle_renewal_reminders_count\\\": 1,\\n    \\\"comments_count\\\": 0,\\n    \\\"documents_count\\\": 0,\\n    \\\"images_count\\\": 1,\\n    \\\"current_location_entry_id\\\": 224434224,\\n    \\\"is_sample\\\": false,\\n    \\\"in_service_date\\\": \\\"2017-04-30\\\",\\n    \\\"in_service_meter\\\": 48000,\\n    \\\"estimated_service_months\\\": 60,\\n    \\\"estimated_replacement_mileage\\\": 100000,\\n    \\\"estimated_resale_price\\\": {\\n      \\\"cents\\\": 0,\\n      \\\"currency_iso\\\": \\\"USD\\\"\\n    },\\n    \\\"out_of_service_date\\\": null,\\n    \\\"out_of_service_meter\\\": null,\\n    \\\"meter_name\\\": \\\"Odometer\\\",\\n    \\\"secondary_meter_name\\\": \\\"Secondary Meter\\\",\\n    \\\"created_at\\\": \\\"2021-09-29T13:10:40.277-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T10:24:42.352-07:00\\\",\\n    \\\"current_meter_value\\\": 136699,\\n    \\\"current_meter_date\\\": \\\"2021-10-11\\\",\\n    \\\"secondary_meter_value\\\": 0,\\n    \\\"secondary_meter_date\\\": null,\\n    \\\"group_ancestry\\\": \\\"USA / Southeast Region / Birmingham / Sales\\\",\\n    \\\"color\\\": \\\"White\\\",\\n    \\\"license_plate\\\": null,\\n    \\\"make\\\": \\\"Chevrolet\\\",\\n    \\\"model\\\": \\\"Express Cargo\\\",\\n    \\\"registration_expiration_month\\\": 0,\\n    \\\"registration_state\\\": null,\\n    \\\"trim\\\": \\\"3500\\\",\\n    \\\"vin\\\": \\\"1GCZGTCG7E11519I7\\\",\\n    \\\"year\\\": 2014,\\n    \\\"loan_account_number\\\": null,\\n    \\\"loan_ended_at\\\": null,\\n    \\\"loan_interest_rate\\\": null,\\n    \\\"loan_notes\\\": null,\\n    \\\"loan_started_at\\\": null,\\n    \\\"loan_vendor_id\\\": null,\\n    \\\"loan_vendor_name\\\": null,\\n    \\\"custom_fields\\\": {\\n      \\\"rear_camera_enabled\\\": \\\"false\\\",\\n      \\\"drive_power_source\\\": \\\"\\\",\\n      \\\"cargo_area_description\\\": \\\"\\\"\\n    },\\n    \\\"issues_count\\\": 1,\\n    \\\"work_orders_count\\\": 0,\\n    \\\"type_name\\\": \\\"Van\\\",\\n    \\\"default_image_url\\\": null,\\n    \\\"default_image_url_medium\\\": null,\\n    \\\"default_image_url_small\\\": null,\\n    \\\"default_image_url_large\\\": null,\\n    \\\"driver\\\": {\\n      \\\"id\\\": 809784,\\n      \\\"first_name\\\": \\\"Carlos\\\",\\n      \\\"last_name\\\": \\\"Garcia\\\",\\n      \\\"full_name\\\": \\\"Carlos Garcia\\\",\\n      \\\"default_image_url\\\": null\\n    },\\n    \\\"specs\\\": {\\n      \\\"id\\\": 2315509,\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"account_id\\\": 54196,\\n      \\\"body_type\\\": \\\"Full-Size\\\",\\n      \\\"body_subtype\\\": \\\"Cargo\\\",\\n      \\\"drive_type\\\": \\\"RWD\\\",\\n      \\\"brake_system\\\": \\\"Hydraulic\\\",\\n      \\\"msrp_cents\\\": 2771000,\\n      \\\"fuel_tank_capacity\\\": 31,\\n      \\\"fuel_tank_2_capacity\\\": null,\\n      \\\"front_track_width\\\": 68.1,\\n      \\\"ground_clearance\\\": 7.7,\\n      \\\"height\\\": 84.5,\\n      \\\"length\\\": 224.1,\\n      \\\"rear_track_width\\\": 67.7,\\n      \\\"width\\\": 79.2,\\n      \\\"wheelbase\\\": 135,\\n      \\\"front_tire_psi\\\": null,\\n      \\\"rear_tire_psi\\\": null,\\n      \\\"base_towing_capacity\\\": 7400,\\n      \\\"curb_weight\\\": 5433,\\n      \\\"gross_vehicle_weight_rating\\\": 9600,\\n      \\\"bed_length\\\": null,\\n      \\\"max_payload\\\": 4145,\\n      \\\"rear_axle_type\\\": \\\"\\\",\\n      \\\"front_tire_type\\\": \\\"LT245/75R16\\\",\\n      \\\"front_wheel_diameter\\\": \\\"16.0 x 6.5\\\",\\n      \\\"rear_tire_type\\\": \\\"LT245/75R16\\\",\\n      \\\"rear_wheel_diameter\\\": \\\"16.0 x 6.5\\\",\\n      \\\"epa_city\\\": 14,\\n      \\\"epa_highway\\\": 19,\\n      \\\"epa_combined\\\": 16,\\n      \\\"engine_description\\\": \\\"Vortec 6.0L Flex Fuel V8 342hp 373ft. lbs.\\\",\\n      \\\"engine_brand\\\": \\\"Vortec\\\",\\n      \\\"engine_aspiration\\\": \\\"Naturally Aspirated\\\",\\n      \\\"engine_block_type\\\": \\\"V\\\",\\n      \\\"engine_bore\\\": 4,\\n      \\\"engine_cam_type\\\": \\\"OHV\\\",\\n      \\\"engine_compression\\\": 9.4,\\n      \\\"engine_cylinders\\\": 8,\\n      \\\"engine_displacement\\\": 6,\\n      \\\"fuel_induction\\\": \\\"Sequential Port Fuel Injection\\\",\\n      \\\"fuel_quality\\\": \\\"87\\\",\\n      \\\"max_hp\\\": 342,\\n      \\\"max_torque\\\": 373,\\n      \\\"oil_capacity\\\": 5.6,\\n      \\\"redline_rpm\\\": \\\"5600\\\",\\n      \\\"engine_stroke\\\": 3.62,\\n      \\\"engine_valves\\\": 16,\\n      \\\"transmission_description\\\": \\\"6-Speed Shiftable Automatic\\\",\\n      \\\"transmission_brand\\\": \\\"\\\",\\n      \\\"transmission_type\\\": \\\"Automatic\\\",\\n      \\\"transmission_gears\\\": 6,\\n      \\\"cargo_volume\\\": 239.7,\\n      \\\"interior_volume\\\": null,\\n      \\\"passenger_volume\\\": \\\"\\\",\\n      \\\"created_at\\\": \\\"2022-01-13T10:24:42.348-07:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-13T10:24:42.348-07:00\\\",\\n      \\\"duty_type\\\": null,\\n      \\\"weight_class\\\": null,\\n      \\\"engine_bore_with_units\\\": \\\"4 in\\\",\\n      \\\"wheelbase_with_units\\\": \\\"135 in\\\",\\n      \\\"msrp\\\": 27710\\n    },\\n    \\\"ai_enabled\\\": false,\\n    \\\"assetable_type\\\": \\\"Vehicle\\\",\\n    \\\"current_location_entry\\\": {\\n      \\\"id\\\": 224434224,\\n      \\\"locatable_type\\\": \\\"SubmittedInspectionForm\\\",\\n      \\\"locatable_id\\\": 16131760,\\n      \\\"date\\\": \\\"2021-09-24T11:07:37.000-06:00\\\",\\n      \\\"created_at\\\": \\\"2021-09-29T13:12:47.507-06:00\\\",\\n      \\\"updated_at\\\": \\\"2021-09-29T13:12:48.165-06:00\\\",\\n      \\\"contact_id\\\": null,\\n      \\\"address\\\": \\\"1508 2nd Ave N, Birmingham, AL 35203, USA\\\",\\n      \\\"is_current\\\": true,\\n      \\\"item_type\\\": \\\"Vehicle\\\",\\n      \\\"item_id\\\": 1573893,\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"location\\\": \\\"POINT (-86.812816 33.512148)\\\",\\n      \\\"address_components\\\": {\\n        \\\"street_number\\\": \\\"1508\\\",\\n        \\\"street\\\": \\\"2nd Avenue North\\\",\\n        \\\"city\\\": \\\"Birmingham\\\",\\n        \\\"region\\\": \\\"Alabama\\\",\\n        \\\"region_short\\\": \\\"AL\\\",\\n        \\\"country\\\": \\\"United States\\\",\\n        \\\"country_short\\\": \\\"US\\\",\\n        \\\"postal_code\\\": \\\"35203\\\"\\n      },\\n      \\\"geolocation\\\": {\\n        \\\"latitude\\\": 33.512148,\\n        \\\"longitude\\\": -86.812816\\n      }\\n    }\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Fuel Entry Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`fuel_entry_created`\",\n    \"0-1\": \"Fired when a fuel entry is created.\",\n    \"1-0\": \"`fuel_entry_updated`\",\n    \"1-1\": \"Fired when a fuel entry is updated.\",\n    \"2-0\": \"`fuel_entry_deleted`\",\n    \"2-1\": \"Fired when a fuel entry is deleted. The payload will contain the fuel entry's attributes before it was deleted\",\n    \"3-1\": \"Fired when a comment is made on a fuel entry.\",\n    \"3-0\": \"`fuel_entry_comment_added`\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all fuel entry events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283344,\\n  \\\"event\\\": \\\"fuel_entry_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:00:02.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 27996649,\\n    \\\"cost_per_hr\\\": null,\\n    \\\"cost_per_km\\\": 0.237,\\n    \\\"cost_per_mi\\\": 0.382,\\n    \\\"date\\\": \\\"2022-01-13T10:58:00.000-07:00\\\",\\n    \\\"external_id\\\": null,\\n    \\\"fuel_type_id\\\": 246474,\\n    \\\"fuel_type_name\\\": \\\"Gasoline\\\",\\n    \\\"kpl\\\": 3.8871,\\n    \\\"liters\\\": \\\"39.747\\\",\\n    \\\"liters_per_hr\\\": null,\\n    \\\"lp100k\\\": 25.7262,\\n    \\\"mpg_uk\\\": 10.9802,\\n    \\\"mpg_us\\\": 9.1429,\\n    \\\"partial\\\": false,\\n    \\\"personal\\\": false,\\n    \\\"price_per_volume_unit\\\": 3.49,\\n    \\\"raw_transaction_data\\\": null,\\n    \\\"reference\\\": \\\"\\\",\\n    \\\"region\\\": null,\\n    \\\"reset\\\": false,\\n    \\\"uk_gallons\\\": \\\"8.743\\\",\\n    \\\"uk_gallons_per_hr\\\": null,\\n    \\\"us_gallons\\\": \\\"10.5\\\",\\n    \\\"us_gallons_per_hr\\\": null,\\n    \\\"usage_in_hr\\\": null,\\n    \\\"usage_in_km\\\": \\\"154.5\\\",\\n    \\\"usage_in_mi\\\": \\\"96.0\\\",\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"vehicle_name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n    \\\"vendor_id\\\": 1783807,\\n    \\\"vendor_name\\\": \\\"Chevron\\\",\\n    \\\"images_count\\\": 0,\\n    \\\"documents_count\\\": 0,\\n    \\\"comments_count\\\": 0,\\n    \\\"is_sample\\\": false,\\n    \\\"custom_fields\\\": {},\\n    \\\"total_amount\\\": 36.65,\\n    \\\"meter_entry\\\": {\\n      \\\"id\\\": 180133827,\\n      \\\"auto_voided_at\\\": null,\\n      \\\"category\\\": null,\\n      \\\"date\\\": \\\"2022-01-13\\\",\\n      \\\"meter_type\\\": null,\\n      \\\"meterable_id\\\": 27996649,\\n      \\\"meterable_type\\\": \\\"FuelEntry\\\",\\n      \\\"value\\\": \\\"136750.0\\\",\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"void\\\": false,\\n      \\\"type\\\": null,\\n      \\\"created_at\\\": \\\"2022-01-13T11:00:02.696-07:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-13T11:00:02.696-07:00\\\"\\n    },\\n    \\\"geolocation\\\": {},\\n    \\\"comments\\\": [],\\n    \\\"map_previews\\\": {\\n      \\\"small\\\": null,\\n      \\\"large\\\": null,\\n      \\\"small_short\\\": null,\\n      \\\"large_short\\\": null\\n    },\\n    \\\"created_at\\\": \\\"2022-01-13T11:00:02.652-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:00:02.652-07:00\\\"\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Issue Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`issue_created`\",\n    \"0-1\": \"Fired when an issue is created.\",\n    \"1-0\": \"`issue_updated`\",\n    \"1-1\": \"Fired when an issue is updated.\",\n    \"2-0\": \"`issue_deleted`\",\n    \"2-1\": \"Fired when an issue is deleted. The payload will contain the issue's attributes before deletion.\",\n    \"3-0\": \"`issue_resolved`\",\n    \"3-1\": \"Fired when an issue is resolved.\",\n    \"4-0\": \"`issue_closed`\",\n    \"4-1\": \"Fired when an issue is closed.\",\n    \"5-0\": \"`issue_comment_added`\",\n    \"5-1\": \"Fired when a comment is made on an issue.\"\n  },\n  \"cols\": 2,\n  \"rows\": 6\n}\n[/block]\nExample payload for all issue events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283581,\\n  \\\"event\\\": \\\"issue_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:23:58.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 2986811,\\n    \\\"number\\\": \\\"#17\\\",\\n    \\\"name\\\": \\\"[Inspection] Transmission\\\",\\n    \\\"summary\\\": \\\"[Inspection] Transmission\\\",\\n    \\\"description\\\": \\\"Generated by the failed inspection item \\\\\\\"Transmission\\\\\\\" on the \\\\\\\"DVIR\\\\\\\" form\\\",\\n    \\\"state\\\": \\\"Open\\\",\\n    \\\"reported_at\\\": \\\"2022-01-13T11:21:40.798-07:00\\\",\\n    \\\"reported_by_id\\\": 809782,\\n    \\\"reported_by_name\\\": \\\"Harry Levine\\\",\\n    \\\"fault_id\\\": null,\\n    \\\"due_date\\\": null,\\n    \\\"due_meter_value\\\": null,\\n    \\\"due_secondary_meter_value\\\": null,\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"vehicle_name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n    \\\"images_count\\\": 0,\\n    \\\"documents_count\\\": 0,\\n    \\\"comments_count\\\": 0,\\n    \\\"is_sample\\\": false,\\n    \\\"created_by_workflow\\\": false,\\n    \\\"submitted_inspection_form_id\\\": null,\\n    \\\"custom_fields\\\": {},\\n    \\\"dtc_alert_id\\\": null,\\n    \\\"meter_entry\\\": {\\n      \\\"id\\\": 180136762,\\n      \\\"auto_voided_at\\\": null,\\n      \\\"category\\\": null,\\n      \\\"date\\\": \\\"2022-01-13\\\",\\n      \\\"meter_type\\\": null,\\n      \\\"meterable_id\\\": 2986811,\\n      \\\"meterable_type\\\": \\\"Issue\\\",\\n      \\\"value\\\": \\\"136777.0\\\",\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"void\\\": false,\\n      \\\"type\\\": null,\\n      \\\"created_at\\\": \\\"2022-01-13T11:23:58.946-07:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-13T11:23:58.946-07:00\\\"\\n    },\\n    \\\"assigned_contacts\\\": [\\n      {\\n        \\\"id\\\": 810685,\\n        \\\"name\\\": \\\"Franco Robertson\\\",\\n        \\\"first_name\\\": \\\"Franco\\\",\\n        \\\"middle_name\\\": null,\\n        \\\"group_id\\\": 628272,\\n        \\\"group_name\\\": \\\"Colorado\\\",\\n        \\\"last_name\\\": \\\"Robertson\\\",\\n        \\\"images_count\\\": 0,\\n        \\\"documents_count\\\": 0,\\n        \\\"comments_count\\\": 0,\\n        \\\"email\\\": \\\"[email protected]\\\",\\n        \\\"birth_date\\\": null,\\n        \\\"city\\\": null,\\n        \\\"country\\\": null,\\n        \\\"employee\\\": true,\\n        \\\"employee_number\\\": null,\\n        \\\"home_phone_number\\\": null,\\n        \\\"job_title\\\": null,\\n        \\\"leave_date\\\": null,\\n        \\\"license_class\\\": null,\\n        \\\"license_number\\\": null,\\n        \\\"license_state\\\": null,\\n        \\\"mobile_phone_number\\\": null,\\n        \\\"other_phone_number\\\": null,\\n        \\\"postal_code\\\": null,\\n        \\\"region\\\": null,\\n        \\\"start_date\\\": null,\\n        \\\"street_address\\\": null,\\n        \\\"street_address_line_2\\\": null,\\n        \\\"technician\\\": false,\\n        \\\"vehicle_operator\\\": false,\\n        \\\"work_phone_number\\\": null,\\n        \\\"hourly_labor_rate\\\": null,\\n        \\\"custom_fields\\\": {},\\n        \\\"default_image_url\\\": null,\\n        \\\"user\\\": {\\n          \\\"id\\\": 347769,\\n          \\\"email\\\": \\\"[email protected]\\\",\\n          \\\"username\\\": null,\\n          \\\"time_zone\\\": \\\"Mountain Time (US & Canada)\\\"\\n        },\\n        \\\"created_at\\\": \\\"2021-09-29T17:05:10.427-06:00\\\",\\n        \\\"updated_at\\\": \\\"2021-09-29T17:05:10.427-06:00\\\"\\n      }\\n    ],\\n    \\\"reported_by\\\": {\\n      \\\"id\\\": 809782,\\n      \\\"name\\\": \\\"Harry Levine\\\",\\n      \\\"first_name\\\": \\\"Harry\\\",\\n      \\\"middle_name\\\": null,\\n      \\\"group_id\\\": null,\\n      \\\"group_name\\\": null,\\n      \\\"last_name\\\": \\\"Levine\\\",\\n      \\\"images_count\\\": 0,\\n      \\\"documents_count\\\": 0,\\n      \\\"comments_count\\\": 0,\\n      \\\"email\\\": \\\"[email protected]\\\",\\n      \\\"birth_date\\\": null,\\n      \\\"city\\\": null,\\n      \\\"country\\\": null,\\n      \\\"employee\\\": false,\\n      \\\"employee_number\\\": null,\\n      \\\"home_phone_number\\\": null,\\n      \\\"job_title\\\": null,\\n      \\\"leave_date\\\": null,\\n      \\\"license_class\\\": null,\\n      \\\"license_number\\\": null,\\n      \\\"license_state\\\": null,\\n      \\\"mobile_phone_number\\\": null,\\n      \\\"other_phone_number\\\": null,\\n      \\\"postal_code\\\": null,\\n      \\\"region\\\": null,\\n      \\\"start_date\\\": null,\\n      \\\"street_address\\\": null,\\n      \\\"street_address_line_2\\\": null,\\n      \\\"technician\\\": false,\\n      \\\"vehicle_operator\\\": null,\\n      \\\"work_phone_number\\\": \\\"+17209719997\\\",\\n      \\\"hourly_labor_rate\\\": null,\\n      \\\"custom_fields\\\": {},\\n      \\\"default_image_url\\\": null,\\n      \\\"user\\\": {\\n        \\\"id\\\": 347375,\\n        \\\"email\\\": \\\"[email protected]\\\",\\n        \\\"username\\\": null,\\n        \\\"time_zone\\\": \\\"Mountain Time (US & Canada)\\\"\\n      },\\n      \\\"created_at\\\": \\\"2021-09-29T13:10:29.574-06:00\\\",\\n      \\\"updated_at\\\": \\\"2021-09-29T13:10:29.574-06:00\\\"\\n    },\\n    \\\"labels\\\": [\\n      {\\n        \\\"id\\\": 87590,\\n        \\\"name\\\": \\\"Needs Repair\\\"\\n      }\\n    ],\\n    \\\"comments\\\": [],\\n    \\\"created_at\\\": \\\"2022-01-13T11:23:58.907-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:23:58.907-07:00\\\",\\n    \\\"overdue\\\": false,\\n    \\\"is_watched\\\": true,\\n    \\\"vehicle_image_url\\\": null,\\n    \\\"vehicle_image_url_medium\\\": null,\\n    \\\"vehicle_image_url_small\\\": null,\\n    \\\"vehicle_image_url_large\\\": null,\\n    \\\"watchers_count\\\": 1,\\n    \\\"linked_work_orders\\\": null,\\n    \\\"source\\\": {\\n      \\\"inspection_form\\\": {\\n        \\\"id\\\": null,\\n        \\\"color\\\": null,\\n        \\\"title\\\": null\\n      },\\n      \\\"inspection_submissions_count\\\": 0,\\n      \\\"last_inspection_submission_at\\\": null,\\n      \\\"failed_inspection_item_label\\\": null\\n    }\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"DTC Alert Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`dtc_alert_created`\",\n    \"0-1\": \"Fired when a DTC alert is created.\",\n    \"1-0\": \"`dtc_alert_resolved`\",\n    \"1-1\": \"Fired when a DTC alert is resolved.\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]\nExample payload for all DTC alert events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 1,\\n  \\\"event\\\": \\\"dtc_alert_resolved\\\",\\n  \\\"timestamp\\\": \\\"2017-11-08T13:35:17.755-06:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 1,\\n    \\\"name\\\": \\\"Low Tire Pressure\\\",\\n    \\\"description\\\": \\\"Aliquam commodo dolor nec diam bibendum porta. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam commodo cursus sollicitudin. Vestibulum ac luctus enim. Sed tristique viverra pharetra. Curabitur pretium, nisi vel fermentum aliquet, mi odio laoreet metus, sodales scelerisque leo nisi in justo. Mauris quis risus nec turpis rhoncus porta. Vestibulum lobortis elit nibh, in accumsan augue maximus vitae. Curabitur gravida dolor vitae urna iaculis, at efficitur massa tempor.\\\",\\n    \\\"code\\\": \\\"P0447\\\",\\n    \\\"count\\\": 5,\\n    \\\"account_id\\\": 1,\\n    \\\"vehicle_id\\\": 1,\\n    \\\"external_id\\\": null,\\n    \\\"last_occurred_at\\\": \\\"2015-09-09T21:43:38.726-05:00\\\",\\n    \\\"status\\\": \\\"resolved\\\",\\n    \\\"archived_at\\\": null,\\n    \\\"created_at\\\": \\\"2015-09-30T14:48:08.199-05:00\\\",\\n    \\\"updated_at\\\": \\\"2017-11-08T13:28:08.094-06:00\\\"\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Service Entry Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`service_entry_created`\",\n    \"0-1\": \"Fired when a service entry is created.\",\n    \"1-0\": \"`service_entry_updated`\",\n    \"1-1\": \"Fired when a service entry is updated.\",\n    \"2-0\": \"`service_entry_deleted`\",\n    \"2-1\": \"Fired when a service entry is deleted. The payload will contain the attributes of the service entry before it was deleted.\",\n    \"3-0\": \"`service_entry_comment_added`\",\n    \"3-1\": \"Fired when a comment is made on a service entry.\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all service entry events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283517,\\n  \\\"event\\\": \\\"service_entry_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:17:38.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 11209574,\\n    \\\"reference\\\": \\\"\\\",\\n    \\\"vendor_id\\\": 1783801,\\n    \\\"vendor_name\\\": \\\"Firestone Complete Auto Care\\\",\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"vehicle_name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n    \\\"images_count\\\": 0,\\n    \\\"documents_count\\\": 0,\\n    \\\"comments_count\\\": 0,\\n    \\\"work_order_id\\\": null,\\n    \\\"general_notes\\\": \\\"\\\",\\n    \\\"is_sample\\\": false,\\n    \\\"status\\\": \\\"completed\\\",\\n    \\\"auto_integrate_repair_order_status\\\": null,\\n    \\\"custom_fields\\\": {},\\n    \\\"work_order_number\\\": null,\\n    \\\"started_at\\\": null,\\n    \\\"completed_at\\\": \\\"2022-01-13T11:14:00.000-07:00\\\",\\n    \\\"date\\\": \\\"2022-01-13T11:14:00.000-07:00\\\",\\n    \\\"discount_type\\\": \\\"percentage\\\",\\n    \\\"discount_percentage\\\": 0,\\n    \\\"tax_1_type\\\": \\\"percentage\\\",\\n    \\\"tax_1_percentage\\\": 0,\\n    \\\"tax_2_type\\\": \\\"percentage\\\",\\n    \\\"tax_2_percentage\\\": 0,\\n    \\\"labor_subtotal\\\": 50,\\n    \\\"parts_subtotal\\\": 155.99,\\n    \\\"discount\\\": 0,\\n    \\\"tax_1\\\": 0,\\n    \\\"tax_2\\\": 0,\\n    \\\"total_amount\\\": 205.99,\\n    \\\"service_entry_line_items\\\": [\\n      {\\n        \\\"id\\\": 21210047,\\n        \\\"description\\\": \\\"\\\",\\n        \\\"service_reminder_id\\\": null,\\n        \\\"updated_at\\\": \\\"2022-01-13T11:17:38.020-07:00\\\",\\n        \\\"created_at\\\": \\\"2022-01-13T11:17:38.020-07:00\\\",\\n        \\\"labor_cost\\\": 50,\\n        \\\"parts_cost\\\": 155.99,\\n        \\\"subtotal\\\": 205.99,\\n        \\\"service_task\\\": {\\n          \\\"id\\\": 17707469,\\n          \\\"name\\\": \\\"Windshield Replacement\\\",\\n          \\\"description\\\": null,\\n          \\\"created_at\\\": \\\"2021-09-29T13:10:31.162-06:00\\\",\\n          \\\"updated_at\\\": \\\"2021-09-29T13:10:31.162-06:00\\\",\\n          \\\"subtasks\\\": []\\n        },\\n        \\\"issues\\\": [\\n          {\\n            \\\"id\\\": 2700615,\\n            \\\"number\\\": \\\"#7\\\",\\n            \\\"name\\\": \\\"[Inspection] Rock hit windshield. 6\\\\\\\" crack on passenger side\\\",\\n            \\\"summary\\\": \\\"[Inspection] Rock hit windshield. 6\\\\\\\" crack on passenger side\\\",\\n            \\\"description\\\": \\\"Generated by the failed inspection item \\\\\\\"Windshield and Wipers/Washers\\\\\\\" on the \\\\\\\"Driver Vehicle Inspection Report (Simple)\\\\\\\" form submitted by Harry Levine on Sep 24, 2021 at 11:07 AM MDT\\\",\\n            \\\"state\\\": \\\"Resolved\\\",\\n            \\\"reported_at\\\": \\\"2021-09-24T11:07:37.000-06:00\\\",\\n            \\\"reported_by_id\\\": 809782,\\n            \\\"reported_by_name\\\": \\\"Harry Levine\\\",\\n            \\\"fault_id\\\": null,\\n            \\\"due_date\\\": null,\\n            \\\"due_meter_value\\\": null,\\n            \\\"due_secondary_meter_value\\\": null,\\n            \\\"vehicle_id\\\": 1573893,\\n            \\\"vehicle_name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n            \\\"images_count\\\": 0,\\n            \\\"documents_count\\\": 0,\\n            \\\"comments_count\\\": 0,\\n            \\\"is_sample\\\": false,\\n            \\\"created_by_workflow\\\": true,\\n            \\\"submitted_inspection_form_id\\\": 16131760,\\n            \\\"custom_fields\\\": {},\\n            \\\"dtc_alert_id\\\": null,\\n            \\\"assigned_contacts\\\": [],\\n            \\\"reported_by\\\": {\\n              \\\"id\\\": 809782,\\n              \\\"name\\\": \\\"Harry Levine\\\",\\n              \\\"first_name\\\": \\\"Harry\\\",\\n              \\\"middle_name\\\": null,\\n              \\\"group_id\\\": null,\\n              \\\"group_name\\\": null,\\n              \\\"last_name\\\": \\\"Levine\\\",\\n              \\\"images_count\\\": 0,\\n              \\\"documents_count\\\": 0,\\n              \\\"comments_count\\\": 0,\\n              \\\"email\\\": \\\"[email protected]\\\",\\n              \\\"birth_date\\\": null,\\n              \\\"city\\\": null,\\n              \\\"country\\\": null,\\n              \\\"employee\\\": false,\\n              \\\"employee_number\\\": null,\\n              \\\"home_phone_number\\\": null,\\n              \\\"job_title\\\": null,\\n              \\\"leave_date\\\": null,\\n              \\\"license_class\\\": null,\\n              \\\"license_number\\\": null,\\n              \\\"license_state\\\": null,\\n              \\\"mobile_phone_number\\\": null,\\n              \\\"other_phone_number\\\": null,\\n              \\\"postal_code\\\": null,\\n              \\\"region\\\": null,\\n              \\\"start_date\\\": null,\\n              \\\"street_address\\\": null,\\n              \\\"street_address_line_2\\\": null,\\n              \\\"technician\\\": false,\\n              \\\"vehicle_operator\\\": null,\\n              \\\"work_phone_number\\\": \\\"+17209719997\\\",\\n              \\\"hourly_labor_rate\\\": null,\\n              \\\"custom_fields\\\": {},\\n              \\\"attachment_permissions\\\": {},\\n              \\\"default_image_url\\\": null,\\n              \\\"user\\\": {\\n                \\\"id\\\": 347375,\\n                \\\"email\\\": \\\"[email protected]\\\",\\n                \\\"username\\\": null,\\n                \\\"time_zone\\\": \\\"Mountain Time (US & Canada)\\\"\\n              },\\n              \\\"created_at\\\": \\\"2021-09-29T13:10:29.574-06:00\\\",\\n              \\\"updated_at\\\": \\\"2021-09-29T13:10:29.574-06:00\\\"\\n            },\\n            \\\"labels\\\": [],\\n            \\\"comments\\\": [],\\n            \\\"created_at\\\": \\\"2021-09-29T13:12:47.765-06:00\\\",\\n            \\\"updated_at\\\": \\\"2022-01-13T11:17:38.099-07:00\\\",\\n            \\\"overdue\\\": false,\\n            \\\"attachment_permissions\\\": {},\\n            \\\"documents\\\": [],\\n            \\\"images\\\": [],\\n            \\\"resolvable_id\\\": 11209574,\\n            \\\"resolvable_type\\\": \\\"ServiceEntry\\\",\\n            \\\"resolved_at\\\": \\\"2022-01-13T11:14:00.000-07:00\\\",\\n            \\\"is_watched\\\": true,\\n            \\\"vehicle_image_url\\\": null,\\n            \\\"vehicle_image_url_medium\\\": null,\\n            \\\"vehicle_image_url_small\\\": null,\\n            \\\"vehicle_image_url_large\\\": null,\\n            \\\"watchers_count\\\": 1,\\n            \\\"linked_work_orders\\\": null,\\n            \\\"source\\\": {\\n              \\\"inspection_form\\\": {\\n                \\\"id\\\": 16131760,\\n                \\\"color\\\": null,\\n                \\\"title\\\": \\\"Driver Vehicle Inspection Report (Simple)\\\"\\n              },\\n              \\\"inspection_submissions_count\\\": 1,\\n              \\\"last_inspection_submission_at\\\": \\\"2021-09-24T11:04:37.000-06:00\\\",\\n              \\\"failed_inspection_item_label\\\": \\\"Windshield and Wipers/Washers\\\"\\n            }\\n          }\\n        ]\\n      }\\n    ],\\n    \\\"service_tasks\\\": [\\n      {\\n        \\\"id\\\": 17707469,\\n        \\\"name\\\": \\\"Windshield Replacement\\\",\\n        \\\"description\\\": null,\\n        \\\"created_at\\\": \\\"2021-09-29T13:10:31.162-06:00\\\",\\n        \\\"updated_at\\\": \\\"2021-09-29T13:10:31.162-06:00\\\",\\n        \\\"subtasks\\\": []\\n      }\\n    ],\\n    \\\"issues\\\": [\\n      {\\n        \\\"id\\\": 2700615,\\n        \\\"number\\\": \\\"#7\\\",\\n        \\\"name\\\": \\\"[Inspection] Rock hit windshield. 6\\\\\\\" crack on passenger side\\\",\\n        \\\"summary\\\": \\\"[Inspection] Rock hit windshield. 6\\\\\\\" crack on passenger side\\\",\\n        \\\"description\\\": \\\"Generated by the failed inspection item \\\\\\\"Windshield and Wipers/Washers\\\\\\\" on the \\\\\\\"Driver Vehicle Inspection Report (Simple)\\\\\\\" form submitted by Harry Levine on Sep 24, 2021 at 11:07 AM MDT\\\",\\n        \\\"state\\\": \\\"Resolved\\\",\\n        \\\"reported_at\\\": \\\"2021-09-24T11:07:37.000-06:00\\\",\\n        \\\"reported_by_id\\\": 809782,\\n        \\\"reported_by_name\\\": \\\"Harry Levine\\\",\\n        \\\"fault_id\\\": null,\\n        \\\"due_date\\\": null,\\n        \\\"due_meter_value\\\": null,\\n        \\\"due_secondary_meter_value\\\": null,\\n        \\\"vehicle_id\\\": 1573893,\\n        \\\"vehicle_name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n        \\\"images_count\\\": 0,\\n        \\\"documents_count\\\": 0,\\n        \\\"comments_count\\\": 0,\\n        \\\"is_sample\\\": false,\\n        \\\"created_by_workflow\\\": true,\\n        \\\"submitted_inspection_form_id\\\": 16131760,\\n        \\\"custom_fields\\\": {},\\n        \\\"dtc_alert_id\\\": null,\\n        \\\"assigned_contacts\\\": [],\\n        \\\"reported_by\\\": {\\n          \\\"id\\\": 809782,\\n          \\\"name\\\": \\\"Harry Levine\\\",\\n          \\\"first_name\\\": \\\"Harry\\\",\\n          \\\"middle_name\\\": null,\\n          \\\"group_id\\\": null,\\n          \\\"group_name\\\": null,\\n          \\\"last_name\\\": \\\"Levine\\\",\\n          \\\"images_count\\\": 0,\\n          \\\"documents_count\\\": 0,\\n          \\\"comments_count\\\": 0,\\n          \\\"email\\\": \\\"[email protected]\\\",\\n          \\\"birth_date\\\": null,\\n          \\\"city\\\": null,\\n          \\\"country\\\": null,\\n          \\\"employee\\\": false,\\n          \\\"employee_number\\\": null,\\n          \\\"home_phone_number\\\": null,\\n          \\\"job_title\\\": null,\\n          \\\"leave_date\\\": null,\\n          \\\"license_class\\\": null,\\n          \\\"license_number\\\": null,\\n          \\\"license_state\\\": null,\\n          \\\"mobile_phone_number\\\": null,\\n          \\\"other_phone_number\\\": null,\\n          \\\"postal_code\\\": null,\\n          \\\"region\\\": null,\\n          \\\"start_date\\\": null,\\n          \\\"street_address\\\": null,\\n          \\\"street_address_line_2\\\": null,\\n          \\\"technician\\\": false,\\n          \\\"vehicle_operator\\\": null,\\n          \\\"work_phone_number\\\": \\\"+17209719997\\\",\\n          \\\"hourly_labor_rate\\\": null,\\n          \\\"custom_fields\\\": {},\\n          \\\"attachment_permissions\\\": {},\\n          \\\"default_image_url\\\": null,\\n          \\\"user\\\": {\\n            \\\"id\\\": 347375,\\n            \\\"email\\\": \\\"[email protected]\\\",\\n            \\\"username\\\": null,\\n            \\\"time_zone\\\": \\\"Mountain Time (US & Canada)\\\"\\n          },\\n          \\\"created_at\\\": \\\"2021-09-29T13:10:29.574-06:00\\\",\\n          \\\"updated_at\\\": \\\"2021-09-29T13:10:29.574-06:00\\\"\\n        },\\n        \\\"labels\\\": [],\\n        \\\"comments\\\": [],\\n        \\\"created_at\\\": \\\"2021-09-29T13:12:47.765-06:00\\\",\\n        \\\"updated_at\\\": \\\"2022-01-13T11:17:38.099-07:00\\\",\\n        \\\"overdue\\\": false,\\n        \\\"attachment_permissions\\\": {},\\n        \\\"documents\\\": [],\\n        \\\"images\\\": [],\\n        \\\"resolvable_id\\\": 11209574,\\n        \\\"resolvable_type\\\": \\\"ServiceEntry\\\",\\n        \\\"resolved_at\\\": \\\"2022-01-13T11:14:00.000-07:00\\\",\\n        \\\"is_watched\\\": true,\\n        \\\"vehicle_image_url\\\": null,\\n        \\\"vehicle_image_url_medium\\\": null,\\n        \\\"vehicle_image_url_small\\\": null,\\n        \\\"vehicle_image_url_large\\\": null,\\n        \\\"watchers_count\\\": 1,\\n        \\\"linked_work_orders\\\": null,\\n        \\\"source\\\": {\\n          \\\"inspection_form\\\": {\\n            \\\"id\\\": 16131760,\\n            \\\"color\\\": null,\\n            \\\"title\\\": \\\"Driver Vehicle Inspection Report (Simple)\\\"\\n          },\\n          \\\"inspection_submissions_count\\\": 1,\\n          \\\"last_inspection_submission_at\\\": \\\"2021-09-24T11:04:37.000-06:00\\\",\\n          \\\"failed_inspection_item_label\\\": \\\"Windshield and Wipers/Washers\\\"\\n        }\\n      }\\n    ],\\n    \\\"meter_entry\\\": {\\n      \\\"id\\\": 180136057,\\n      \\\"auto_voided_at\\\": null,\\n      \\\"category\\\": null,\\n      \\\"date\\\": \\\"2022-01-13\\\",\\n      \\\"meter_type\\\": null,\\n      \\\"meterable_id\\\": 11209574,\\n      \\\"meterable_type\\\": \\\"ServiceEntry\\\",\\n      \\\"value\\\": \\\"136776.0\\\",\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"void\\\": false,\\n      \\\"type\\\": null,\\n      \\\"created_at\\\": \\\"2022-01-13T11:17:37.990-07:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-13T11:17:37.990-07:00\\\"\\n    },\\n    \\\"images\\\": [],\\n    \\\"created_at\\\": \\\"2022-01-13T11:17:37.967-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:17:38.114-07:00\\\",\\n    \\\"comments\\\": [],\\n    \\\"labels\\\": [\\n      {\\n        \\\"id\\\": 87590,\\n        \\\"name\\\": \\\"Needs Repair\\\"\\n      }\\n    ],\\n    \\\"auto_integrate_ro_id\\\": null,\\n    \\\"auto_integrate_ro_link\\\": null,\\n    \\\"auto_integrate_repair_order_status_color\\\": \\\"muted\\\"\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Inspection Submission Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`submitted_inspection_form_created`\",\n    \"0-1\": \"Fired when an inspection is submitted.\",\n    \"1-0\": \"`submitted_inspection_form_deleted`\",\n    \"1-1\": \"Fired when an inspection is deleted.\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]\nExample payload for all inspection submission events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298681,\\n  \\\"event\\\": \\\"submitted_inspection_form_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:34:25.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 18491942,\\n    \\\"started_at\\\": \\\"2022-01-14T10:34:21.165-07:00\\\",\\n    \\\"submitted_at\\\": \\\"2022-01-14T10:34:25.514-07:00\\\",\\n    \\\"failed_items\\\": 0,\\n    \\\"vehicle_id\\\": 1577058,\\n    \\\"starting_latitude\\\": null,\\n    \\\"starting_longitude\\\": null,\\n    \\\"submitted_latitude\\\": null,\\n    \\\"submitted_longitude\\\": null,\\n    \\\"duration\\\": \\\"less than a minute\\\",\\n    \\\"inspection_form\\\": {\\n      \\\"id\\\": 54497,\\n      \\\"title\\\": \\\"Simple DVIR\\\",\\n      \\\"description\\\": \\\"Simple version of the driver vehicle inspection form\\\"\\n    },\\n    \\\"date\\\": \\\"January 14, 2022\\\",\\n    \\\"contact_id\\\": 809782,\\n    \\\"user\\\": \\\"Harry Levine\\\",\\n    \\\"comments_count\\\": 0,\\n    \\\"images_count\\\": 0,\\n    \\\"submitted_inspection_items\\\": [\\n      {\\n        \\\"id\\\": 474716584,\\n        \\\"comments_count\\\": 0,\\n        \\\"images_count\\\": 0,\\n        \\\"submitted_inspection_form_id\\\": 18491942,\\n        \\\"latitude\\\": null,\\n        \\\"longitude\\\": null,\\n        \\\"result\\\": {\\n          \\\"label\\\": \\\"Pass\\\"\\n        },\\n        \\\"inspection_item\\\": {\\n          \\\"label\\\": \\\"Got dents?\\\",\\n          \\\"type\\\": \\\"InspectionPassFailItem\\\",\\n          \\\"fail_label\\\": \\\"Fail\\\",\\n          \\\"pass_label\\\": \\\"Pass\\\",\\n          \\\"na_label\\\": \\\"N/A\\\",\\n          \\\"dropdown_options\\\": [],\\n          \\\"numeric_range_max\\\": null,\\n          \\\"numeric_range_min\\\": null\\n        },\\n        \\\"comments\\\": [],\\n        \\\"images\\\": []\\n      },\\n      {\\n        \\\"id\\\": 474716585,\\n        \\\"comments_count\\\": 0,\\n        \\\"images_count\\\": 0,\\n        \\\"submitted_inspection_form_id\\\": 18491942,\\n        \\\"latitude\\\": null,\\n        \\\"longitude\\\": null,\\n        \\\"result\\\": {\\n          \\\"label\\\": \\\"Full\\\"\\n        },\\n        \\\"inspection_item\\\": {\\n          \\\"label\\\": \\\"How full tank is\\\",\\n          \\\"type\\\": \\\"InspectionDropdownItem\\\",\\n          \\\"fail_label\\\": null,\\n          \\\"pass_label\\\": null,\\n          \\\"na_label\\\": \\\"N/A\\\",\\n          \\\"dropdown_options\\\": [\\n            {\\n              \\\"label\\\": \\\"Full\\\",\\n              \\\"position\\\": 1,\\n              \\\"fail_if_chosen\\\": false\\n            },\\n            {\\n              \\\"label\\\": \\\"3/4 full\\\",\\n              \\\"position\\\": 2,\\n              \\\"fail_if_chosen\\\": false\\n            },\\n            {\\n              \\\"label\\\": \\\"1/2 full\\\",\\n              \\\"position\\\": 3,\\n              \\\"fail_if_chosen\\\": false\\n            },\\n            {\\n              \\\"label\\\": \\\"1/4 left\\\",\\n              \\\"position\\\": 4,\\n              \\\"fail_if_chosen\\\": false\\n            },\\n            {\\n              \\\"label\\\": \\\"empty\\\",\\n              \\\"position\\\": 5,\\n              \\\"fail_if_chosen\\\": false\\n            }\\n          ],\\n          \\\"numeric_range_max\\\": null,\\n          \\\"numeric_range_min\\\": null\\n        },\\n        \\\"comments\\\": [],\\n        \\\"images\\\": []\\n      }\\n    ]\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Meter Entry Events\"\n}\n[/block]\nMeter entry events are only fired on **manual** meter entries (e.g. ones that are not associated with another resource, such as a fuel entry or service entry).\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`meter_entry_created`\",\n    \"0-1\": \"Fired when a manual meter entry is created.\",\n    \"1-0\": \"`meter_entry_updated`\",\n    \"1-1\": \"Fired when a manual meter entry is updated.\",\n    \"2-0\": \"`meter_entry_deleted`\",\n    \"2-1\": \"Fired when a manual meter entry is deleted. The payload will contain the meter entry's attributes before deletion.\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]\nExample payload for all meter entry events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283417,\\n  \\\"event\\\": \\\"meter_entry_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:09:07.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 180134912,\\n    \\\"auto_voided_at\\\": null,\\n    \\\"category\\\": null,\\n    \\\"meter_type\\\": null,\\n    \\\"meterable_id\\\": null,\\n    \\\"meterable_type\\\": null,\\n    \\\"value\\\": \\\"136775.0\\\",\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"void\\\": false,\\n    \\\"type\\\": null,\\n    \\\"gps_provider\\\": null,\\n    \\\"date\\\": \\\"2022-01-13\\\",\\n    \\\"created_at\\\": \\\"2022-01-13T11:09:07.373-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:09:07.373-07:00\\\"\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Part Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`part_created`\",\n    \"0-1\": \"Fired when a part is created.\",\n    \"1-0\": \"`part_updated`\",\n    \"1-1\": \"Fired when a part is updated.\",\n    \"2-0\": \"`part_deleted`\",\n    \"2-1\": \"Fired when a part is deleted. The payload will contain the part's attributes before deletion.\",\n    \"3-0\": \"`part_comment_added`\",\n    \"3-1\": \"Fired when a comment is made on a part.\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all part events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283608,\\n  \\\"event\\\": \\\"part_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:29:33.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 1943860,\\n    \\\"description\\\": \\\"Filter for xyz\\\",\\n    \\\"manufacturer_part_number\\\": null,\\n    \\\"measurement_unit_id\\\": null,\\n    \\\"number\\\": \\\"ABC-123\\\",\\n    \\\"part_category_id\\\": 558978,\\n    \\\"part_manufacturer_id\\\": null,\\n    \\\"upc\\\": null,\\n    \\\"total_quantity\\\": 10,\\n    \\\"comments_count\\\": 0,\\n    \\\"documents_count\\\": 0,\\n    \\\"images_count\\\": 0,\\n    \\\"custom_fields\\\": {},\\n    \\\"inventory_item\\\": true,\\n    \\\"part_category_name\\\": \\\"Filters\\\",\\n    \\\"part_manufacturer_name\\\": null,\\n    \\\"measurement_unit_name\\\": null,\\n    \\\"default_image_url\\\": null,\\n    \\\"default_image_url_medium\\\": null,\\n    \\\"default_image_url_small\\\": null,\\n    \\\"default_image_url_large\\\": null,\\n    \\\"unit_cost\\\": null,\\n    \\\"part_locations\\\": [\\n      {\\n        \\\"id\\\": 19246881,\\n        \\\"part_location_name\\\": \\\"Chicago warehouse\\\",\\n        \\\"part_location_id\\\": 9733,\\n        \\\"available_quantity\\\": 10,\\n        \\\"aisle\\\": \\\"3\\\",\\n        \\\"row\\\": \\\"12\\\",\\n        \\\"bin\\\": \\\"15\\\",\\n        \\\"reorder_point\\\": 2,\\n        \\\"reorder_point_lead_time_days\\\": null,\\n        \\\"reorder_quantity\\\": null,\\n        \\\"reorder_quantity_lead_time_days\\\": null,\\n        \\\"reorder_point_enabled\\\": true,\\n        \\\"available_quantity_updated_at\\\": \\\"2022-01-13T11:29:33.553-07:00\\\",\\n        \\\"active\\\": true,\\n        \\\"track_inventory\\\": true,\\n        \\\"name\\\": \\\"Chicago warehouse\\\",\\n        \\\"created_at\\\": \\\"2022-01-13T11:29:33.495-07:00\\\",\\n        \\\"updated_at\\\": \\\"2022-01-13T11:29:33.557-07:00\\\"\\n      },\\n      {\\n        \\\"id\\\": 19246882,\\n        \\\"part_location_name\\\": \\\"Warehouse\\\",\\n        \\\"part_location_id\\\": 9732,\\n        \\\"available_quantity\\\": null,\\n        \\\"aisle\\\": null,\\n        \\\"row\\\": null,\\n        \\\"bin\\\": null,\\n        \\\"reorder_point\\\": null,\\n        \\\"reorder_point_lead_time_days\\\": null,\\n        \\\"reorder_quantity\\\": null,\\n        \\\"reorder_quantity_lead_time_days\\\": null,\\n        \\\"reorder_point_enabled\\\": false,\\n        \\\"available_quantity_updated_at\\\": null,\\n        \\\"active\\\": false,\\n        \\\"track_inventory\\\": false,\\n        \\\"name\\\": \\\"Warehouse\\\",\\n        \\\"created_at\\\": \\\"2022-01-13T11:29:33.570-07:00\\\",\\n        \\\"updated_at\\\": \\\"2022-01-13T11:29:33.570-07:00\\\"\\n      }\\n    ],\\n    \\\"archived_at\\\": null,\\n    \\\"created_at\\\": \\\"2022-01-13T11:29:33.477-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:29:33.573-07:00\\\",\\n    \\\"comments\\\": [],\\n    \\\"documents\\\": [],\\n    \\\"images\\\": [],\\n    \\\"attachment_permissions\\\": {}\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Place Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`place_created`\",\n    \"0-1\": \"Fired when a place is created.\",\n    \"1-0\": \"`place_updated`\",\n    \"1-1\": \"Fired when a place is updated.\",\n    \"2-0\": \"`place_deleted`\",\n    \"2-1\": \"Fired when a place is deleted. The payload will contain the place's attributes before deletion.\",\n    \"3-0\": \"`place_visited`\",\n    \"3-1\": \"Fired when a place is visited.\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all place events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298167,\\n  \\\"event\\\": \\\"place_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:10:57.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 13736,\\n    \\\"name\\\": \\\"Jiffy Lube\\\",\\n    \\\"address\\\": \\\"9535 Park Meadows Dr, Lone Tree, CO 80124, USA\\\",\\n    \\\"description\\\": \\\"Oil changes, etc.\\\",\\n    \\\"place_visits_count\\\": 0,\\n    \\\"radius_in_meters\\\": 100,\\n    \\\"created_at\\\": \\\"2021-10-04T11:18:36.245-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:11:25.105-07:00\\\",\\n    \\\"latitude\\\": 39.55472109999999,\\n    \\\"longitude\\\": -104.87889\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Purchase Order Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`purchase_order_created`\",\n    \"0-1\": \"Fired when a purchase order is created.\",\n    \"1-0\": \"`purchase_order_updated`\",\n    \"1-1\": \"Fired when a purchase order is updated. This event is not fired when the purchase order state changes.\",\n    \"2-0\": \"`purchase_order_pending_approval`\",\n    \"2-1\": \"Fired when a purchase order enters the pending approval state.\",\n    \"7-0\": \"`purchase_order_deleted`\",\n    \"7-1\": \"Fired when a purchase order is deleted. The payload will contain the purchase order's attributes before deletion.\",\n    \"3-0\": \"`purchase_order_approved`\",\n    \"3-1\": \"Fired when a purchase order is approved.\",\n    \"4-0\": \"`purchase_order_purchased`\",\n    \"4-1\": \"Fired when a purchase order is marked as purchased.\",\n    \"5-0\": \"`purchase_order_received`\",\n    \"5-1\": \"Fired when a purchase order is fully received.\",\n    \"6-0\": \"`purchase_order_closed`\",\n    \"6-1\": \"Fired when a purchase order is closed.\",\n    \"8-0\": \"`purchase_order_comment_added`\",\n    \"8-1\": \"Fired when a comment is made on a purchase order.\"\n  },\n  \"cols\": 2,\n  \"rows\": 9\n}\n[/block]\nExample payload for all purchase order events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298296,\\n  \\\"event\\\": \\\"purchase_order_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:14:37.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 335744,\\n    \\\"number\\\": 1,\\n    \\\"description\\\": null,\\n    \\\"label_list\\\": [],\\n    \\\"submitted_for_approval_at\\\": null,\\n    \\\"rejected_at\\\": null,\\n    \\\"approved_at\\\": null,\\n    \\\"purchased_at\\\": null,\\n    \\\"received_partial_at\\\": null,\\n    \\\"received_full_at\\\": null,\\n    \\\"closed_at\\\": null,\\n    \\\"state\\\": \\\"draft\\\",\\n    \\\"documents_count\\\": 0,\\n    \\\"comments_count\\\": 0,\\n    \\\"created_at\\\": \\\"2022-01-14T10:14:37.285-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:14:37.293-07:00\\\",\\n    \\\"custom_fields\\\": {},\\n    \\\"discount_percentage\\\": 0,\\n    \\\"discount_type\\\": \\\"percentage\\\",\\n    \\\"tax_1_percentage\\\": null,\\n    \\\"tax_1_type\\\": \\\"percentage\\\",\\n    \\\"tax_2_percentage\\\": null,\\n    \\\"tax_2_type\\\": \\\"percentage\\\",\\n    \\\"discount\\\": 0,\\n    \\\"subtotal\\\": 54.95,\\n    \\\"shipping\\\": 0,\\n    \\\"tax_1\\\": 0,\\n    \\\"tax_2\\\": 0,\\n    \\\"total_amount\\\": 54.95,\\n    \\\"part_location_id\\\": 9733,\\n    \\\"vendor_id\\\": 1783804,\\n    \\\"part_location_name\\\": \\\"Chicago warehouse\\\",\\n    \\\"vendor_name\\\": \\\"Discount Tire\\\",\\n    \\\"created_by\\\": \\\"Harry Levine\\\",\\n    \\\"purchase_order_line_items\\\": [\\n      {\\n        \\\"id\\\": 717129,\\n        \\\"part_id\\\": 1943860,\\n        \\\"quantity\\\": \\\"5.0\\\",\\n        \\\"total_quantity_received\\\": \\\"0.0\\\",\\n        \\\"part_number\\\": \\\"ABC-123\\\",\\n        \\\"unit_cost\\\": 10.99,\\n        \\\"subtotal\\\": 54.95,\\n        \\\"created_at\\\": \\\"2022-01-14T10:14:37.291-07:00\\\",\\n        \\\"updated_at\\\": \\\"2022-01-14T10:14:37.291-07:00\\\"\\n      }\\n    ]\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Work Order Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`work_order_created`\",\n    \"0-1\": \"Fired when a work order is created.\",\n    \"1-0\": \"`work_order_updated`\",\n    \"1-1\": \"Fired when a work order is updated.\",\n    \"2-0\": \"`work_order_deleted`\",\n    \"2-1\": \"Fired when a work order is updated. The payload will contain the work order's attributes before deletion.\",\n    \"3-0\": \"`work_order_status_changed`\",\n    \"3-1\": \"Fired when the status of a work order changes.\",\n    \"4-0\": \"`work_order_comment_added`\",\n    \"4-1\": \"Fired when a comment is made on a work order.\"\n  },\n  \"cols\": 2,\n  \"rows\": 5\n}\n[/block]\nExample payload for all work order events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298324,\\n  \\\"event\\\": \\\"work_order_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:17:56.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 2155781,\\n    \\\"number\\\": \\\"#1\\\",\\n    \\\"completed_at\\\": \\\"2021-10-08T11:28:00.000-06:00\\\",\\n    \\\"description\\\": null,\\n    \\\"ending_meter_same_as_start\\\": true,\\n    \\\"duration_in_seconds\\\": 41280,\\n    \\\"invoice_number\\\": null,\\n    \\\"issued_at\\\": \\\"2021-10-08T11:20:00.000-06:00\\\",\\n    \\\"issued_by_id\\\": 809782,\\n    \\\"issued_by_name\\\": \\\"Harry Levine\\\",\\n    \\\"contact_id\\\": 810685,\\n    \\\"contact_name\\\": \\\"Franco Robertson\\\",\\n    \\\"purchase_order_number\\\": null,\\n    \\\"started_at\\\": \\\"2021-10-08T00:00:00.000-06:00\\\",\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"vehicle_name\\\": \\\"3100 [2014 Chevrolet Express Cargo]\\\",\\n    \\\"vendor_id\\\": null,\\n    \\\"vendor_name\\\": null,\\n    \\\"work_order_status_id\\\": 160797,\\n    \\\"work_order_status_name\\\": \\\"Open\\\",\\n    \\\"documents_count\\\": 0,\\n    \\\"images_count\\\": 0,\\n    \\\"comments_count\\\": 0,\\n    \\\"state\\\": \\\"active\\\",\\n    \\\"custom_fields\\\": {},\\n    \\\"discount_percentage\\\": 0,\\n    \\\"discount_type\\\": \\\"percentage\\\",\\n    \\\"tax_1_percentage\\\": 0,\\n    \\\"tax_1_type\\\": \\\"percentage\\\",\\n    \\\"tax_2_percentage\\\": 0,\\n    \\\"tax_2_type\\\": \\\"percentage\\\",\\n    \\\"discount\\\": 0,\\n    \\\"labor_subtotal\\\": 0,\\n    \\\"parts_subtotal\\\": 1,\\n    \\\"tax_1\\\": 0,\\n    \\\"tax_2\\\": 0,\\n    \\\"total_amount\\\": 1,\\n    \\\"work_order_line_items\\\": [\\n      {\\n        \\\"id\\\": 4034244,\\n        \\\"description\\\": \\\"\\\",\\n        \\\"item_id\\\": 17707237,\\n        \\\"item_type\\\": \\\"ServiceTask\\\",\\n        \\\"work_order_line_item_id\\\": null,\\n        \\\"item_name\\\": \\\"Accelerator Pedal Inspect\\\",\\n        \\\"position\\\": 0,\\n        \\\"labor_cost\\\": 0,\\n        \\\"parts_cost\\\": 1,\\n        \\\"subtotal\\\": 1,\\n        \\\"created_at\\\": \\\"2021-10-08T11:28:10.600-06:00\\\",\\n        \\\"updated_at\\\": \\\"2022-01-14T10:17:56.641-07:00\\\",\\n        \\\"issues\\\": [],\\n        \\\"work_order_sub_line_items\\\": [\\n          {\\n            \\\"id\\\": 3998611,\\n            \\\"description\\\": \\\"\\\",\\n            \\\"item_id\\\": 810686,\\n            \\\"item_type\\\": \\\"Contact\\\",\\n            \\\"work_order_line_item_id\\\": 4034244,\\n            \\\"quantity\\\": 0,\\n            \\\"part_location_detail_id\\\": null,\\n            \\\"item_name\\\": \\\"Newo Contacto\\\",\\n            \\\"unit_cost\\\": 52,\\n            \\\"created_at\\\": \\\"2021-10-08T11:28:10.610-06:00\\\",\\n            \\\"updated_at\\\": \\\"2022-01-14T10:17:56.648-07:00\\\",\\n            \\\"contact\\\": {\\n              \\\"id\\\": 810686,\\n              \\\"name\\\": \\\"Newo Contacto\\\",\\n              \\\"first_name\\\": \\\"Newo\\\",\\n              \\\"middle_name\\\": null,\\n              \\\"group_id\\\": 628272,\\n              \\\"group_name\\\": \\\"Colorado\\\",\\n              \\\"last_name\\\": \\\"Contacto\\\",\\n              \\\"images_count\\\": 0,\\n              \\\"documents_count\\\": 0,\\n              \\\"comments_count\\\": 0,\\n              \\\"email\\\": \\\"[email protected]\\\",\\n              \\\"birth_date\\\": null,\\n              \\\"city\\\": null,\\n              \\\"country\\\": null,\\n              \\\"employee\\\": false,\\n              \\\"employee_number\\\": null,\\n              \\\"home_phone_number\\\": null,\\n              \\\"job_title\\\": null,\\n              \\\"leave_date\\\": null,\\n              \\\"license_class\\\": null,\\n              \\\"license_number\\\": null,\\n              \\\"license_state\\\": null,\\n              \\\"mobile_phone_number\\\": null,\\n              \\\"other_phone_number\\\": null,\\n              \\\"postal_code\\\": null,\\n              \\\"region\\\": null,\\n              \\\"start_date\\\": null,\\n              \\\"street_address\\\": null,\\n              \\\"street_address_line_2\\\": null,\\n              \\\"technician\\\": true,\\n              \\\"vehicle_operator\\\": true,\\n              \\\"work_phone_number\\\": null,\\n              \\\"hourly_labor_rate\\\": null,\\n              \\\"custom_fields\\\": {},\\n              \\\"attachment_permissions\\\": {},\\n              \\\"default_image_url\\\": null,\\n              \\\"user\\\": null,\\n              \\\"created_at\\\": \\\"2021-09-29T17:07:24.384-06:00\\\",\\n              \\\"updated_at\\\": \\\"2021-09-29T17:07:24.384-06:00\\\"\\n            },\\n            \\\"labor_time_entries\\\": []\\n          },\\n          {\\n            \\\"id\\\": 3998612,\\n            \\\"description\\\": \\\"\\\",\\n            \\\"item_id\\\": 1656039,\\n            \\\"item_type\\\": \\\"Part\\\",\\n            \\\"work_order_line_item_id\\\": 4034244,\\n            \\\"quantity\\\": 1,\\n            \\\"part_location_detail_id\\\": 16431791,\\n            \\\"item_name\\\": null,\\n            \\\"unit_cost\\\": 1,\\n            \\\"created_at\\\": \\\"2021-10-08T11:28:10.627-06:00\\\",\\n            \\\"updated_at\\\": \\\"2022-01-14T10:17:56.668-07:00\\\",\\n            \\\"part\\\": {\\n              \\\"id\\\": 1656039,\\n              \\\"description\\\": \\\"special new part\\\",\\n              \\\"manufacturer_part_number\\\": \\\"abc123\\\",\\n              \\\"measurement_unit_id\\\": 426999,\\n              \\\"number\\\": \\\"abc-123\\\",\\n              \\\"part_category_id\\\": 558979,\\n              \\\"part_manufacturer_id\\\": null,\\n              \\\"upc\\\": null,\\n              \\\"total_quantity\\\": 4,\\n              \\\"comments_count\\\": 0,\\n              \\\"documents_count\\\": 0,\\n              \\\"images_count\\\": 0,\\n              \\\"custom_fields\\\": {},\\n              \\\"inventory_item\\\": true,\\n              \\\"part_category_name\\\": \\\"Belts\\\",\\n              \\\"part_manufacturer_name\\\": null,\\n              \\\"measurement_unit_name\\\": \\\"Each\\\",\\n              \\\"default_image_url\\\": null,\\n              \\\"default_image_url_medium\\\": null,\\n              \\\"default_image_url_small\\\": null,\\n              \\\"default_image_url_large\\\": null,\\n              \\\"unit_cost\\\": 1,\\n              \\\"part_locations\\\": [\\n                {\\n                  \\\"id\\\": 16431807,\\n                  \\\"part_location_name\\\": \\\"Chicago warehouse\\\",\\n                  \\\"part_location_id\\\": 9733,\\n                  \\\"available_quantity\\\": null,\\n                  \\\"aisle\\\": null,\\n                  \\\"row\\\": null,\\n                  \\\"bin\\\": null,\\n                  \\\"reorder_point\\\": null,\\n                  \\\"reorder_point_lead_time_days\\\": null,\\n                  \\\"reorder_quantity\\\": null,\\n                  \\\"reorder_quantity_lead_time_days\\\": null,\\n                  \\\"reorder_point_enabled\\\": false,\\n                  \\\"available_quantity_updated_at\\\": null,\\n                  \\\"active\\\": false,\\n                  \\\"track_inventory\\\": false,\\n                  \\\"name\\\": \\\"Chicago warehouse\\\",\\n                  \\\"created_at\\\": null,\\n                  \\\"updated_at\\\": null\\n                },\\n                {\\n                  \\\"id\\\": 16431791,\\n                  \\\"part_location_name\\\": \\\"Warehouse\\\",\\n                  \\\"part_location_id\\\": 9732,\\n                  \\\"available_quantity\\\": 4,\\n                  \\\"aisle\\\": \\\"1\\\",\\n                  \\\"row\\\": \\\"2\\\",\\n                  \\\"bin\\\": \\\"3\\\",\\n                  \\\"reorder_point\\\": 2,\\n                  \\\"reorder_point_lead_time_days\\\": null,\\n                  \\\"reorder_quantity\\\": null,\\n                  \\\"reorder_quantity_lead_time_days\\\": null,\\n                  \\\"reorder_point_enabled\\\": true,\\n                  \\\"available_quantity_updated_at\\\": \\\"2021-10-08T11:28:10.710-06:00\\\",\\n                  \\\"active\\\": true,\\n                  \\\"track_inventory\\\": true,\\n                  \\\"name\\\": \\\"Warehouse\\\",\\n                  \\\"created_at\\\": \\\"2021-10-08T11:14:07.381-06:00\\\",\\n                  \\\"updated_at\\\": \\\"2021-10-11T09:29:45.784-06:00\\\"\\n                }\\n              ],\\n              \\\"archived_at\\\": null,\\n              \\\"created_at\\\": \\\"2021-10-08T11:06:54.436-06:00\\\",\\n              \\\"updated_at\\\": \\\"2021-10-11T09:29:45.797-06:00\\\",\\n              \\\"comments\\\": [],\\n              \\\"documents\\\": [],\\n              \\\"images\\\": [],\\n              \\\"attachment_permissions\\\": {}\\n            }\\n          }\\n        ]\\n      },\\n      {\\n        \\\"id\\\": 4034245,\\n        \\\"description\\\": \\\"\\\",\\n        \\\"item_id\\\": 17707278,\\n        \\\"item_type\\\": \\\"ServiceTask\\\",\\n        \\\"work_order_line_item_id\\\": null,\\n        \\\"item_name\\\": \\\"ABS Control Module Replacement\\\",\\n        \\\"position\\\": 1,\\n        \\\"labor_cost\\\": 0,\\n        \\\"parts_cost\\\": 0,\\n        \\\"subtotal\\\": 0,\\n        \\\"created_at\\\": \\\"2021-10-08T11:28:10.841-06:00\\\",\\n        \\\"updated_at\\\": \\\"2022-01-14T10:17:56.727-07:00\\\",\\n        \\\"issues\\\": [],\\n        \\\"work_order_sub_line_items\\\": [\\n          {\\n            \\\"id\\\": 3998613,\\n            \\\"description\\\": \\\"\\\",\\n            \\\"item_id\\\": 810686,\\n            \\\"item_type\\\": \\\"Contact\\\",\\n            \\\"work_order_line_item_id\\\": 4034245,\\n            \\\"quantity\\\": 0,\\n            \\\"part_location_detail_id\\\": null,\\n            \\\"item_name\\\": \\\"Newo Contacto\\\",\\n            \\\"unit_cost\\\": 0,\\n            \\\"created_at\\\": \\\"2021-10-08T11:28:10.848-06:00\\\",\\n            \\\"updated_at\\\": \\\"2022-01-14T10:17:56.731-07:00\\\",\\n            \\\"contact\\\": {\\n              \\\"id\\\": 810686,\\n              \\\"name\\\": \\\"Newo Contacto\\\",\\n              \\\"first_name\\\": \\\"Newo\\\",\\n              \\\"middle_name\\\": null,\\n              \\\"group_id\\\": 628272,\\n              \\\"group_name\\\": \\\"Colorado\\\",\\n              \\\"last_name\\\": \\\"Contacto\\\",\\n              \\\"images_count\\\": 0,\\n              \\\"documents_count\\\": 0,\\n              \\\"comments_count\\\": 0,\\n              \\\"email\\\": \\\"[email protected]\\\",\\n              \\\"birth_date\\\": null,\\n              \\\"city\\\": null,\\n              \\\"country\\\": null,\\n              \\\"employee\\\": false,\\n              \\\"employee_number\\\": null,\\n              \\\"home_phone_number\\\": null,\\n              \\\"job_title\\\": null,\\n              \\\"leave_date\\\": null,\\n              \\\"license_class\\\": null,\\n              \\\"license_number\\\": null,\\n              \\\"license_state\\\": null,\\n              \\\"mobile_phone_number\\\": null,\\n              \\\"other_phone_number\\\": null,\\n              \\\"postal_code\\\": null,\\n              \\\"region\\\": null,\\n              \\\"start_date\\\": null,\\n              \\\"street_address\\\": null,\\n              \\\"street_address_line_2\\\": null,\\n              \\\"technician\\\": true,\\n              \\\"vehicle_operator\\\": true,\\n              \\\"work_phone_number\\\": null,\\n              \\\"hourly_labor_rate\\\": null,\\n              \\\"custom_fields\\\": {},\\n              \\\"attachment_permissions\\\": {},\\n              \\\"default_image_url\\\": null,\\n              \\\"user\\\": null,\\n              \\\"created_at\\\": \\\"2021-09-29T17:07:24.384-06:00\\\",\\n              \\\"updated_at\\\": \\\"2021-09-29T17:07:24.384-06:00\\\"\\n            },\\n            \\\"labor_time_entries\\\": []\\n          }\\n        ]\\n      }\\n    ],\\n    \\\"labor_time_entries\\\": [],\\n    \\\"meter_entry\\\": {\\n      \\\"id\\\": 161800299,\\n      \\\"auto_voided_at\\\": null,\\n      \\\"category\\\": \\\"starting\\\",\\n      \\\"date\\\": \\\"2021-10-08\\\",\\n      \\\"meter_type\\\": null,\\n      \\\"meterable_id\\\": 2155781,\\n      \\\"meterable_type\\\": \\\"WorkOrder\\\",\\n      \\\"value\\\": \\\"136699.0\\\",\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"void\\\": false,\\n      \\\"type\\\": null,\\n      \\\"created_at\\\": \\\"2021-10-11T09:31:02.520-06:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-14T10:17:56.574-07:00\\\"\\n    },\\n    \\\"starting_meter_entry\\\": {\\n      \\\"id\\\": 161800299,\\n      \\\"auto_voided_at\\\": null,\\n      \\\"category\\\": \\\"starting\\\",\\n      \\\"date\\\": \\\"2021-10-08\\\",\\n      \\\"meter_type\\\": null,\\n      \\\"meterable_id\\\": 2155781,\\n      \\\"meterable_type\\\": \\\"WorkOrder\\\",\\n      \\\"value\\\": \\\"136699.0\\\",\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"void\\\": false,\\n      \\\"type\\\": null,\\n      \\\"created_at\\\": \\\"2021-10-11T09:31:02.520-06:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-14T10:17:56.574-07:00\\\"\\n    },\\n    \\\"ending_meter_entry\\\": {\\n      \\\"id\\\": 180404257,\\n      \\\"auto_voided_at\\\": null,\\n      \\\"category\\\": \\\"ending\\\",\\n      \\\"date\\\": \\\"2021-10-08\\\",\\n      \\\"meter_type\\\": null,\\n      \\\"meterable_id\\\": 2155781,\\n      \\\"meterable_type\\\": \\\"WorkOrder\\\",\\n      \\\"value\\\": \\\"136699.0\\\",\\n      \\\"vehicle_id\\\": 1573893,\\n      \\\"void\\\": false,\\n      \\\"type\\\": null,\\n      \\\"created_at\\\": \\\"2022-01-14T10:18:47.651-07:00\\\",\\n      \\\"updated_at\\\": \\\"2022-01-14T10:18:47.651-07:00\\\"\\n    },\\n    \\\"created_at\\\": \\\"2021-10-08T11:28:10.504-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:18:47.644-07:00\\\",\\n    \\\"labels\\\": [\\n      {\\n        \\\"id\\\": 87575,\\n        \\\"name\\\": \\\"Preventative\\\"\\n      }\\n    ],\\n    \\\"issues\\\": [],\\n    \\\"work_order_status_color\\\": \\\"teal\\\",\\n    \\\"comments\\\": [],\\n    \\\"work_order_sub_line_items\\\": [],\\n    \\\"contact_image_url\\\": null,\\n    \\\"is_watched\\\": true,\\n    \\\"watchers_count\\\": 2\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Vehicle Assignment Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`vehicle_assignment_created`\",\n    \"0-1\": \"Fired when a vehicle assignment is created.\",\n    \"2-0\": \"`vehicle_assignment_deleted`\",\n    \"2-1\": \"Fired when a vehicle assignment is deleted.\",\n    \"1-0\": \"`vehicle_assignment_updated`\",\n    \"1-1\": \"Fired when a vehicle assignment is updated.\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]\nExample payload for vehicle assignment events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298546,\\n  \\\"event\\\": \\\"vehicle_assignment_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:28:48.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 2012798,\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"contact_id\\\": 809783,\\n    \\\"started_at\\\": \\\"2022-01-14T10:28:28.000-07:00\\\",\\n    \\\"ended_at\\\": null,\\n    \\\"starting_meter_entry_value\\\": \\\"136778.0\\\",\\n    \\\"ending_meter_entry_value\\\": null,\\n    \\\"created_at\\\": \\\"2022-01-14T10:28:48.038-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:28:48.038-07:00\\\",\\n    \\\"comments_count\\\": 0,\\n    \\\"current\\\": true,\\n    \\\"future\\\": false,\\n    \\\"contact_full_name\\\": \\\"Jacob Silva\\\",\\n    \\\"contact_image_url\\\": null,\\n    \\\"custom_fields\\\": {},\\n    \\\"comments\\\": []\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Vendor Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`vendor_created`\",\n    \"0-1\": \"Fired when a vendor is created.\",\n    \"1-0\": \"`vendor_updated`\",\n    \"1-1\": \"Fired when a vendor is updated.\",\n    \"2-0\": \"`vendor_deleted`\",\n    \"2-1\": \"Fired when a vendor is deleted. The payload will contain the vendor's attributes before deletion.\",\n    \"3-0\": \"`vendor_comment_added`\",\n    \"3-1\": \"Fired when a comment is made on a vendor.\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all vendor events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12283821,\\n  \\\"event\\\": \\\"vendor_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-13T11:53:15.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 1783800,\\n    \\\"city\\\": \\\"Chicago\\\",\\n    \\\"contact_email\\\": null,\\n    \\\"contact_name\\\": \\\"Dan Leibel\\\",\\n    \\\"contact_phone\\\": \\\"(333) 555-1234\\\",\\n    \\\"country\\\": \\\"US\\\",\\n    \\\"external_id\\\": null,\\n    \\\"latitude\\\": 42.0047405,\\n    \\\"longitude\\\": -87.6904117,\\n    \\\"name\\\": \\\"Jiffy Lube\\\",\\n    \\\"phone\\\": \\\"773-274-2900\\\",\\n    \\\"postal_code\\\": \\\"60645\\\",\\n    \\\"region\\\": \\\"IL\\\",\\n    \\\"street_address\\\": \\\"6750 N Western Ave\\\",\\n    \\\"street_address_line_2\\\": null,\\n    \\\"website\\\": \\\"https://www.jiffylube.com/\\\",\\n    \\\"fuel\\\": false,\\n    \\\"service\\\": true,\\n    \\\"parts\\\": true,\\n    \\\"archived_at\\\": null,\\n    \\\"custom_fields\\\": {},\\n    \\\"created_at\\\": \\\"2021-09-29T13:10:35.530-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-13T11:54:08.320-07:00\\\",\\n    \\\"labels\\\": []\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Expense Entry Events\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Important Note\",\n  \"body\": \"Expense Entries are automatically generated when an acquisition (a loan or a lease) is created. This includes all current expenses and future expenses. Fleetio will fire creation events for all future expense entries, so your endpoint should check the `occurred_at` field to determine if this is a future expense or not.\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`expense_entry_created`\",\n    \"0-1\": \"Fired when an expense entry is created.\",\n    \"1-1\": \"Fired when an expense entry is updated.\",\n    \"1-0\": \"`expense_entry_updated`\",\n    \"2-1\": \"Fired when an expense entry is deleted. The payload will contain the expense entry's attributes before deletion.\",\n    \"2-0\": \"`expense_entry_deleted`\",\n    \"3-1\": \"Fired when a comment is made on an expense entry.\",\n    \"3-0\": \"`expense_entry_comment_added`\"\n  },\n  \"cols\": 2,\n  \"rows\": 4\n}\n[/block]\nExample payload for all expense entry events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298608,\\n  \\\"event\\\": \\\"expense_entry_updated\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:30:20.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"created_at\\\": \\\"2021-09-29T13:12:03.049-06:00\\\",\\n    \\\"expense_entry_type_id\\\": 992543,\\n    \\\"expense_entry_type_name\\\": \\\"Vehicle Registration and Taxes\\\",\\n    \\\"id\\\": 3437713,\\n    \\\"notes\\\": \\\"Title fee and first-time registration\\\",\\n    \\\"occurred_at\\\": \\\"2021-03-20T13:12:02.000-06:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:30:55.230-07:00\\\",\\n    \\\"vehicle_id\\\": 1573891,\\n    \\\"vehicle_name\\\": \\\"1100 [2018 Toyota Prius]\\\",\\n    \\\"vendor_id\\\": null,\\n    \\\"vendor_name\\\": null,\\n    \\\"total_amount\\\": 196.27,\\n    \\\"custom_fields\\\": {}\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Location Entry Events\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`location_entry_created`\",\n    \"1-0\": \"`location_entry_udpated`\",\n    \"2-0\": \"`location_entry_delete`\",\n    \"0-1\": \"Fired when a location entry is created.\",\n    \"1-1\": \"Fired when a location entry is updated.\",\n    \"2-1\": \"Fired when a location entry is deleted. The payload will contain the location entry's attributes before deletion.\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298959,\\n  \\\"event\\\": \\\"location_entry_created\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:52:25.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 264910636,\\n    \\\"locatable_type\\\": \\\"FuelEntry\\\",\\n    \\\"locatable_id\\\": 28080701,\\n    \\\"date\\\": \\\"2022-01-14T10:51:00.000-07:00\\\",\\n    \\\"created_at\\\": \\\"2022-01-14T10:52:24.953-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:52:24.953-07:00\\\",\\n    \\\"contact_id\\\": null,\\n    \\\"address\\\": null,\\n    \\\"is_current\\\": false,\\n    \\\"item_type\\\": \\\"Vehicle\\\",\\n    \\\"item_id\\\": 1573893,\\n    \\\"vehicle_id\\\": 1573893,\\n    \\\"location\\\": \\\"POINT (-84.468697 33.739286)\\\",\\n    \\\"address_components\\\": {},\\n    \\\"geolocation\\\": {\\n      \\\"latitude\\\": 33.739286,\\n      \\\"longitude\\\": -84.468697\\n    }\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Import Events\"\n}\n[/block]\nWhen importing data, regular webhook events are not fired, due to the volume of events that could potentially be generated. Instead, you must listen for the `import_completed` event and find out which objects were updated or created.\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"`import_completed`\",\n    \"0-1\": \"Fired when an import is completed, whether successfully or not. You can check the `state` attribute to determine if the import was successful or not. \\n\\nA state of `complete` indicates success. A state of `failed` indicates something failed. You can then go through the `error_messages` array to see exactly what failed.\\n\\nOn success, the `created_record_ids` and `updated_record_ids` arrays will contain the IDs of the records that were either created or updated.\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]\nExample payload for all import events:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"id\\\": 12298850,\\n  \\\"event\\\": \\\"import_completed\\\",\\n  \\\"timestamp\\\": \\\"2022-01-14T10:42:15.000-07:00\\\",\\n  \\\"payload\\\": {\\n    \\\"id\\\": 1203509,\\n    \\\"created_record_ids\\\": [\\n      \\\"68892\\\",\\n      \\\"68893\\\",\\n      \\\"68894\\\"\\n    ],\\n    \\\"updated_record_ids\\\": [],\\n    \\\"affected_record_ids\\\": [\\n      68892,\\n      68893,\\n      68894\\n    ],\\n    \\\"completed_at\\\": \\\"2022-01-14T10:42:15.104-07:00\\\",\\n    \\\"state\\\": \\\"complete\\\",\\n    \\\"created_at\\\": \\\"2022-01-14T10:41:27.817-07:00\\\",\\n    \\\"updated_at\\\": \\\"2022-01-14T10:42:15.108-07:00\\\",\\n    \\\"error_messages\\\": [],\\n    \\\"type\\\": \\\"EquipmentImport\\\"\\n  },\\n  \\\"triggered_by\\\": \\\"[email protected]\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","updates":[],"order":12,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"59ff87ac982e0e003a96fc15","project":"54c0e51215af820d001a38a6","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["54f8de4e4339bb1900c8bffc","54f8de4e4339bb1900c8bffd","54f8de4e4339bb1900c8bffe","54f8de4e4339bb1900c8bfff","54f8de4e4339bb1900c8c000","54ff6057563d7419002d666e","55007b6ecfeeea17004717dc","5501d779f2ef1e0d003116eb","55116ef89f7c7619005f853b","554bb366f245703100ddd39f","554d226b374fec0d007e64db","555e09f18ab3180d001ac605","555e0b2b4f5e5a0d00836d77","561d1f8b92a0cc350018b24f","562a956c96b5f40d0026eb60","5654c3378a26202b00c17cb8","5697a94b0b09a41900b24546","5739d89e37b52e3200a3a3cc","57ac94252c0b220e00a94570","57ac97a1ad44fc0e003be066","57ac9a3a8f312d0e00e96c75","57ac9c187ae5c60e004ba3a3","58178bee62e4500f009404f6","581a39711a63870f008b621d","581a3b4f0c65b20f00247fcb","5926e0606c729e0f00595f95","5954033ea5bbca002d27ae91","596ce53e0aeafe00157eb1ba","596ce87a8b79f4001a8f6139","598cad2e96193400190d879a","598cbcd3dc20c6000fdfb9c3","598cbd8496193400190d8955","59fcc7c9591add0026c91457","5a020b7856ea82001c8c9342","5a09bc64a91882001c56c2ed","5a71fa2de9aa84007a8bccdb","5b3a768a8a21dd0003ca080d","5c7030f099eeb6003116a106","5c9553a7b6957d005006fc09","5c955c3d04233b0063c9f450","5cfe73f7823bba005de7e1ed","5d07eb760568e70040d6ae21","5deec6550e90370067139979","5ec5a01754009700689296af","5fdccde14e7e670026bf39e4","5fdcec63772996007b56bcca","5fe965032be3ac0020cfb386","5fe9664242f389001c1c67e8","6189ae5cbd905800705f33a9"],"_id":"54f8de4e4339bb1900c8bffb","project":"54c0e51215af820d001a38a6","releaseDate":"2015-03-05T22:53:02.044Z","createdAt":"2015-03-05T22:53:02.044Z","forked_from":"54f8de14c6cabe23005c02a2","__v":45},"category":{"sync":{"isSync":false,"url":""},"pages":["54f8de4f4339bb1900c8c010","54f8de4f4339bb1900c8c011","54f8de4f4339bb1900c8c012","54f8de4f4339bb1900c8c013"],"title":"Fleetio API","slug":"fleetio-api","order":0,"from_sync":false,"reference":false,"_id":"54f8de4e4339bb1900c8bffc","__v":1,"createdAt":"2015-01-22T11:54:59.216Z","project":"54c0e51215af820d001a38a6","version":"54f8de4e4339bb1900c8bffb"},"user":"560000e90c703d1900952ff2","createdAt":"2017-11-05T21:50:36.137Z","githubsync":"","__v":0,"parentDoc":null}

Webhooks Event Reference


Below you will find a reference of all webhook events fired from Fleetio. You may subscribe to some or all of these events from your webhook configuration. Here is a list of the webhook event categories: - [Contact Events](https://developer.fleetio.com/docs/events-reference#contact-events) - [DTC Alert Events](https://developer.fleetio.com/docs/events-reference#dtc-alert-events) - [Equipment Events](https://developer.fleetio.com/docs/events-reference#equipment-events) - [Expense Entry Events](https://developer.fleetio.com/docs/events-reference#expense-entry-events) - [Fuel Entry Events](https://developer.fleetio.com/docs/events-reference#fuel-entry-events) - [Import Events](https://developer.fleetio.com/docs/events-reference#import-events) - [Inspection Submission Events](https://developer.fleetio.com/docs/events-reference#inspection-submission-events) - [Issue Events](https://developer.fleetio.com/docs/events-reference#issue-events) - [Location Entry Events](https://developer.fleetio.com/docs/events-reference#location-entry-events) - [Meter Entry Events](https://developer.fleetio.com/docs/events-reference#meter-entry-events) - [Place Events](https://developer.fleetio.com/docs/events-reference#place-events) - [Part Events](https://developer.fleetio.com/docs/events-reference#part-events) - [Purchase Order Events](https://developer.fleetio.com/docs/events-reference#purchase-order-events) - [Service Entry Events](https://developer.fleetio.com/docs/events-reference#service-entry-events) - [Vehicle Assignment Events](https://developer.fleetio.com/docs/events-reference#vehicle-assignment-events) - [Vehicle Events](https://developer.fleetio.com/docs/events-reference#vehicle-events) - [Vendor Events](https://developer.fleetio.com/docs/events-reference#vendor-events) - [Work Order Events](https://developer.fleetio.com/docs/events-reference#work-order-events) [block:api-header] { "title": "IMPORTANT NOTE ABOUT IMPORTS" } [/block] Because imports can generate **many** events, we will only send one `import_completed` event to your webhook when the import finishes. Inside the payload, you will find the import type, which can be one of the following: * VehicleImport * FuelEntryImport * MeterEntryImport * ServiceEntryImport * ServiceTaskImport * IssueImport * PartImport * ContactImport * VendorImport * GroupImport * ServiceReminderImport * VehicleRenewalReminderImport * ContactRenewalReminderImport * EquipmentImport Also inside the payload, you will find an array of `created_record_ids` and `updated_record_ids` containing the IDs of the records that were created or updated during the import process. In order to help you easily get all affected records, we've added a [new API endpoint](https://developer.fleetio.com/v1/docs/importsidrecords) that lets you retrieve all created or updated records for an import. The exception to this is the Add Multiple Users/Vehicles feature, which **will** generate multiple creation events. [block:api-header] { "title": "Contact Events" } [/block] [block:parameters] { "data": { "0-0": "`contact_created`", "0-1": "Fired when a contact is created.", "1-0": "`contact_updated`", "1-1": "Fired when a contact is updated.", "2-0": "`contact_deleted`", "2-1": "Fired when a contact is deleted. The payload will contain the attributes of the contact before deletion.", "3-0": "`contact_archived`", "3-1": "Fired when a contact is archived.", "4-0": "`contact_merged`", "4-1": "Fired when a contact is merged into this one. The payload will contain the destination contact.", "5-0": "`contact_assigned`", "5-1": "Fired when a contact is assigned to a vehicle.", "6-0": "`contact_comment_added`", "6-1": "Fired when a comment is made on a contact." }, "cols": 2, "rows": 7 } [/block] Example payload for all contact events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283768,\n \"event\": \"contact_updated\",\n \"timestamp\": \"2022-01-13T11:49:21.000-07:00\",\n \"payload\": {\n \"id\": 809784,\n \"name\": \"Carlos Garcia\",\n \"first_name\": \"Carlos\",\n \"middle_name\": null,\n \"group_id\": 628009,\n \"group_name\": \"Sales\",\n \"last_name\": \"Garcia\",\n \"images_count\": 1,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": \"1983-02-19\",\n \"city\": null,\n \"country\": null,\n \"employee\": true,\n \"employee_number\": \"#D072\",\n \"home_phone_number\": null,\n \"job_title\": \"Driver\",\n \"leave_date\": null,\n \"license_class\": \"C\",\n \"license_number\": \"73386761\",\n \"license_state\": \"Alabama\",\n \"mobile_phone_number\": \"205-555-0001\",\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": \"2020-08-27\",\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": false,\n \"vehicle_operator\": true,\n \"work_phone_number\": null,\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"default_image_url\": null,\n \"user\": null,\n \"created_at\": \"2021-09-29T13:10:32.673-06:00\",\n \"updated_at\": \"2022-01-13T11:49:21.100-07:00\"\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Equipment Events" } [/block] [block:parameters] { "data": { "0-0": "`equipment_created`", "0-1": "Fired when equipment is created.", "1-0": "`equipment_updated`", "2-0": "`equipment_deleted`", "3-0": "`equipment_comment_added`", "1-1": "Fired when an attribute on equipment is updated.", "2-1": "Fired when equipment is deleted. The payload will contain the attributes of the equipment before it was deleted.", "3-1": "Fired when a comment is made on equipment" }, "cols": 2, "rows": 4 } [/block] Example payload for all equipment events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283954,\n \"event\": \"equipment_updated\",\n \"timestamp\": \"2022-01-13T12:02:31.000-07:00\",\n \"payload\": {\n \"id\": 49321,\n \"name\": \"Leaf blower 123\",\n \"brand\": \"\",\n \"model\": \"Z200T\",\n \"serial_number\": \"\",\n \"equipment_type_id\": 733486,\n \"type_name\": \"Leaf Blower\",\n \"equipment_status_id\": 209118,\n \"status_name\": \"In-Service\",\n \"group_id\": null,\n \"group_name\": null,\n \"purchase_vendor_id\": null,\n \"purchase_price_cents\": null,\n \"purchase_date\": null,\n \"warranty_expiration_date\": null,\n \"purchase_comments\": \"\",\n \"in_service_date\": null,\n \"estimated_service_life\": null,\n \"out_of_service_date\": null,\n \"comments_count\": 0,\n \"created_at\": \"2021-10-11T11:14:23.295-06:00\",\n \"updated_at\": \"2022-01-13T12:03:25.260-07:00\",\n \"archived_at\": null,\n \"documents_count\": 0,\n \"images_count\": 0,\n \"estimated_resale_price\": null,\n \"status_color\": \"green\",\n \"default_image_url\": null,\n \"watchers_count\": 1,\n \"is_watched\": true,\n \"linked_vehicle\": {},\n \"assigned_contact\": {\n \"id\": 810686,\n \"name\": \"Newo Contacto\",\n \"first_name\": \"Newo\",\n \"middle_name\": null,\n \"group_id\": 628272,\n \"group_name\": \"Colorado\",\n \"last_name\": \"Contacto\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": false,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": true,\n \"vehicle_operator\": true,\n \"work_phone_number\": null,\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"attachment_permissions\": {},\n \"default_image_url\": null,\n \"user\": null,\n \"created_at\": \"2021-09-29T17:07:24.384-06:00\",\n \"updated_at\": \"2021-09-29T17:07:24.384-06:00\"\n },\n \"attachment_permissions\": {},\n \"custom_fields\": {\n \"warranty\": \"false\",\n \"storage_location\": \"\"\n },\n \"assetable_type\": \"Equipment\",\n \"issues_count\": 0,\n \"current_location_entry\": {}\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Vehicle Events" } [/block] [block:parameters] { "data": { "0-0": "`vehicle_created`", "0-1": "Fired when a vehicle is created.", "1-0": "`vehicle_updated`", "1-1": "Fired when an attribute on a vehicle is updated.", "2-0": "`vehicle_status_changed`", "2-1": "Fired when a vehicle's status changes.", "3-0": "`vehicle_group_changed`", "3-1": "Fired when a vehicle's group changes.", "4-0": "`vehicle_archived`", "4-1": "Fired when a vehicle is archived.", "5-0": "`vehicle_deleted`", "5-1": "Fired when a vehicle is deleted. The payload will contain the attributes of the vehicle before it was deleted.", "6-0": "`vehicle_assigned`", "6-1": "Fired when a vehicle assignment is created for a vehicle.", "7-0": "`vehicle_comment_added`", "7-1": "Fired when a comment is made on a vehicle" }, "cols": 2, "rows": 8 } [/block] Example payload for all vehicle events: [block:code] { "codes": [ { "code": "{\n \"id\": 12282806,\n \"event\": \"vehicle_updated\",\n \"timestamp\": \"2022-01-13T10:24:42.000-07:00\",\n \"payload\": {\n \"id\": 1573893,\n \"account_id\": 54196,\n \"archived_at\": null,\n \"fuel_type_id\": null,\n \"fuel_type_name\": null,\n \"fuel_volume_units\": \"us_gallons\",\n \"group_id\": 628009,\n \"group_name\": \"Sales\",\n \"meter_unit\": \"mi\",\n \"name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"ownership\": \"Owned\",\n \"secondary_meter\": false,\n \"secondary_meter_unit\": null,\n \"system_of_measurement\": \"imperial\",\n \"vehicle_status_id\": 289265,\n \"vehicle_status_name\": \"In Shop\",\n \"vehicle_status_color\": \"orange\",\n \"vehicle_type_id\": 846962,\n \"vehicle_type_name\": \"Van\",\n \"fuel_entries_count\": 7,\n \"service_entries_count\": 5,\n \"service_reminders_count\": 2,\n \"vehicle_renewal_reminders_count\": 1,\n \"comments_count\": 0,\n \"documents_count\": 0,\n \"images_count\": 1,\n \"current_location_entry_id\": 224434224,\n \"is_sample\": false,\n \"in_service_date\": \"2017-04-30\",\n \"in_service_meter\": 48000,\n \"estimated_service_months\": 60,\n \"estimated_replacement_mileage\": 100000,\n \"estimated_resale_price\": {\n \"cents\": 0,\n \"currency_iso\": \"USD\"\n },\n \"out_of_service_date\": null,\n \"out_of_service_meter\": null,\n \"meter_name\": \"Odometer\",\n \"secondary_meter_name\": \"Secondary Meter\",\n \"created_at\": \"2021-09-29T13:10:40.277-06:00\",\n \"updated_at\": \"2022-01-13T10:24:42.352-07:00\",\n \"current_meter_value\": 136699,\n \"current_meter_date\": \"2021-10-11\",\n \"secondary_meter_value\": 0,\n \"secondary_meter_date\": null,\n \"group_ancestry\": \"USA / Southeast Region / Birmingham / Sales\",\n \"color\": \"White\",\n \"license_plate\": null,\n \"make\": \"Chevrolet\",\n \"model\": \"Express Cargo\",\n \"registration_expiration_month\": 0,\n \"registration_state\": null,\n \"trim\": \"3500\",\n \"vin\": \"1GCZGTCG7E11519I7\",\n \"year\": 2014,\n \"loan_account_number\": null,\n \"loan_ended_at\": null,\n \"loan_interest_rate\": null,\n \"loan_notes\": null,\n \"loan_started_at\": null,\n \"loan_vendor_id\": null,\n \"loan_vendor_name\": null,\n \"custom_fields\": {\n \"rear_camera_enabled\": \"false\",\n \"drive_power_source\": \"\",\n \"cargo_area_description\": \"\"\n },\n \"issues_count\": 1,\n \"work_orders_count\": 0,\n \"type_name\": \"Van\",\n \"default_image_url\": null,\n \"default_image_url_medium\": null,\n \"default_image_url_small\": null,\n \"default_image_url_large\": null,\n \"driver\": {\n \"id\": 809784,\n \"first_name\": \"Carlos\",\n \"last_name\": \"Garcia\",\n \"full_name\": \"Carlos Garcia\",\n \"default_image_url\": null\n },\n \"specs\": {\n \"id\": 2315509,\n \"vehicle_id\": 1573893,\n \"account_id\": 54196,\n \"body_type\": \"Full-Size\",\n \"body_subtype\": \"Cargo\",\n \"drive_type\": \"RWD\",\n \"brake_system\": \"Hydraulic\",\n \"msrp_cents\": 2771000,\n \"fuel_tank_capacity\": 31,\n \"fuel_tank_2_capacity\": null,\n \"front_track_width\": 68.1,\n \"ground_clearance\": 7.7,\n \"height\": 84.5,\n \"length\": 224.1,\n \"rear_track_width\": 67.7,\n \"width\": 79.2,\n \"wheelbase\": 135,\n \"front_tire_psi\": null,\n \"rear_tire_psi\": null,\n \"base_towing_capacity\": 7400,\n \"curb_weight\": 5433,\n \"gross_vehicle_weight_rating\": 9600,\n \"bed_length\": null,\n \"max_payload\": 4145,\n \"rear_axle_type\": \"\",\n \"front_tire_type\": \"LT245/75R16\",\n \"front_wheel_diameter\": \"16.0 x 6.5\",\n \"rear_tire_type\": \"LT245/75R16\",\n \"rear_wheel_diameter\": \"16.0 x 6.5\",\n \"epa_city\": 14,\n \"epa_highway\": 19,\n \"epa_combined\": 16,\n \"engine_description\": \"Vortec 6.0L Flex Fuel V8 342hp 373ft. lbs.\",\n \"engine_brand\": \"Vortec\",\n \"engine_aspiration\": \"Naturally Aspirated\",\n \"engine_block_type\": \"V\",\n \"engine_bore\": 4,\n \"engine_cam_type\": \"OHV\",\n \"engine_compression\": 9.4,\n \"engine_cylinders\": 8,\n \"engine_displacement\": 6,\n \"fuel_induction\": \"Sequential Port Fuel Injection\",\n \"fuel_quality\": \"87\",\n \"max_hp\": 342,\n \"max_torque\": 373,\n \"oil_capacity\": 5.6,\n \"redline_rpm\": \"5600\",\n \"engine_stroke\": 3.62,\n \"engine_valves\": 16,\n \"transmission_description\": \"6-Speed Shiftable Automatic\",\n \"transmission_brand\": \"\",\n \"transmission_type\": \"Automatic\",\n \"transmission_gears\": 6,\n \"cargo_volume\": 239.7,\n \"interior_volume\": null,\n \"passenger_volume\": \"\",\n \"created_at\": \"2022-01-13T10:24:42.348-07:00\",\n \"updated_at\": \"2022-01-13T10:24:42.348-07:00\",\n \"duty_type\": null,\n \"weight_class\": null,\n \"engine_bore_with_units\": \"4 in\",\n \"wheelbase_with_units\": \"135 in\",\n \"msrp\": 27710\n },\n \"ai_enabled\": false,\n \"assetable_type\": \"Vehicle\",\n \"current_location_entry\": {\n \"id\": 224434224,\n \"locatable_type\": \"SubmittedInspectionForm\",\n \"locatable_id\": 16131760,\n \"date\": \"2021-09-24T11:07:37.000-06:00\",\n \"created_at\": \"2021-09-29T13:12:47.507-06:00\",\n \"updated_at\": \"2021-09-29T13:12:48.165-06:00\",\n \"contact_id\": null,\n \"address\": \"1508 2nd Ave N, Birmingham, AL 35203, USA\",\n \"is_current\": true,\n \"item_type\": \"Vehicle\",\n \"item_id\": 1573893,\n \"vehicle_id\": 1573893,\n \"location\": \"POINT (-86.812816 33.512148)\",\n \"address_components\": {\n \"street_number\": \"1508\",\n \"street\": \"2nd Avenue North\",\n \"city\": \"Birmingham\",\n \"region\": \"Alabama\",\n \"region_short\": \"AL\",\n \"country\": \"United States\",\n \"country_short\": \"US\",\n \"postal_code\": \"35203\"\n },\n \"geolocation\": {\n \"latitude\": 33.512148,\n \"longitude\": -86.812816\n }\n }\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Fuel Entry Events" } [/block] [block:parameters] { "data": { "0-0": "`fuel_entry_created`", "0-1": "Fired when a fuel entry is created.", "1-0": "`fuel_entry_updated`", "1-1": "Fired when a fuel entry is updated.", "2-0": "`fuel_entry_deleted`", "2-1": "Fired when a fuel entry is deleted. The payload will contain the fuel entry's attributes before it was deleted", "3-1": "Fired when a comment is made on a fuel entry.", "3-0": "`fuel_entry_comment_added`" }, "cols": 2, "rows": 4 } [/block] Example payload for all fuel entry events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283344,\n \"event\": \"fuel_entry_created\",\n \"timestamp\": \"2022-01-13T11:00:02.000-07:00\",\n \"payload\": {\n \"id\": 27996649,\n \"cost_per_hr\": null,\n \"cost_per_km\": 0.237,\n \"cost_per_mi\": 0.382,\n \"date\": \"2022-01-13T10:58:00.000-07:00\",\n \"external_id\": null,\n \"fuel_type_id\": 246474,\n \"fuel_type_name\": \"Gasoline\",\n \"kpl\": 3.8871,\n \"liters\": \"39.747\",\n \"liters_per_hr\": null,\n \"lp100k\": 25.7262,\n \"mpg_uk\": 10.9802,\n \"mpg_us\": 9.1429,\n \"partial\": false,\n \"personal\": false,\n \"price_per_volume_unit\": 3.49,\n \"raw_transaction_data\": null,\n \"reference\": \"\",\n \"region\": null,\n \"reset\": false,\n \"uk_gallons\": \"8.743\",\n \"uk_gallons_per_hr\": null,\n \"us_gallons\": \"10.5\",\n \"us_gallons_per_hr\": null,\n \"usage_in_hr\": null,\n \"usage_in_km\": \"154.5\",\n \"usage_in_mi\": \"96.0\",\n \"vehicle_id\": 1573893,\n \"vehicle_name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"vendor_id\": 1783807,\n \"vendor_name\": \"Chevron\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"is_sample\": false,\n \"custom_fields\": {},\n \"total_amount\": 36.65,\n \"meter_entry\": {\n \"id\": 180133827,\n \"auto_voided_at\": null,\n \"category\": null,\n \"date\": \"2022-01-13\",\n \"meter_type\": null,\n \"meterable_id\": 27996649,\n \"meterable_type\": \"FuelEntry\",\n \"value\": \"136750.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"created_at\": \"2022-01-13T11:00:02.696-07:00\",\n \"updated_at\": \"2022-01-13T11:00:02.696-07:00\"\n },\n \"geolocation\": {},\n \"comments\": [],\n \"map_previews\": {\n \"small\": null,\n \"large\": null,\n \"small_short\": null,\n \"large_short\": null\n },\n \"created_at\": \"2022-01-13T11:00:02.652-07:00\",\n \"updated_at\": \"2022-01-13T11:00:02.652-07:00\"\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Issue Events" } [/block] [block:parameters] { "data": { "0-0": "`issue_created`", "0-1": "Fired when an issue is created.", "1-0": "`issue_updated`", "1-1": "Fired when an issue is updated.", "2-0": "`issue_deleted`", "2-1": "Fired when an issue is deleted. The payload will contain the issue's attributes before deletion.", "3-0": "`issue_resolved`", "3-1": "Fired when an issue is resolved.", "4-0": "`issue_closed`", "4-1": "Fired when an issue is closed.", "5-0": "`issue_comment_added`", "5-1": "Fired when a comment is made on an issue." }, "cols": 2, "rows": 6 } [/block] Example payload for all issue events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283581,\n \"event\": \"issue_created\",\n \"timestamp\": \"2022-01-13T11:23:58.000-07:00\",\n \"payload\": {\n \"id\": 2986811,\n \"number\": \"#17\",\n \"name\": \"[Inspection] Transmission\",\n \"summary\": \"[Inspection] Transmission\",\n \"description\": \"Generated by the failed inspection item \\\"Transmission\\\" on the \\\"DVIR\\\" form\",\n \"state\": \"Open\",\n \"reported_at\": \"2022-01-13T11:21:40.798-07:00\",\n \"reported_by_id\": 809782,\n \"reported_by_name\": \"Harry Levine\",\n \"fault_id\": null,\n \"due_date\": null,\n \"due_meter_value\": null,\n \"due_secondary_meter_value\": null,\n \"vehicle_id\": 1573893,\n \"vehicle_name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"is_sample\": false,\n \"created_by_workflow\": false,\n \"submitted_inspection_form_id\": null,\n \"custom_fields\": {},\n \"dtc_alert_id\": null,\n \"meter_entry\": {\n \"id\": 180136762,\n \"auto_voided_at\": null,\n \"category\": null,\n \"date\": \"2022-01-13\",\n \"meter_type\": null,\n \"meterable_id\": 2986811,\n \"meterable_type\": \"Issue\",\n \"value\": \"136777.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"created_at\": \"2022-01-13T11:23:58.946-07:00\",\n \"updated_at\": \"2022-01-13T11:23:58.946-07:00\"\n },\n \"assigned_contacts\": [\n {\n \"id\": 810685,\n \"name\": \"Franco Robertson\",\n \"first_name\": \"Franco\",\n \"middle_name\": null,\n \"group_id\": 628272,\n \"group_name\": \"Colorado\",\n \"last_name\": \"Robertson\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": true,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": false,\n \"vehicle_operator\": false,\n \"work_phone_number\": null,\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"default_image_url\": null,\n \"user\": {\n \"id\": 347769,\n \"email\": \"[email protected]\",\n \"username\": null,\n \"time_zone\": \"Mountain Time (US & Canada)\"\n },\n \"created_at\": \"2021-09-29T17:05:10.427-06:00\",\n \"updated_at\": \"2021-09-29T17:05:10.427-06:00\"\n }\n ],\n \"reported_by\": {\n \"id\": 809782,\n \"name\": \"Harry Levine\",\n \"first_name\": \"Harry\",\n \"middle_name\": null,\n \"group_id\": null,\n \"group_name\": null,\n \"last_name\": \"Levine\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": false,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": false,\n \"vehicle_operator\": null,\n \"work_phone_number\": \"+17209719997\",\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"default_image_url\": null,\n \"user\": {\n \"id\": 347375,\n \"email\": \"[email protected]\",\n \"username\": null,\n \"time_zone\": \"Mountain Time (US & Canada)\"\n },\n \"created_at\": \"2021-09-29T13:10:29.574-06:00\",\n \"updated_at\": \"2021-09-29T13:10:29.574-06:00\"\n },\n \"labels\": [\n {\n \"id\": 87590,\n \"name\": \"Needs Repair\"\n }\n ],\n \"comments\": [],\n \"created_at\": \"2022-01-13T11:23:58.907-07:00\",\n \"updated_at\": \"2022-01-13T11:23:58.907-07:00\",\n \"overdue\": false,\n \"is_watched\": true,\n \"vehicle_image_url\": null,\n \"vehicle_image_url_medium\": null,\n \"vehicle_image_url_small\": null,\n \"vehicle_image_url_large\": null,\n \"watchers_count\": 1,\n \"linked_work_orders\": null,\n \"source\": {\n \"inspection_form\": {\n \"id\": null,\n \"color\": null,\n \"title\": null\n },\n \"inspection_submissions_count\": 0,\n \"last_inspection_submission_at\": null,\n \"failed_inspection_item_label\": null\n }\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "DTC Alert Events" } [/block] [block:parameters] { "data": { "0-0": "`dtc_alert_created`", "0-1": "Fired when a DTC alert is created.", "1-0": "`dtc_alert_resolved`", "1-1": "Fired when a DTC alert is resolved." }, "cols": 2, "rows": 2 } [/block] Example payload for all DTC alert events: [block:code] { "codes": [ { "code": "{\n \"id\": 1,\n \"event\": \"dtc_alert_resolved\",\n \"timestamp\": \"2017-11-08T13:35:17.755-06:00\",\n \"payload\": {\n \"id\": 1,\n \"name\": \"Low Tire Pressure\",\n \"description\": \"Aliquam commodo dolor nec diam bibendum porta. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam commodo cursus sollicitudin. Vestibulum ac luctus enim. Sed tristique viverra pharetra. Curabitur pretium, nisi vel fermentum aliquet, mi odio laoreet metus, sodales scelerisque leo nisi in justo. Mauris quis risus nec turpis rhoncus porta. Vestibulum lobortis elit nibh, in accumsan augue maximus vitae. Curabitur gravida dolor vitae urna iaculis, at efficitur massa tempor.\",\n \"code\": \"P0447\",\n \"count\": 5,\n \"account_id\": 1,\n \"vehicle_id\": 1,\n \"external_id\": null,\n \"last_occurred_at\": \"2015-09-09T21:43:38.726-05:00\",\n \"status\": \"resolved\",\n \"archived_at\": null,\n \"created_at\": \"2015-09-30T14:48:08.199-05:00\",\n \"updated_at\": \"2017-11-08T13:28:08.094-06:00\"\n }\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Service Entry Events" } [/block] [block:parameters] { "data": { "0-0": "`service_entry_created`", "0-1": "Fired when a service entry is created.", "1-0": "`service_entry_updated`", "1-1": "Fired when a service entry is updated.", "2-0": "`service_entry_deleted`", "2-1": "Fired when a service entry is deleted. The payload will contain the attributes of the service entry before it was deleted.", "3-0": "`service_entry_comment_added`", "3-1": "Fired when a comment is made on a service entry." }, "cols": 2, "rows": 4 } [/block] Example payload for all service entry events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283517,\n \"event\": \"service_entry_created\",\n \"timestamp\": \"2022-01-13T11:17:38.000-07:00\",\n \"payload\": {\n \"id\": 11209574,\n \"reference\": \"\",\n \"vendor_id\": 1783801,\n \"vendor_name\": \"Firestone Complete Auto Care\",\n \"vehicle_id\": 1573893,\n \"vehicle_name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"work_order_id\": null,\n \"general_notes\": \"\",\n \"is_sample\": false,\n \"status\": \"completed\",\n \"auto_integrate_repair_order_status\": null,\n \"custom_fields\": {},\n \"work_order_number\": null,\n \"started_at\": null,\n \"completed_at\": \"2022-01-13T11:14:00.000-07:00\",\n \"date\": \"2022-01-13T11:14:00.000-07:00\",\n \"discount_type\": \"percentage\",\n \"discount_percentage\": 0,\n \"tax_1_type\": \"percentage\",\n \"tax_1_percentage\": 0,\n \"tax_2_type\": \"percentage\",\n \"tax_2_percentage\": 0,\n \"labor_subtotal\": 50,\n \"parts_subtotal\": 155.99,\n \"discount\": 0,\n \"tax_1\": 0,\n \"tax_2\": 0,\n \"total_amount\": 205.99,\n \"service_entry_line_items\": [\n {\n \"id\": 21210047,\n \"description\": \"\",\n \"service_reminder_id\": null,\n \"updated_at\": \"2022-01-13T11:17:38.020-07:00\",\n \"created_at\": \"2022-01-13T11:17:38.020-07:00\",\n \"labor_cost\": 50,\n \"parts_cost\": 155.99,\n \"subtotal\": 205.99,\n \"service_task\": {\n \"id\": 17707469,\n \"name\": \"Windshield Replacement\",\n \"description\": null,\n \"created_at\": \"2021-09-29T13:10:31.162-06:00\",\n \"updated_at\": \"2021-09-29T13:10:31.162-06:00\",\n \"subtasks\": []\n },\n \"issues\": [\n {\n \"id\": 2700615,\n \"number\": \"#7\",\n \"name\": \"[Inspection] Rock hit windshield. 6\\\" crack on passenger side\",\n \"summary\": \"[Inspection] Rock hit windshield. 6\\\" crack on passenger side\",\n \"description\": \"Generated by the failed inspection item \\\"Windshield and Wipers/Washers\\\" on the \\\"Driver Vehicle Inspection Report (Simple)\\\" form submitted by Harry Levine on Sep 24, 2021 at 11:07 AM MDT\",\n \"state\": \"Resolved\",\n \"reported_at\": \"2021-09-24T11:07:37.000-06:00\",\n \"reported_by_id\": 809782,\n \"reported_by_name\": \"Harry Levine\",\n \"fault_id\": null,\n \"due_date\": null,\n \"due_meter_value\": null,\n \"due_secondary_meter_value\": null,\n \"vehicle_id\": 1573893,\n \"vehicle_name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"is_sample\": false,\n \"created_by_workflow\": true,\n \"submitted_inspection_form_id\": 16131760,\n \"custom_fields\": {},\n \"dtc_alert_id\": null,\n \"assigned_contacts\": [],\n \"reported_by\": {\n \"id\": 809782,\n \"name\": \"Harry Levine\",\n \"first_name\": \"Harry\",\n \"middle_name\": null,\n \"group_id\": null,\n \"group_name\": null,\n \"last_name\": \"Levine\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": false,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": false,\n \"vehicle_operator\": null,\n \"work_phone_number\": \"+17209719997\",\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"attachment_permissions\": {},\n \"default_image_url\": null,\n \"user\": {\n \"id\": 347375,\n \"email\": \"[email protected]\",\n \"username\": null,\n \"time_zone\": \"Mountain Time (US & Canada)\"\n },\n \"created_at\": \"2021-09-29T13:10:29.574-06:00\",\n \"updated_at\": \"2021-09-29T13:10:29.574-06:00\"\n },\n \"labels\": [],\n \"comments\": [],\n \"created_at\": \"2021-09-29T13:12:47.765-06:00\",\n \"updated_at\": \"2022-01-13T11:17:38.099-07:00\",\n \"overdue\": false,\n \"attachment_permissions\": {},\n \"documents\": [],\n \"images\": [],\n \"resolvable_id\": 11209574,\n \"resolvable_type\": \"ServiceEntry\",\n \"resolved_at\": \"2022-01-13T11:14:00.000-07:00\",\n \"is_watched\": true,\n \"vehicle_image_url\": null,\n \"vehicle_image_url_medium\": null,\n \"vehicle_image_url_small\": null,\n \"vehicle_image_url_large\": null,\n \"watchers_count\": 1,\n \"linked_work_orders\": null,\n \"source\": {\n \"inspection_form\": {\n \"id\": 16131760,\n \"color\": null,\n \"title\": \"Driver Vehicle Inspection Report (Simple)\"\n },\n \"inspection_submissions_count\": 1,\n \"last_inspection_submission_at\": \"2021-09-24T11:04:37.000-06:00\",\n \"failed_inspection_item_label\": \"Windshield and Wipers/Washers\"\n }\n }\n ]\n }\n ],\n \"service_tasks\": [\n {\n \"id\": 17707469,\n \"name\": \"Windshield Replacement\",\n \"description\": null,\n \"created_at\": \"2021-09-29T13:10:31.162-06:00\",\n \"updated_at\": \"2021-09-29T13:10:31.162-06:00\",\n \"subtasks\": []\n }\n ],\n \"issues\": [\n {\n \"id\": 2700615,\n \"number\": \"#7\",\n \"name\": \"[Inspection] Rock hit windshield. 6\\\" crack on passenger side\",\n \"summary\": \"[Inspection] Rock hit windshield. 6\\\" crack on passenger side\",\n \"description\": \"Generated by the failed inspection item \\\"Windshield and Wipers/Washers\\\" on the \\\"Driver Vehicle Inspection Report (Simple)\\\" form submitted by Harry Levine on Sep 24, 2021 at 11:07 AM MDT\",\n \"state\": \"Resolved\",\n \"reported_at\": \"2021-09-24T11:07:37.000-06:00\",\n \"reported_by_id\": 809782,\n \"reported_by_name\": \"Harry Levine\",\n \"fault_id\": null,\n \"due_date\": null,\n \"due_meter_value\": null,\n \"due_secondary_meter_value\": null,\n \"vehicle_id\": 1573893,\n \"vehicle_name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"is_sample\": false,\n \"created_by_workflow\": true,\n \"submitted_inspection_form_id\": 16131760,\n \"custom_fields\": {},\n \"dtc_alert_id\": null,\n \"assigned_contacts\": [],\n \"reported_by\": {\n \"id\": 809782,\n \"name\": \"Harry Levine\",\n \"first_name\": \"Harry\",\n \"middle_name\": null,\n \"group_id\": null,\n \"group_name\": null,\n \"last_name\": \"Levine\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": false,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": false,\n \"vehicle_operator\": null,\n \"work_phone_number\": \"+17209719997\",\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"attachment_permissions\": {},\n \"default_image_url\": null,\n \"user\": {\n \"id\": 347375,\n \"email\": \"[email protected]\",\n \"username\": null,\n \"time_zone\": \"Mountain Time (US & Canada)\"\n },\n \"created_at\": \"2021-09-29T13:10:29.574-06:00\",\n \"updated_at\": \"2021-09-29T13:10:29.574-06:00\"\n },\n \"labels\": [],\n \"comments\": [],\n \"created_at\": \"2021-09-29T13:12:47.765-06:00\",\n \"updated_at\": \"2022-01-13T11:17:38.099-07:00\",\n \"overdue\": false,\n \"attachment_permissions\": {},\n \"documents\": [],\n \"images\": [],\n \"resolvable_id\": 11209574,\n \"resolvable_type\": \"ServiceEntry\",\n \"resolved_at\": \"2022-01-13T11:14:00.000-07:00\",\n \"is_watched\": true,\n \"vehicle_image_url\": null,\n \"vehicle_image_url_medium\": null,\n \"vehicle_image_url_small\": null,\n \"vehicle_image_url_large\": null,\n \"watchers_count\": 1,\n \"linked_work_orders\": null,\n \"source\": {\n \"inspection_form\": {\n \"id\": 16131760,\n \"color\": null,\n \"title\": \"Driver Vehicle Inspection Report (Simple)\"\n },\n \"inspection_submissions_count\": 1,\n \"last_inspection_submission_at\": \"2021-09-24T11:04:37.000-06:00\",\n \"failed_inspection_item_label\": \"Windshield and Wipers/Washers\"\n }\n }\n ],\n \"meter_entry\": {\n \"id\": 180136057,\n \"auto_voided_at\": null,\n \"category\": null,\n \"date\": \"2022-01-13\",\n \"meter_type\": null,\n \"meterable_id\": 11209574,\n \"meterable_type\": \"ServiceEntry\",\n \"value\": \"136776.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"created_at\": \"2022-01-13T11:17:37.990-07:00\",\n \"updated_at\": \"2022-01-13T11:17:37.990-07:00\"\n },\n \"images\": [],\n \"created_at\": \"2022-01-13T11:17:37.967-07:00\",\n \"updated_at\": \"2022-01-13T11:17:38.114-07:00\",\n \"comments\": [],\n \"labels\": [\n {\n \"id\": 87590,\n \"name\": \"Needs Repair\"\n }\n ],\n \"auto_integrate_ro_id\": null,\n \"auto_integrate_ro_link\": null,\n \"auto_integrate_repair_order_status_color\": \"muted\"\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Inspection Submission Events" } [/block] [block:parameters] { "data": { "0-0": "`submitted_inspection_form_created`", "0-1": "Fired when an inspection is submitted.", "1-0": "`submitted_inspection_form_deleted`", "1-1": "Fired when an inspection is deleted." }, "cols": 2, "rows": 2 } [/block] Example payload for all inspection submission events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298681,\n \"event\": \"submitted_inspection_form_created\",\n \"timestamp\": \"2022-01-14T10:34:25.000-07:00\",\n \"payload\": {\n \"id\": 18491942,\n \"started_at\": \"2022-01-14T10:34:21.165-07:00\",\n \"submitted_at\": \"2022-01-14T10:34:25.514-07:00\",\n \"failed_items\": 0,\n \"vehicle_id\": 1577058,\n \"starting_latitude\": null,\n \"starting_longitude\": null,\n \"submitted_latitude\": null,\n \"submitted_longitude\": null,\n \"duration\": \"less than a minute\",\n \"inspection_form\": {\n \"id\": 54497,\n \"title\": \"Simple DVIR\",\n \"description\": \"Simple version of the driver vehicle inspection form\"\n },\n \"date\": \"January 14, 2022\",\n \"contact_id\": 809782,\n \"user\": \"Harry Levine\",\n \"comments_count\": 0,\n \"images_count\": 0,\n \"submitted_inspection_items\": [\n {\n \"id\": 474716584,\n \"comments_count\": 0,\n \"images_count\": 0,\n \"submitted_inspection_form_id\": 18491942,\n \"latitude\": null,\n \"longitude\": null,\n \"result\": {\n \"label\": \"Pass\"\n },\n \"inspection_item\": {\n \"label\": \"Got dents?\",\n \"type\": \"InspectionPassFailItem\",\n \"fail_label\": \"Fail\",\n \"pass_label\": \"Pass\",\n \"na_label\": \"N/A\",\n \"dropdown_options\": [],\n \"numeric_range_max\": null,\n \"numeric_range_min\": null\n },\n \"comments\": [],\n \"images\": []\n },\n {\n \"id\": 474716585,\n \"comments_count\": 0,\n \"images_count\": 0,\n \"submitted_inspection_form_id\": 18491942,\n \"latitude\": null,\n \"longitude\": null,\n \"result\": {\n \"label\": \"Full\"\n },\n \"inspection_item\": {\n \"label\": \"How full tank is\",\n \"type\": \"InspectionDropdownItem\",\n \"fail_label\": null,\n \"pass_label\": null,\n \"na_label\": \"N/A\",\n \"dropdown_options\": [\n {\n \"label\": \"Full\",\n \"position\": 1,\n \"fail_if_chosen\": false\n },\n {\n \"label\": \"3/4 full\",\n \"position\": 2,\n \"fail_if_chosen\": false\n },\n {\n \"label\": \"1/2 full\",\n \"position\": 3,\n \"fail_if_chosen\": false\n },\n {\n \"label\": \"1/4 left\",\n \"position\": 4,\n \"fail_if_chosen\": false\n },\n {\n \"label\": \"empty\",\n \"position\": 5,\n \"fail_if_chosen\": false\n }\n ],\n \"numeric_range_max\": null,\n \"numeric_range_min\": null\n },\n \"comments\": [],\n \"images\": []\n }\n ]\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Meter Entry Events" } [/block] Meter entry events are only fired on **manual** meter entries (e.g. ones that are not associated with another resource, such as a fuel entry or service entry). [block:parameters] { "data": { "0-0": "`meter_entry_created`", "0-1": "Fired when a manual meter entry is created.", "1-0": "`meter_entry_updated`", "1-1": "Fired when a manual meter entry is updated.", "2-0": "`meter_entry_deleted`", "2-1": "Fired when a manual meter entry is deleted. The payload will contain the meter entry's attributes before deletion." }, "cols": 2, "rows": 3 } [/block] Example payload for all meter entry events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283417,\n \"event\": \"meter_entry_created\",\n \"timestamp\": \"2022-01-13T11:09:07.000-07:00\",\n \"payload\": {\n \"id\": 180134912,\n \"auto_voided_at\": null,\n \"category\": null,\n \"meter_type\": null,\n \"meterable_id\": null,\n \"meterable_type\": null,\n \"value\": \"136775.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"gps_provider\": null,\n \"date\": \"2022-01-13\",\n \"created_at\": \"2022-01-13T11:09:07.373-07:00\",\n \"updated_at\": \"2022-01-13T11:09:07.373-07:00\"\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Part Events" } [/block] [block:parameters] { "data": { "0-0": "`part_created`", "0-1": "Fired when a part is created.", "1-0": "`part_updated`", "1-1": "Fired when a part is updated.", "2-0": "`part_deleted`", "2-1": "Fired when a part is deleted. The payload will contain the part's attributes before deletion.", "3-0": "`part_comment_added`", "3-1": "Fired when a comment is made on a part." }, "cols": 2, "rows": 4 } [/block] Example payload for all part events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283608,\n \"event\": \"part_created\",\n \"timestamp\": \"2022-01-13T11:29:33.000-07:00\",\n \"payload\": {\n \"id\": 1943860,\n \"description\": \"Filter for xyz\",\n \"manufacturer_part_number\": null,\n \"measurement_unit_id\": null,\n \"number\": \"ABC-123\",\n \"part_category_id\": 558978,\n \"part_manufacturer_id\": null,\n \"upc\": null,\n \"total_quantity\": 10,\n \"comments_count\": 0,\n \"documents_count\": 0,\n \"images_count\": 0,\n \"custom_fields\": {},\n \"inventory_item\": true,\n \"part_category_name\": \"Filters\",\n \"part_manufacturer_name\": null,\n \"measurement_unit_name\": null,\n \"default_image_url\": null,\n \"default_image_url_medium\": null,\n \"default_image_url_small\": null,\n \"default_image_url_large\": null,\n \"unit_cost\": null,\n \"part_locations\": [\n {\n \"id\": 19246881,\n \"part_location_name\": \"Chicago warehouse\",\n \"part_location_id\": 9733,\n \"available_quantity\": 10,\n \"aisle\": \"3\",\n \"row\": \"12\",\n \"bin\": \"15\",\n \"reorder_point\": 2,\n \"reorder_point_lead_time_days\": null,\n \"reorder_quantity\": null,\n \"reorder_quantity_lead_time_days\": null,\n \"reorder_point_enabled\": true,\n \"available_quantity_updated_at\": \"2022-01-13T11:29:33.553-07:00\",\n \"active\": true,\n \"track_inventory\": true,\n \"name\": \"Chicago warehouse\",\n \"created_at\": \"2022-01-13T11:29:33.495-07:00\",\n \"updated_at\": \"2022-01-13T11:29:33.557-07:00\"\n },\n {\n \"id\": 19246882,\n \"part_location_name\": \"Warehouse\",\n \"part_location_id\": 9732,\n \"available_quantity\": null,\n \"aisle\": null,\n \"row\": null,\n \"bin\": null,\n \"reorder_point\": null,\n \"reorder_point_lead_time_days\": null,\n \"reorder_quantity\": null,\n \"reorder_quantity_lead_time_days\": null,\n \"reorder_point_enabled\": false,\n \"available_quantity_updated_at\": null,\n \"active\": false,\n \"track_inventory\": false,\n \"name\": \"Warehouse\",\n \"created_at\": \"2022-01-13T11:29:33.570-07:00\",\n \"updated_at\": \"2022-01-13T11:29:33.570-07:00\"\n }\n ],\n \"archived_at\": null,\n \"created_at\": \"2022-01-13T11:29:33.477-07:00\",\n \"updated_at\": \"2022-01-13T11:29:33.573-07:00\",\n \"comments\": [],\n \"documents\": [],\n \"images\": [],\n \"attachment_permissions\": {}\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Place Events" } [/block] [block:parameters] { "data": { "0-0": "`place_created`", "0-1": "Fired when a place is created.", "1-0": "`place_updated`", "1-1": "Fired when a place is updated.", "2-0": "`place_deleted`", "2-1": "Fired when a place is deleted. The payload will contain the place's attributes before deletion.", "3-0": "`place_visited`", "3-1": "Fired when a place is visited." }, "cols": 2, "rows": 4 } [/block] Example payload for all place events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298167,\n \"event\": \"place_updated\",\n \"timestamp\": \"2022-01-14T10:10:57.000-07:00\",\n \"payload\": {\n \"id\": 13736,\n \"name\": \"Jiffy Lube\",\n \"address\": \"9535 Park Meadows Dr, Lone Tree, CO 80124, USA\",\n \"description\": \"Oil changes, etc.\",\n \"place_visits_count\": 0,\n \"radius_in_meters\": 100,\n \"created_at\": \"2021-10-04T11:18:36.245-06:00\",\n \"updated_at\": \"2022-01-14T10:11:25.105-07:00\",\n \"latitude\": 39.55472109999999,\n \"longitude\": -104.87889\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Purchase Order Events" } [/block] [block:parameters] { "data": { "0-0": "`purchase_order_created`", "0-1": "Fired when a purchase order is created.", "1-0": "`purchase_order_updated`", "1-1": "Fired when a purchase order is updated. This event is not fired when the purchase order state changes.", "2-0": "`purchase_order_pending_approval`", "2-1": "Fired when a purchase order enters the pending approval state.", "7-0": "`purchase_order_deleted`", "7-1": "Fired when a purchase order is deleted. The payload will contain the purchase order's attributes before deletion.", "3-0": "`purchase_order_approved`", "3-1": "Fired when a purchase order is approved.", "4-0": "`purchase_order_purchased`", "4-1": "Fired when a purchase order is marked as purchased.", "5-0": "`purchase_order_received`", "5-1": "Fired when a purchase order is fully received.", "6-0": "`purchase_order_closed`", "6-1": "Fired when a purchase order is closed.", "8-0": "`purchase_order_comment_added`", "8-1": "Fired when a comment is made on a purchase order." }, "cols": 2, "rows": 9 } [/block] Example payload for all purchase order events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298296,\n \"event\": \"purchase_order_created\",\n \"timestamp\": \"2022-01-14T10:14:37.000-07:00\",\n \"payload\": {\n \"id\": 335744,\n \"number\": 1,\n \"description\": null,\n \"label_list\": [],\n \"submitted_for_approval_at\": null,\n \"rejected_at\": null,\n \"approved_at\": null,\n \"purchased_at\": null,\n \"received_partial_at\": null,\n \"received_full_at\": null,\n \"closed_at\": null,\n \"state\": \"draft\",\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"created_at\": \"2022-01-14T10:14:37.285-07:00\",\n \"updated_at\": \"2022-01-14T10:14:37.293-07:00\",\n \"custom_fields\": {},\n \"discount_percentage\": 0,\n \"discount_type\": \"percentage\",\n \"tax_1_percentage\": null,\n \"tax_1_type\": \"percentage\",\n \"tax_2_percentage\": null,\n \"tax_2_type\": \"percentage\",\n \"discount\": 0,\n \"subtotal\": 54.95,\n \"shipping\": 0,\n \"tax_1\": 0,\n \"tax_2\": 0,\n \"total_amount\": 54.95,\n \"part_location_id\": 9733,\n \"vendor_id\": 1783804,\n \"part_location_name\": \"Chicago warehouse\",\n \"vendor_name\": \"Discount Tire\",\n \"created_by\": \"Harry Levine\",\n \"purchase_order_line_items\": [\n {\n \"id\": 717129,\n \"part_id\": 1943860,\n \"quantity\": \"5.0\",\n \"total_quantity_received\": \"0.0\",\n \"part_number\": \"ABC-123\",\n \"unit_cost\": 10.99,\n \"subtotal\": 54.95,\n \"created_at\": \"2022-01-14T10:14:37.291-07:00\",\n \"updated_at\": \"2022-01-14T10:14:37.291-07:00\"\n }\n ]\n },\n \"triggered_by\": \"[email protected]om\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Work Order Events" } [/block] [block:parameters] { "data": { "0-0": "`work_order_created`", "0-1": "Fired when a work order is created.", "1-0": "`work_order_updated`", "1-1": "Fired when a work order is updated.", "2-0": "`work_order_deleted`", "2-1": "Fired when a work order is updated. The payload will contain the work order's attributes before deletion.", "3-0": "`work_order_status_changed`", "3-1": "Fired when the status of a work order changes.", "4-0": "`work_order_comment_added`", "4-1": "Fired when a comment is made on a work order." }, "cols": 2, "rows": 5 } [/block] Example payload for all work order events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298324,\n \"event\": \"work_order_updated\",\n \"timestamp\": \"2022-01-14T10:17:56.000-07:00\",\n \"payload\": {\n \"id\": 2155781,\n \"number\": \"#1\",\n \"completed_at\": \"2021-10-08T11:28:00.000-06:00\",\n \"description\": null,\n \"ending_meter_same_as_start\": true,\n \"duration_in_seconds\": 41280,\n \"invoice_number\": null,\n \"issued_at\": \"2021-10-08T11:20:00.000-06:00\",\n \"issued_by_id\": 809782,\n \"issued_by_name\": \"Harry Levine\",\n \"contact_id\": 810685,\n \"contact_name\": \"Franco Robertson\",\n \"purchase_order_number\": null,\n \"started_at\": \"2021-10-08T00:00:00.000-06:00\",\n \"vehicle_id\": 1573893,\n \"vehicle_name\": \"3100 [2014 Chevrolet Express Cargo]\",\n \"vendor_id\": null,\n \"vendor_name\": null,\n \"work_order_status_id\": 160797,\n \"work_order_status_name\": \"Open\",\n \"documents_count\": 0,\n \"images_count\": 0,\n \"comments_count\": 0,\n \"state\": \"active\",\n \"custom_fields\": {},\n \"discount_percentage\": 0,\n \"discount_type\": \"percentage\",\n \"tax_1_percentage\": 0,\n \"tax_1_type\": \"percentage\",\n \"tax_2_percentage\": 0,\n \"tax_2_type\": \"percentage\",\n \"discount\": 0,\n \"labor_subtotal\": 0,\n \"parts_subtotal\": 1,\n \"tax_1\": 0,\n \"tax_2\": 0,\n \"total_amount\": 1,\n \"work_order_line_items\": [\n {\n \"id\": 4034244,\n \"description\": \"\",\n \"item_id\": 17707237,\n \"item_type\": \"ServiceTask\",\n \"work_order_line_item_id\": null,\n \"item_name\": \"Accelerator Pedal Inspect\",\n \"position\": 0,\n \"labor_cost\": 0,\n \"parts_cost\": 1,\n \"subtotal\": 1,\n \"created_at\": \"2021-10-08T11:28:10.600-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.641-07:00\",\n \"issues\": [],\n \"work_order_sub_line_items\": [\n {\n \"id\": 3998611,\n \"description\": \"\",\n \"item_id\": 810686,\n \"item_type\": \"Contact\",\n \"work_order_line_item_id\": 4034244,\n \"quantity\": 0,\n \"part_location_detail_id\": null,\n \"item_name\": \"Newo Contacto\",\n \"unit_cost\": 52,\n \"created_at\": \"2021-10-08T11:28:10.610-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.648-07:00\",\n \"contact\": {\n \"id\": 810686,\n \"name\": \"Newo Contacto\",\n \"first_name\": \"Newo\",\n \"middle_name\": null,\n \"group_id\": 628272,\n \"group_name\": \"Colorado\",\n \"last_name\": \"Contacto\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": false,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": true,\n \"vehicle_operator\": true,\n \"work_phone_number\": null,\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"attachment_permissions\": {},\n \"default_image_url\": null,\n \"user\": null,\n \"created_at\": \"2021-09-29T17:07:24.384-06:00\",\n \"updated_at\": \"2021-09-29T17:07:24.384-06:00\"\n },\n \"labor_time_entries\": []\n },\n {\n \"id\": 3998612,\n \"description\": \"\",\n \"item_id\": 1656039,\n \"item_type\": \"Part\",\n \"work_order_line_item_id\": 4034244,\n \"quantity\": 1,\n \"part_location_detail_id\": 16431791,\n \"item_name\": null,\n \"unit_cost\": 1,\n \"created_at\": \"2021-10-08T11:28:10.627-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.668-07:00\",\n \"part\": {\n \"id\": 1656039,\n \"description\": \"special new part\",\n \"manufacturer_part_number\": \"abc123\",\n \"measurement_unit_id\": 426999,\n \"number\": \"abc-123\",\n \"part_category_id\": 558979,\n \"part_manufacturer_id\": null,\n \"upc\": null,\n \"total_quantity\": 4,\n \"comments_count\": 0,\n \"documents_count\": 0,\n \"images_count\": 0,\n \"custom_fields\": {},\n \"inventory_item\": true,\n \"part_category_name\": \"Belts\",\n \"part_manufacturer_name\": null,\n \"measurement_unit_name\": \"Each\",\n \"default_image_url\": null,\n \"default_image_url_medium\": null,\n \"default_image_url_small\": null,\n \"default_image_url_large\": null,\n \"unit_cost\": 1,\n \"part_locations\": [\n {\n \"id\": 16431807,\n \"part_location_name\": \"Chicago warehouse\",\n \"part_location_id\": 9733,\n \"available_quantity\": null,\n \"aisle\": null,\n \"row\": null,\n \"bin\": null,\n \"reorder_point\": null,\n \"reorder_point_lead_time_days\": null,\n \"reorder_quantity\": null,\n \"reorder_quantity_lead_time_days\": null,\n \"reorder_point_enabled\": false,\n \"available_quantity_updated_at\": null,\n \"active\": false,\n \"track_inventory\": false,\n \"name\": \"Chicago warehouse\",\n \"created_at\": null,\n \"updated_at\": null\n },\n {\n \"id\": 16431791,\n \"part_location_name\": \"Warehouse\",\n \"part_location_id\": 9732,\n \"available_quantity\": 4,\n \"aisle\": \"1\",\n \"row\": \"2\",\n \"bin\": \"3\",\n \"reorder_point\": 2,\n \"reorder_point_lead_time_days\": null,\n \"reorder_quantity\": null,\n \"reorder_quantity_lead_time_days\": null,\n \"reorder_point_enabled\": true,\n \"available_quantity_updated_at\": \"2021-10-08T11:28:10.710-06:00\",\n \"active\": true,\n \"track_inventory\": true,\n \"name\": \"Warehouse\",\n \"created_at\": \"2021-10-08T11:14:07.381-06:00\",\n \"updated_at\": \"2021-10-11T09:29:45.784-06:00\"\n }\n ],\n \"archived_at\": null,\n \"created_at\": \"2021-10-08T11:06:54.436-06:00\",\n \"updated_at\": \"2021-10-11T09:29:45.797-06:00\",\n \"comments\": [],\n \"documents\": [],\n \"images\": [],\n \"attachment_permissions\": {}\n }\n }\n ]\n },\n {\n \"id\": 4034245,\n \"description\": \"\",\n \"item_id\": 17707278,\n \"item_type\": \"ServiceTask\",\n \"work_order_line_item_id\": null,\n \"item_name\": \"ABS Control Module Replacement\",\n \"position\": 1,\n \"labor_cost\": 0,\n \"parts_cost\": 0,\n \"subtotal\": 0,\n \"created_at\": \"2021-10-08T11:28:10.841-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.727-07:00\",\n \"issues\": [],\n \"work_order_sub_line_items\": [\n {\n \"id\": 3998613,\n \"description\": \"\",\n \"item_id\": 810686,\n \"item_type\": \"Contact\",\n \"work_order_line_item_id\": 4034245,\n \"quantity\": 0,\n \"part_location_detail_id\": null,\n \"item_name\": \"Newo Contacto\",\n \"unit_cost\": 0,\n \"created_at\": \"2021-10-08T11:28:10.848-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.731-07:00\",\n \"contact\": {\n \"id\": 810686,\n \"name\": \"Newo Contacto\",\n \"first_name\": \"Newo\",\n \"middle_name\": null,\n \"group_id\": 628272,\n \"group_name\": \"Colorado\",\n \"last_name\": \"Contacto\",\n \"images_count\": 0,\n \"documents_count\": 0,\n \"comments_count\": 0,\n \"email\": \"[email protected]\",\n \"birth_date\": null,\n \"city\": null,\n \"country\": null,\n \"employee\": false,\n \"employee_number\": null,\n \"home_phone_number\": null,\n \"job_title\": null,\n \"leave_date\": null,\n \"license_class\": null,\n \"license_number\": null,\n \"license_state\": null,\n \"mobile_phone_number\": null,\n \"other_phone_number\": null,\n \"postal_code\": null,\n \"region\": null,\n \"start_date\": null,\n \"street_address\": null,\n \"street_address_line_2\": null,\n \"technician\": true,\n \"vehicle_operator\": true,\n \"work_phone_number\": null,\n \"hourly_labor_rate\": null,\n \"custom_fields\": {},\n \"attachment_permissions\": {},\n \"default_image_url\": null,\n \"user\": null,\n \"created_at\": \"2021-09-29T17:07:24.384-06:00\",\n \"updated_at\": \"2021-09-29T17:07:24.384-06:00\"\n },\n \"labor_time_entries\": []\n }\n ]\n }\n ],\n \"labor_time_entries\": [],\n \"meter_entry\": {\n \"id\": 161800299,\n \"auto_voided_at\": null,\n \"category\": \"starting\",\n \"date\": \"2021-10-08\",\n \"meter_type\": null,\n \"meterable_id\": 2155781,\n \"meterable_type\": \"WorkOrder\",\n \"value\": \"136699.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"created_at\": \"2021-10-11T09:31:02.520-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.574-07:00\"\n },\n \"starting_meter_entry\": {\n \"id\": 161800299,\n \"auto_voided_at\": null,\n \"category\": \"starting\",\n \"date\": \"2021-10-08\",\n \"meter_type\": null,\n \"meterable_id\": 2155781,\n \"meterable_type\": \"WorkOrder\",\n \"value\": \"136699.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"created_at\": \"2021-10-11T09:31:02.520-06:00\",\n \"updated_at\": \"2022-01-14T10:17:56.574-07:00\"\n },\n \"ending_meter_entry\": {\n \"id\": 180404257,\n \"auto_voided_at\": null,\n \"category\": \"ending\",\n \"date\": \"2021-10-08\",\n \"meter_type\": null,\n \"meterable_id\": 2155781,\n \"meterable_type\": \"WorkOrder\",\n \"value\": \"136699.0\",\n \"vehicle_id\": 1573893,\n \"void\": false,\n \"type\": null,\n \"created_at\": \"2022-01-14T10:18:47.651-07:00\",\n \"updated_at\": \"2022-01-14T10:18:47.651-07:00\"\n },\n \"created_at\": \"2021-10-08T11:28:10.504-06:00\",\n \"updated_at\": \"2022-01-14T10:18:47.644-07:00\",\n \"labels\": [\n {\n \"id\": 87575,\n \"name\": \"Preventative\"\n }\n ],\n \"issues\": [],\n \"work_order_status_color\": \"teal\",\n \"comments\": [],\n \"work_order_sub_line_items\": [],\n \"contact_image_url\": null,\n \"is_watched\": true,\n \"watchers_count\": 2\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Vehicle Assignment Events" } [/block] [block:parameters] { "data": { "0-0": "`vehicle_assignment_created`", "0-1": "Fired when a vehicle assignment is created.", "2-0": "`vehicle_assignment_deleted`", "2-1": "Fired when a vehicle assignment is deleted.", "1-0": "`vehicle_assignment_updated`", "1-1": "Fired when a vehicle assignment is updated." }, "cols": 2, "rows": 3 } [/block] Example payload for vehicle assignment events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298546,\n \"event\": \"vehicle_assignment_created\",\n \"timestamp\": \"2022-01-14T10:28:48.000-07:00\",\n \"payload\": {\n \"id\": 2012798,\n \"vehicle_id\": 1573893,\n \"contact_id\": 809783,\n \"started_at\": \"2022-01-14T10:28:28.000-07:00\",\n \"ended_at\": null,\n \"starting_meter_entry_value\": \"136778.0\",\n \"ending_meter_entry_value\": null,\n \"created_at\": \"2022-01-14T10:28:48.038-07:00\",\n \"updated_at\": \"2022-01-14T10:28:48.038-07:00\",\n \"comments_count\": 0,\n \"current\": true,\n \"future\": false,\n \"contact_full_name\": \"Jacob Silva\",\n \"contact_image_url\": null,\n \"custom_fields\": {},\n \"comments\": []\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Vendor Events" } [/block] [block:parameters] { "data": { "0-0": "`vendor_created`", "0-1": "Fired when a vendor is created.", "1-0": "`vendor_updated`", "1-1": "Fired when a vendor is updated.", "2-0": "`vendor_deleted`", "2-1": "Fired when a vendor is deleted. The payload will contain the vendor's attributes before deletion.", "3-0": "`vendor_comment_added`", "3-1": "Fired when a comment is made on a vendor." }, "cols": 2, "rows": 4 } [/block] Example payload for all vendor events: [block:code] { "codes": [ { "code": "{\n \"id\": 12283821,\n \"event\": \"vendor_updated\",\n \"timestamp\": \"2022-01-13T11:53:15.000-07:00\",\n \"payload\": {\n \"id\": 1783800,\n \"city\": \"Chicago\",\n \"contact_email\": null,\n \"contact_name\": \"Dan Leibel\",\n \"contact_phone\": \"(333) 555-1234\",\n \"country\": \"US\",\n \"external_id\": null,\n \"latitude\": 42.0047405,\n \"longitude\": -87.6904117,\n \"name\": \"Jiffy Lube\",\n \"phone\": \"773-274-2900\",\n \"postal_code\": \"60645\",\n \"region\": \"IL\",\n \"street_address\": \"6750 N Western Ave\",\n \"street_address_line_2\": null,\n \"website\": \"https://www.jiffylube.com/\",\n \"fuel\": false,\n \"service\": true,\n \"parts\": true,\n \"archived_at\": null,\n \"custom_fields\": {},\n \"created_at\": \"2021-09-29T13:10:35.530-06:00\",\n \"updated_at\": \"2022-01-13T11:54:08.320-07:00\",\n \"labels\": []\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Expense Entry Events" } [/block] [block:callout] { "type": "warning", "title": "Important Note", "body": "Expense Entries are automatically generated when an acquisition (a loan or a lease) is created. This includes all current expenses and future expenses. Fleetio will fire creation events for all future expense entries, so your endpoint should check the `occurred_at` field to determine if this is a future expense or not." } [/block] [block:parameters] { "data": { "0-0": "`expense_entry_created`", "0-1": "Fired when an expense entry is created.", "1-1": "Fired when an expense entry is updated.", "1-0": "`expense_entry_updated`", "2-1": "Fired when an expense entry is deleted. The payload will contain the expense entry's attributes before deletion.", "2-0": "`expense_entry_deleted`", "3-1": "Fired when a comment is made on an expense entry.", "3-0": "`expense_entry_comment_added`" }, "cols": 2, "rows": 4 } [/block] Example payload for all expense entry events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298608,\n \"event\": \"expense_entry_updated\",\n \"timestamp\": \"2022-01-14T10:30:20.000-07:00\",\n \"payload\": {\n \"created_at\": \"2021-09-29T13:12:03.049-06:00\",\n \"expense_entry_type_id\": 992543,\n \"expense_entry_type_name\": \"Vehicle Registration and Taxes\",\n \"id\": 3437713,\n \"notes\": \"Title fee and first-time registration\",\n \"occurred_at\": \"2021-03-20T13:12:02.000-06:00\",\n \"updated_at\": \"2022-01-14T10:30:55.230-07:00\",\n \"vehicle_id\": 1573891,\n \"vehicle_name\": \"1100 [2018 Toyota Prius]\",\n \"vendor_id\": null,\n \"vendor_name\": null,\n \"total_amount\": 196.27,\n \"custom_fields\": {}\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Location Entry Events" } [/block] [block:parameters] { "data": { "0-0": "`location_entry_created`", "1-0": "`location_entry_udpated`", "2-0": "`location_entry_delete`", "0-1": "Fired when a location entry is created.", "1-1": "Fired when a location entry is updated.", "2-1": "Fired when a location entry is deleted. The payload will contain the location entry's attributes before deletion." }, "cols": 2, "rows": 3 } [/block] [block:code] { "codes": [ { "code": "{\n \"id\": 12298959,\n \"event\": \"location_entry_created\",\n \"timestamp\": \"2022-01-14T10:52:25.000-07:00\",\n \"payload\": {\n \"id\": 264910636,\n \"locatable_type\": \"FuelEntry\",\n \"locatable_id\": 28080701,\n \"date\": \"2022-01-14T10:51:00.000-07:00\",\n \"created_at\": \"2022-01-14T10:52:24.953-07:00\",\n \"updated_at\": \"2022-01-14T10:52:24.953-07:00\",\n \"contact_id\": null,\n \"address\": null,\n \"is_current\": false,\n \"item_type\": \"Vehicle\",\n \"item_id\": 1573893,\n \"vehicle_id\": 1573893,\n \"location\": \"POINT (-84.468697 33.739286)\",\n \"address_components\": {},\n \"geolocation\": {\n \"latitude\": 33.739286,\n \"longitude\": -84.468697\n }\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block] [block:api-header] { "title": "Import Events" } [/block] When importing data, regular webhook events are not fired, due to the volume of events that could potentially be generated. Instead, you must listen for the `import_completed` event and find out which objects were updated or created. [block:parameters] { "data": { "0-0": "`import_completed`", "0-1": "Fired when an import is completed, whether successfully or not. You can check the `state` attribute to determine if the import was successful or not. \n\nA state of `complete` indicates success. A state of `failed` indicates something failed. You can then go through the `error_messages` array to see exactly what failed.\n\nOn success, the `created_record_ids` and `updated_record_ids` arrays will contain the IDs of the records that were either created or updated." }, "cols": 2, "rows": 1 } [/block] Example payload for all import events: [block:code] { "codes": [ { "code": "{\n \"id\": 12298850,\n \"event\": \"import_completed\",\n \"timestamp\": \"2022-01-14T10:42:15.000-07:00\",\n \"payload\": {\n \"id\": 1203509,\n \"created_record_ids\": [\n \"68892\",\n \"68893\",\n \"68894\"\n ],\n \"updated_record_ids\": [],\n \"affected_record_ids\": [\n 68892,\n 68893,\n 68894\n ],\n \"completed_at\": \"2022-01-14T10:42:15.104-07:00\",\n \"state\": \"complete\",\n \"created_at\": \"2022-01-14T10:41:27.817-07:00\",\n \"updated_at\": \"2022-01-14T10:42:15.108-07:00\",\n \"error_messages\": [],\n \"type\": \"EquipmentImport\"\n },\n \"triggered_by\": \"[email protected]\"\n}", "language": "json" } ] } [/block]