This webhook event is triggered when a card is tokenized and stored as a payment method.
Headers
-
The unique message id for this delivery. Constant across retries of the same message.
-
The time the message was sent, as a Unix timestamp in seconds. Reject stale timestamps to protect against replay attacks.
-
One or more space-delimited signatures in the form
v1,<base64 signature>— an HMAC-SHA256 over{svix-id}.{svix-timestamp}.{raw request body}keyed with the endpoint's signing secret. See the Webhook Configuration section for verification details.
Request example
{
"event": {
"id": "evt_01JS21X856RR8R69GV5F17XK9C",
"type": "token.created",
"timestamp": "2025-04-16T14:30:00Z"
},
"originalResponse": {
"id": "trx_01J2F0ZJ2JW5B63CJFPXRGAB1S",
"timestamp": "2025-05-27T18:49:31Z",
"type": "Auth",
"status": "Completed",
"accountHolder": {
"id": "aho_01JRZPRGFF4J2SZC3HMDBYEN2J",
"externalId": "usr_1234567890123",
"contact": {
"name": "John Doe",
"countryCode": "US",
"zipCode": "60606",
"address": "300 S Wacker Dr",
"state": "IL",
"city": "Chicago"
}
},
"paymentMethod": {
"id": "pmt_trm_01JRZPTMTBN41PC3VPQNZ5T3HF",
"type": "Physical",
"currency": "USD",
"description": "Main Store Terminal"
},
"referenceId": "ref_add_card_12345",
"resultCode": 0,
"resultText": "APPROVED",
"requestedAmount": 0,
"approvedAmount": 0,
"transactionResponses": [
{
"responseCode": 1,
"authCode": "123456",
"amountApproved": 0,
"paymentMethod": {
"id": "pmt_tkn_01JRZPRGFF4J2SZC3HMDBYEN2J",
"type": "Token",
"currency": "USD",
"description": "Token for John Doe's Visa",
"billingContact": {
"name": "John Doe",
"countryCode": "US",
"zipCode": "12345",
"address": "123 Main St",
"state": "NY",
"city": "Anytown"
},
"cardType": "VISA",
"maskedCardNumber": "************0011",
"cardExpDate": "1225"
},
"cardType": "VISA",
"avsResult": "Y",
"cvvResult": "M",
"accountType": "Credit",
"hostResponseText": "APPROVED 00"
}
]
}
}
Response examples (200)
{
"value": {}
}