Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "id": "01759dc3-5d38-405b-9b1c-5a36b0373cc3",
    "type": "ao.order.statuschanged",
    "specversion": "1.0",
    "time": "2020-11-06T14:36:00.000+02:00",
    "source": "/tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa",
    "subject": "O-2387923 | T942855",
    "datacontenttype":"application/json",
    "data": { // OrderStatusChangedDefinition
        "event": {
            "resourceReference": "/tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa",
            "eventType": "ao.order.statuschanged",
            "orderNumber": "O-2387923",
            "previousStatus": "New",
            "newStatus": "Accepted"
        },
        "resources": {
            "/tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa": { // OrderResource
                "resourceReference": "/tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa",
                "resourceType": "Order",
                "orderNumber": "O-2387923",
                "type": "BreakdownAssistance",
                "company": { // RelationReference
                    "resourceReference": "/tenants/1/relations/016c2dac-3870-4bd0-b0b5-60836e3503d2",
                    "name": "RGB+ Automatisering"
                },
                "customer": { // RelationReference
                    "resourceReference": "/tenants/1/relations/016e7d90-5b88-4df8-8b06-60501c5406d7",
                    "name": "VHD"
                },
                "description": "SPOED, 5 min vtv bellen Lekke band, RA, Oorzaak onbekend. In de ondergrondse pkg Verwisselen ging niet. Reserveband is ook lek.",
                "externalReference": "T123456",
                "orderDateTime": "2020-11-06T14:36:00.000+02:00",
                "district": "NH131",
                "cause": "Lege accu",
                "status": "Accepted",
                "IsOnHold": false
            },
            "/tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa/locations/0175ac5c-4aae-4524-a227-4e41c53f5ac9": { // LocationResource
                "resourceReference": "/tenants/1/orders/fc9036ec-eb4a-496c-8c77-e972e3e800aa/locations/0175ac5c-4aae-4524-a227-4e41c53f5ac9",
                "resourceType": "Location",
                "type": "Address",
                "address": {
                    "streetName": "Spitsstraat",
                    "houseNumber": "17a",
                    "city": "Raalte",
                    "postalCode": "8102 HW",
                    "countryIso2": "NL"
                },
                "coordiantescoordinates": {
                    "latitude": 52.380205,
                    "longitude": 6.2958919
                },
                "remark": "Melden bij receptie"
            }
        }
    }
}