The common part of the message will always define what kind of event is to be expected.
COMMON PART of the message
{
"id":34,
"event_code": " Event code ",
"create_date": " Timestamp of the event ",
"company_id": " Your company id in SimplePin database ",
"...": " ... ",
}
Based on the event_code, you might receive a different message. The following is the most common example of the webhook's notification in JSON format:
INV-PAID-CCARD. Invoice paid by customer using credit card
{
"id":34,
"event_code":"INV-PAID-CCARD",
"create_date":1547149419560,
"company_id":10,
"cc_profile_id":2,
"cc_profile_version":0,
"customer_name":"John Smith",
"policy":"POL003",
"invoice_id":4899,
"invoice_version":0,
"invoice_number":"INV001",
"amount":1282.05,
"card_last_digits":"4572",
"currency_code":"CAD"
}