Type Definitions
Type Definitions
Crypto Event Types
Deposit Events
Deposit events use the on-chain transaction hash as
transaction_id, so the same deposit always carries the same ID. Use it to deduplicate retried deliveries.
Deposits below the minimum (1 unit of a stablecoin, or $5 worth of any other asset) aren’t credited and don’t send deposit events.
Transaction Events
Card Events
KYC Events
Webhook Payload Examples
All payloads share the same envelope structure:deposit.confirmed
transaction.failed
transaction.settled
Signature Verification
Every webhook delivery is signed with a timestamp to prevent replay attacks. Two headers are sent:
The HMAC is computed over
"${timestamp}.${JSON.stringify(payload)}":
Setting Up Webhooks
All events — deposits, swaps, card lifecycle, card transactions, customer funding — are delivered through a single webhook service. Register once atPOST /v1/webhook/create-webhook and subscribe to any combination of event types.
string
required
The HTTPS endpoint to receive events.
array
Event slugs to subscribe to. Pass
["*"] (or omit) to receive all events.string
Optional label for this subscription.
Response
List card webhooks
GET/yativo-card/webhooks
Get a card webhook (includes secret)
GET/yativo-card/webhooks/:webhookId
Update a card webhook
PUT/yativo-card/webhooks/:webhookId
"enabled": false to pause delivery without deleting the subscription.
Delete a card webhook
DELETE/yativo-card/webhooks/:webhookId
Rotate the signing secret
POST/yativo-card/webhooks/:webhookId/rotate-secret
Generates a new secret and invalidates the old one immediately.
Delivery history
GET/yativo-card/webhooks/:webhookId/deliveries
Query params: limit, offset, status, eventType
/yativo-card/webhooks/deliveries/all — All deliveries across all subscriptions.
Retry a failed delivery
POST/yativo-card/webhooks/deliveries/:deliveryId/retry

