Skip to main content

Customer Change

Represents a customer that is created, changed, or deleted.

Event Name

customer_changed

Payload

KeyTypeDescription
ChangeTypestringThe type of change (created, updated, deleted).
CustomerCustomerThe customer info that was changed.
ReferenceIdGuidThe id of the event.
SenderSenderInformation regarding the initiator of the event.
AccountIdGuidThe id of the affected Account.
OrganizationIdintThe 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
}