Granular Subscription Update Events

When subscribing to the new beta SUBSCRIPTION_UPDATE_GRANULAR event type, you'll be able to receive more granular webhook data for the following fields:

  • status
  • nextBillingDate
  • deliverybillingPolicy

This new webhook expands on the standard Stay webhook payload by including an updateDetails array with old and new values for the fields listed above (if they changed). An example is show below:

  ...
  "updateDetails": [
    {
      "field": "status",
      "oldValue": "CANCELLED",
      "newValue": "ACTIVE",
    },
    {
      "field": "nextBillingDate",
      "oldValue": "YYYY-MM-DDT00:00:00.000Z",
      "newValue": "YYYY-MM-DDT00:00:00.000Z",
    }
  ]
}