AgreementCancelled

FieldTypeDescription
eventstringThe name of the event
transactionstringWill always be blank since there is no onchain transaction
networkIdnumberThe ID of the network the event occurred on - 1, 5, 137, 80001 etc
networkNamestringThe name of the network (e.g., Ethereum, Goerli, Polygon, etc.)
contractAddressaddressThe address of the contract the event occurred in
emailstringThe email address of the subscriber (if any)
companystringYour company name
parentstringThe name of the parent company (if any)
entityIdstringThe ID of the entity
agreementIdstringThe agreement ID that was canceled
subscriberstringThe user's wallet address
agreementStartDatenumberThe start date of the agreement - Unix time in seconds
eventDatenumberThe date the subscription was canceled - Unix time in seconds
itemIdstringThe ID of the item
itemNamestringThe name of the item
refIdstringThe reference ID passed in from checkout
cancellationReasonstringOptional. Reason given for cancellation. May be system generated as well.

- “Cancelled by Stripe” - Loop received a cancellation notification from Stripe and then emitted the "ScheduledAgreementCancel" event. This will occur when a subscription is cancelled in Stripe.
- “Canceled due to uncollectible payment” - If the product is canceled via Loop's auto-cancel feature.

Example payload:

{
      event: "AgreementCancelled",
      transaction: "-",
      networkId: 31337,
      networkName: "local",
      contractAddress: "0xfb255E7d519872D8E9E7BE8C79CE4b98444209Ce",
      email: "-",
      company: "Coin Currency LLC 94 48a916fe-c881-49aa-922e-53265185a11a (79faed4d-6606-455f-a8d8-d358c001d617)",
      parent: "-",
      entityId: "79faed4d-6606-455f-a8d8-d358c001d617",
      agreementId: "43bc9a0b-86b1-4a0a-8340-aef5585e2cd5",
      subscriber: "0x9E76932D7661C976a630aB9d06E45c0dc510A4b1",
      agreementStartDate: 1701457297,
      eventDate: 1701457297,
      itemId: "eb39844c-b5c7-4a42-a595-259e0fd9e6e2",
      itemName: "My Subscription",
      refId: "my-customer-ref",
      cancellationReason: "No longer need product"
}