...
Overzicht van de verschillende webhook events waarop ingehaakt kan worden.
...
nl.assistanceonline.webhooks.orderstatuschanged.v1
Gaat af bij iedere mutatie van de dossierstatus. De huidige statussen die in AO voorkomen:
...
Veld | Type | Omschrijving | Voorbeeld |
---|---|---|---|
resourceReference | String | Referentie naar het resource voor het opvragen van meer details | /tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa |
eventType | String | Event type | ao.order.statuschangednl.assistanceonline.webhooks.orderstatuschanged.v1 |
resources | Dictionary<string, ResourceBase> | Dictionary met alle resources. (eventueel gefiltered door de instelling in de webhook) De key is de locatie in de API en resources refereren onderling via de key |
|
...
nl.assistanceonline.webhooks.orderstatuschanged.v1
Status mutaties van een dossier in AO:
...
Code Block | ||
---|---|---|
| ||
{ "orderNumber": "O-0000303", "previousStatus": "Accepted", "newStatus": "Assigned", "resourceReference": "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4", "eventType": "nl.assistanceonline.webhooks.orderstatuschanged.v1", "resources": { "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4": { "orderNumber": "O-0000303", "type": "Damage", // relation reference, niet aanwezig in dit bericht, // (kan in de toekomst worden opgevraagd bij API.) "company": "/tenants/1/relations/01732901-8271-45b7-a4e8-1247b08a3adf", // relation reference, al aanwezig in dit bericht "customer": "/tenants/1/relations/017490a9-866e-46ef-b9c9-c83f9869bb6c", "description": null, "externalReference": null, "orderDateTime": "2021-06-16T11:43:00.9021259+02:00", "district": "GL237", "cause": null, "status": "Assigned", "isOnHold": false, // orderlocationreference, aanwezig in dit bericht "incidentLocation": "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4/locations/017a1433-dc26-4646-bdbb-f2b24bb6752e", "interimLocation": [], "destinationLocation": null, "resourceType": "nl.assistanceonline.resources.order.v1", // vehiclereference, niet aanwezig in dit bericht "vehicle": "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4/vehicle", // im-orderreference, niet aanwezig in dit bericht "imOrder": "/tenants/1/im-orders/017a1433-dc16-4e8c-8d46-7b1198deddaa", // jobreferences, niet aanwezig in dit bericht "jobs": [ "/tenants/1/jobs/017a1434-157e-4f0b-9e95-360164e61208" ], // jobbilling eferencesreferences, niet aanwezig in dit bericht "jobBillings": [ "/tenants/1/job-billings/017a1434-157e-4f0b-9e95-360164e61208" ], "resourceReference": "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4" }, "/tenants/1/relations/017490a9-866e-46ef-b9c9-c83f9869bb6c": { "name": "Allianz Belastingdienst", "debtorNumber": "1", "resourceType": "nl.assistanceonline.resources.relation.v1", "resourceReference": "/tenants/1/relations/017490a9-866e-46ef-b9c9-c83f9869bb6c" }, "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4/locations/017a1433-dc26-4646-bdbb-f2b24bb6752e": { "type": "MainRoad", "name": null, "address": null, "mainRoad": { "mileMarker": 93.0, "mileMarkerAddition": "", "direction": "Re", "roadName": "A28", "countryIso2": "NL" }, "coordinates": { "latitude": 52.51341487919333, "longitude": 6.0775738186867105 }, "remark": null, "resourceType": "nl.assistanceonline.resources.location.v1", "resourceReference": "/tenants/1/orders/017a1434-117a-4d6f-8842-3fa81e0427d4/locations/017a1433-dc26-4646-bdbb-f2b24bb6752e" } } } |