https://api.snaptrade.com/api/v1/accountDeleted
A webhook that is sent whenever an existing account under a brokerage authorization is deleted.
webookId
string
clientId
eventTimestamp
userId
1import { Snaptrade } from "snaptrade-typescript-sdk";2 3const snaptrade = new Snaptrade({4 clientId: "PARTNER_CLIENT_ID",5 consumerKey: "CONSUMER_KEY",6});7 8const response =9 await snaptrade.webhooks.accountDeleted({10 webookId:11 "06fe1fd7-fc50-43a7-b564-8a2c5f3bab44",12 clientId: "WEALTHYCHIPMUNK",13 eventTimestamp: "2022-01-21T20:11:19.217Z",14 userId: "external_user@test.com",15 });16console.log(response.data);