Order Change
Represents a order that is created, changed, or deleted.
Event Name
order_changed
Payload
Key | Type | Description |
---|---|---|
ChangeType | string | The type of change (created, updated, deleted). |
Order | Order | The order info that was changed. |
ReferenceId | Guid | The id of the event. |
Sender | Sender | Information regarding the initiator of the event. |
AccountId | Guid | The id of the affected Account. |
OrganizationId | int | The id of the affected Organization. |
Example
{
"ChangeType": "updated",
"Order": {
"OrderId": "00040afa-0000-0000-0000-000000000000",
"OrderPartners": [],
"Field": {
"Id": "00054e3b-0000-0000-0000-000000000000",
"Name": "of dreams",
"Wkt": "MULTIPOLYGON(((-91.055843383174 42.497741575417,-91.055714637139 42.498354629448,-91.055221110681 42.498584028767,-91.054105311731 42.498358584616,-91.054384261462 42.497872097102,-91.054110676146 42.497713888964,-91.0548992456 42.497381650572,-91.055264026023 42.49751612823,-91.055628806447 42.497551725208,-91.055585891105 42.497674336867,-91.055843383174 42.497741575417)))",
"Area": 3.3,
"State": "IA",
"County": "Dubuque",
"CivilTownship": "New Wine",
"Plss": "89N 2W",
"Section": null,
"AreaUnit": {
"Ordinal": 7,
"Name": "Acres",
"Symbol": "ac",
"Type": "Area"
},
"Crop": {
"Id": "00000001-0000-0000-0000-000000000000",
"Name": "Alfalfa",
"PartnerId": null,
"CropStage": {}
},
"FieldEntranceWkt": [null],
"Farm": {
"Id": "0002fda6-0000-0000-0000-000000000000",
"Name": "Animal"
},
"Grower": {
"Id": "0002a442-0000-0000-0000-000000000000",
"Name": "Bob Loblaw",
"ContactName": null,
"Address": {
"Address1": "29769 CR 40",
"Address2": "",
"City": "Wakarusa",
"State": "IN",
"PostalCode": "46573"
},
"Email": "support@agsync.com",
"Fax": "877-923-5832",
"Phone": "877-923-5832",
"Cell": null
},
"PartnerBillingId": null
},
"Status": "Released",
"DispatchStatus": "None",
"Requester": {
"Id": "0000b039-0000-0000-0000-000000000000",
"Name": "Test Account - App",
"ContactName": "Bob Barker & Co",
"Address": {
"Address1": "555 Come On Down Ln",
"Address2": null,
"City": "Goshen",
"State": "IN",
"PostalCode": "46526"
},
"Email": "bob@priceisright.com",
"Fax": "877-923-5832",
"Phone": "877-923-5832",
"Cell": "877-923-5832"
},
"ServiceProvider": {
"Id": "0000b039-0000-0000-0000-000000000000",
"Name": "Test Account - App",
"ContactName": "Bob Barker & Co",
"Address": {
"Address1": "555 Come On Down Ln",
"Address2": null,
"City": "Goshen",
"State": "IN",
"PostalCode": "46526"
},
"Email": "bob@priceisright.com",
"Fax": "877-923-5832",
"Phone": "877-923-5832",
"Cell": "877-923-5832"
},
"CreatedDateTime": "2016-04-26T16:02:07.442537",
"ModifiedDateTime": "2016-04-26T16:02:56",
"Notes": [],
"Source": "",
"Hold": false,
"Rei": "00:00:00",
"OrderExtendedData": {
"TaskId": "0",
"ReferenceNumber": "0",
"OrderId": "264954"
},
"OrderTags": [],
"Services": [
{
"Id": "00000000-0000-0000-0000-000000000000",
"Operation": {
"Id": 7,
"Type": "AerialApp",
"Name": "Liquid Spray",
"VariableRate": false,
"DisplayName": "AerialApp (Liquid Spray - Flat)",
"IsLiquidOperation": true
},
"BillingStrategy": "None",
"Application": {
"Window": "5.00:00:00",
"DateTime": "2016-04-26T00:00:00",
"WindRestrictionStartDegree": 0.0,
"WindRestrictionEndDegree": 0.0
},
"ReleasedDateTime": "2016-04-26T16:02:07.539178",
"ScheduledDateTime": "0001-01-01T00:00:00",
"StagingLocation": {
"Id": 0,
"Name": null
},
"Personnel": {
"Id": 0,
"Name": null,
"LicenseNum": null,
"LicenseOwnerId": 0
},
"Equipment": {
"Id": 0,
"Name": null,
"Description": null,
"TachStart": 0,
"TachStop": 0,
"EngineTotalStarts": 0
},
"Mix": {
"Products": [
{
"Id": "0008907b-0000-0000-0000-000000000000",
"ProductId": "00002395-0000-0000-0000-000000000000",
"ActiveIngredient": null,
"UnitPrice": 0.0,
"BillingStrategy": "None",
"Name": "10-10-5",
"Density": {
"Density": 11.5,
"Uom": {
"Ordinal": 64,
"Name": "Pounds/Cubic Foot",
"Symbol": "lb/cuft",
"Type": "MassVolume"
}
},
"PartnerProductId": null,
"PartnerProductName": null,
"ProductType": "Fertilizer",
"MatterState": "Solid",
"IsCarrier": false,
"Supplier": {
"Id": "0000b039-0000-0000-0000-000000000000",
"Name": "Test Account - App"
},
"Rate": {
"Value": 10.0,
"Measure": {
"Ordinal": 10,
"Name": "Pounds/Acre",
"Symbol": "lb/ac",
"Type": "MassArea"
}
},
"Pests": []
},
{
"Id": "00000000-0000-0000-0000-000000000000",
"ProductId": "00001d9a-0000-0000-0000-000000000000",
"ActiveIngredient": null,
"UnitPrice": 0.0,
"BillingStrategy": "None",
"Name": "Water",
"Density": {
"Density": 8.34,
"Uom": {
"Ordinal": 62,
"Name": "Pounds/Gallon",
"Symbol": "lb/gal",
"Type": "MassVolume"
}
},
"PartnerProductId": null,
"PartnerProductName": null,
"ProductType": "None",
"MatterState": "Liquid",
"IsCarrier": true,
"Supplier": {
"Id": "0000b039-0000-0000-0000-000000000000",
"Name": "Test Account - App"
},
"Rate": {
"Value": 2.0,
"Measure": {
"Ordinal": 19,
"Name": "Gallons/Acres",
"Symbol": "gal/ac",
"Type": "VolumeArea"
}
},
"Pests": []
}
],
"Rate": {
"Value": 10.0,
"Measure": {
"Ordinal": 10,
"Name": "Pounds/Acre",
"Symbol": "lb/ac",
"Type": "MassArea"
}
},
"IsBlend": false
},
"Prescription": null
}
],
"TargetDate": "0001-01-01T00:00:00",
"AppliedWkt": null
},
"ReferenceId": "184e668b-a7b4-49d0-8373-25dba03b7b14",
"Sender": null,
"AccountId": "0002fbb6-0000-0000-0000-000000000000",
"OrganizationId": 100
}