Simulate wallet webhook
Simulates and tests a webhook so you can view its response. A transferId, pendingApprovalId, txRequestId or txHash is required, unless usePlaceholderData is true. Requires admin permission on the wallet.
Path Params
-
coinstring requiredA cryptocurrency or token ticker symbol -
walletIdstring requiredThe ID of the wallet -
webhookIdstring requiredThe ID of the webhook to simulate
Query Params
-
prevIdstringThe ID returned asnextBatchPrevIdby a previous response, to fetch the next page of notifications -
limitstring numberMaximum number of notifications to return -
hashstringReturn only the notifications for this transaction hash
Body Params
object
Simulate V2 Wallet Webhook Request Body
The request body for simulating a wallet webhook: exactly one of the identifiers below, chosen by the type of the webhook, or the flag to use placeholder data.
-
transferIdstringThe ID of a transfer on the specified wallet.
Must be provided if the webhook is of type
transfer. -
pendingApprovalIdstringThe ID of a pending approval on the specified wallet.
Must be provided if the webhook is of type
pendingapproval. -
txRequestIdstringThe ID of a transaction request on the specified wallet.
Must be provided if the webhook is of type
txRequestortxRequestTransaction. -
txHashstringThe hash of a specific transaction for the specified coin.
Must be provided if the webhook is of type
transactionortransaction_finality_on_l1. -
usePlaceholderDatabooleanWhether the simulated webhook should use generated placeholder data.
When true, no real transfer, pending approval, transaction request or transaction is needed.
Responses
200
OK
Response Body
object
-
webhookNotificationsarray of objects requiredwebhookNotifications object
-
idstring required -
idempotencyKeystringUnique ID that can be used to de-duplicate notifications. -
typestringThe type of event that created the notification. -
walletstringThe ID of the wallet the notification belongs to. -
enterprisestringThe ID of the enterprise the notification belongs to. -
organizationstringThe ID of the organization the notification belongs to. -
bankAccountstringThe ID of the bank account the notification belongs to. -
urlstring uri -
hashstringA transaction hash for transactions, or a block hash for block notifications. -
coinstringA cryptocurrency or token ticker symbol. -
coinChainstringThe chain the coin belongs to. -
transferstringThe ID of the transfer the notification belongs to. -
statestringDelivery state of the notification, for exampleneworprocessed. -
simulationbooleanWhether the notification was created by a simulation. -
retriesnumberThe number of retries that have been attempted for this notification. -
webhookstringThe ID of the webhook that created the notification. -
updatedAtstring date-time -
nextAttemptstring date-time -
versionnumber2 for coins running on API v2. -
allowBlockedHostsbooleanWhether the notification may be sent to blocked hosts. Admin only. -
heightToConfirmnumberThe block height at which the notification is sent. Admin only. -
payloadstringThe payload that was sent to the URL. Admin only. -
responseobjectThe response that the URL returned. Admin only.response object
-
codenumber or string -
typestring -
bodystring -
errorstring
-
-
-
nextBatchPrevIdstringThe ID to pass asprevIdto fetch the next page. Present only when more notifications exist.
400
Bad Request
Response Body
ONE OF
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
-
namestring enum requiredInvalidWalletId -
contextobject requiredcontext object
-
idstring required
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
401
Unauthorized
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
404
Not Found
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id