Updated

Implement the pay_allocations.updated webhook to know when a user updates a pay allocation.

The pay_allocations.updated webhook is triggered when:

  • Argyle updates user’s pay allocation based on details in your DDS configuration after it is confirmed by the user.
  • Periodic scans detect that the user or employer updated an existing pay allocation.

Event

pay_allocations.updated

Payload

AttributeTypeDescription
accountstring uuidID of the parent account.
userstring uuidID of the user the account belongs to.
pay_allocationstring uuidID of the pay allocation that was updated.

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.updated"],
       "secret": "<secret for signature verification>",
         "name": "pay_allocations.updated",
          "url": "https://webhook.site/url"}'
{
    "event": "pay_allocations.updated",
    "name": "A pay allocation was updated",
    "data": {
        "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
        "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
        "pay_allocation": "4334r6e-a964-45eef6-b201-64464"
    }
}