Skip to content

Instantly share code, notes, and snippets.

@vovafeldman
Last active August 31, 2020 15:20
Show Gist options
  • Save vovafeldman/e27df1fd6d5785f980e4cc5765496e38 to your computer and use it in GitHub Desktop.
Save vovafeldman/e27df1fd6d5785f980e4cc5765496e38 to your computer and use it in GitHub Desktop.

Events:

  • install.trial.cancelled
  • subscription.cancelled

Event payload:

{
  ...
  "data": {
    "trial_plan_id": 123,
    "days_after"   : 6,
    "reason_ids"   : "1,2,3", // Set to `null` when empty
    "reason"       : "If other reason selected, the free text goes here"  // Set to `null` when empty
  }
  ...
}

Reason IDs mapping:

  1. ID = 1: I want to control when I pay.
  2. ID = 2: I'm not sure I want to keep it.
  3. ID = 3: I never/seldom use it.
  4. ID = 4: It was too difficult to set up.
  5. ID = 5: It didn't have the features I was looking for.
  6. ID = 6: It was too slow and/or buggy.
  7. ID = 7: The cost was too high.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment