Once an inspection is complete, we can return data back to an ERP system to provide a seamless user experience. This makes it possible for a purchaser to see on the order in the ERP system, if inspection has been conducted, when, by whom and what the results are. Also, a link pointing to the inspection report in Qarma can be presented together with the inspection report in PDF. 

This can be configured in many ways, and using the same data formats and transfer mechanisms as described in 

Import data.

An example is shown below:

Webhook example

{
    "inspections": [
        {
            "order_number""3993837",
            "item_number""108-00025-00",
            "inspection_start""2018-11-11 09:34:26.514Z"
            "conclusion""Approved",
            "inspector_conclusion""Approved",
            "inspected_quantity""32",
            "sample_quantity""32",
            "packed_quantity""8911,
            "inspector_name": "Søren Mønsted",
            "inspector_email": "[email protected]",
            "report_link": "https://qarmainspect.com/q/app/inspections/reports/050a6c53-dcfc-492c-8cf6-7438d8d0f57e", 
            "pdf_report": "https://qarmainspect.com/q/objects/files/ec4caacf-440d-448b-8489-f73daac34dd3/c0ae2d3b-fae4-468f-93f5-2fba7cd77731/Report.pdf"
        }
    ]
}



Additional data can be included and configured as needed. 


Events 

The following list of events can trigger webhooks to be send


Inspections

Event name
Description
Approval step changed
Triggered when an existing approval step has changed
Comment added on the report
Triggered when a new comment has been added to a report.
Inspection approved
Triggered when an inspection is "Approved". For inspections with approval flows, this requires the last approval level to "Approve" the inspection
Inspection assigned
Triggered whenever a user clicks the "Save and Notify Inspector"-Button in the edit inspection view.
Inspection done
Triggered when the inspector submits results for an inspection.
Inspection rejected
Triggered whenever an inspection gets a conclusion of "Rejected". For inspections with approval flows, this requires the last approval level to "Reject" the inspection