Customer Change
Represents a customer that is created, changed, or deleted.
Event Name
customer_changed
Payload
Key | Type | Description |
---|---|---|
ChangeType | string | The type of change (created, updated, deleted). |
Customer | Customer | The customer 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",
"Customer": {
"Id": "12345678-0000-0000-0000-000000000000",
"AccountId": "89abcdef-0000-0000-0000-000000000000",
"Name": "Bob Loblaw",
"BusinessName": "",
"Address": {
"Address1": "29769 CR 40",
"Address2": "",
"City": "Wakarusa",
"State": "IN",
"PostalCode": "46573"
},
"ContactName": "",
"Email": "support@agsync.com",
"Fax": null,
"Phone": "877-923-5832",
"Cell": "",
"Status": true,
"CreatedDateTime": "0001-01-01T00:00:00",
"ModifiedDateTime": "2016-04-26T17:52:39.8603249+00:00",
"PartnerCustomerId": null
},
"ReferenceId": "ccc5cffe-eca5-4957-b3a6-90b34404aa35",
"Sender": {
"Username": null,
"UserId": 1234
},
"AccountId": "0002fbb6-0000-0000-0000-000000000000",
"OrganizationId": 100
}