Removed

Implement the vehicles.removed webhook to know when a vehicle object is removed.

Vehicle objects will be removed when they are deleted by a payroll provider and are found to be missing during a periodic scan or when the account associated with the vehicle is deleted.

Event

vehicles.removed

Payload

AttributeTypeDescription
accountstring uuidID of the account the vehicle was removed for.
userstring uuidID of the user the account belongs to.
vehiclestring uuidID of the vehicle 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": ["vehicles.removed"],
       "secret": "<secret for signature verification>",
         "name": "vehicles.removed",
          "url": "https://webhook.site/url"}'
{
    "event": "vehicles.removed",
    "name": "A vehicle was removed",
    "data": {
        "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
        "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
        "vehicle": "4334r6e-a964-45eef6-b201-64464"
    }
}