Card.registered
This event is dispatched when a card is registered.

Example payload

{
"id": 583,
"object": "event",
"api_version": "3.2",
"webhook_version": "1.0",
"created_at": "2021-04-11T16:36:10.000000Z",
"type": "card.registered",
"data": {
"object": {
"object": "card",
"id": 356,
"balance": 1000,
"card_reference": "12345",
"pin": "1234",
"expiry_time": "2021-03-27T23:59:59.000000Z",
"validity_start_time": "2021-03-12T00:00:00.000000Z",
"personal_message": null,
"qr_code_url": "https://apimytoggleio-dev.airship.co.uk/qrcodegenerator/12345",
"account_id": 1,
"purchaser_contact": {
"object": "contact",
"id": 705,
"email": "[email protected]",
"first_name": "Smith",
"last_name": "Cole",
"phone_number": null,
"marketing_opt_in_at": null
},
"product": {
"object": "product",
"id": 4,
"name": "Gift Card",
"short_description": "Gift Card",
"long_description": "Gift Card",
"image": {
"object": "image",
"id": 13,
"url": "https://apimytoggleio-dev.airship.co.uk//storage/images/1_1616686008.png"
},
"product_type": {
"object": "product_type",
"id": 1,
"name": "Gift Card"
}
},
"contact": {
"object": "contact",
"id": 708,
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"phone_number": null,
"marketing_opt_in_at": "2021-04-11T16:36:10.000000Z"
},
"currency": {
"object": "currency",
"id": 1,
"name": "Sterling",
"denomination": 100,
"iso_currency_code": "GBP"
},
"card_alias": null
}
}
}
Copy link