Enhanced webhook payloads
10 days ago by [email protected]
Webhook payloads associated with all Pinwheel solutions now have new fields that make it easier to track and decision on the customer usage data returned by webhooks.
In summary, the new fields are as follows:
- The
account.addedwebhook now gets aplatform_typefield that conveys the kind of account the user connected to: apayrollplatform, a bill-switchmerchant, ataxplatform, or atime_and_attendanceplatform. - Many webhooks now get both
platform_idandplatform_namewhich previously were only available in theaccount.addedwebhook. - Bill Switch and Bill Detection webhooks now get a
detection_methodfield that conveys how we detected a bill or subscription:external_plaidfor when a user connects an external account;first_partyfor when we detect it from transactions you upload to us directly; andmanualfor when a user manually adds a bill. - Bill Switch webhooks also get a
bill_idthat corresponds with theidfield of Bill Detection webhooks. - We've also added new fields in the Bill Switch and Bill Detection webhooks for "long tail" merchants. For more details on that, see our implementation guide section on long tail merchants.
See the API Reference for the detailed technical specs for the new fields.