Removed

Implement the pay_allocations.removed webhook to know when a user removes a pay allocation.

The pay_allocations.removed webhook is triggered when the user removes a pay allocation in Link or when you remove a pay allocation by calling the API. Learn more about removing pay allocations in the Pay Distribution guide.

Event

pay_allocations.removed

Payload


account string uuid

ID of the parent account.


user string uuid

ID of the user the account belongs to.


pay_allocation string uuid

ID of the pay allocation that was removed.


Examples

curl -X POST https://api.argyle.com/v1/webhooks \
  -u api_key_id:api_key_secret \
  -H "Content-Type: application/json" \
  -d '{"events": ["pay_allocations.removed"],
       "secret": "<secret for signature verification>",
         "name": "pay_allocations.removed",
          "url": "https://webhook.site/url"}'
{
  "event": "pay_allocations.removed",
  "name": "A pay allocation was removed",
  "data": {
    "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
    "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
    "pay_allocation": "4334r6e-a964-45eef6-b201-64464"
  }
}