Order.send_cancellation_email
This event is dispatched whenever an order cancellation email should be sent.
Example payload
{
"id": 589,
"object": "event",
"api_version": "3.2",
"webhook_version": "1.0",
"created_at": "2021-04-11T16:48:12.000000Z",
"type": "order.send_cancellation_email",
"data": {
"object": {
"object": "order",
"id": 346,
"postage_value": 0,
"value": 1000,
"account_id": 1,
"transaction": {
"object": "transaction",
"id": 612,
"value": 0,
"transaction_discount_value": 1000,
"account_id": 1,
"currency": {
"object": "currency",
"id": 1,
"name": "Sterling",
"denomination": 100,
"iso_currency_code": "GBP"
},
"unit": null
},
"receipt_email": {
"object": "contact",
"id": 695,
"email": "john@example.co.uk",
"first_name": "John",
"last_name": "Smith",
"phone_number": null,
"marketing_opt_in_at": null
},
"line_items": [
{
"object": "line_item",
"id": 618,
"personalised_message": null,
"value": 1000,
"line_item_type": {
"object": "line_item_type",
"id": 1,
"name": "Sale"
},
"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"
}
},
"card": {
"object": "card",
"id": 351,
"balance": 0,
"card_reference": "6301190019865780288",
"pin": "585052",
"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/6301190019865780288",
"account_id": 1,
"purchaser_contact": {
"object": "contact",
"id": 695,
"email": "john@example.co.uk",
"first_name": "John",
"last_name": "Smith",
"phone_number": null,
"marketing_opt_in_at": null
},
"contact": null
},
"line_item_fulfilment": {
"object": "line_item_fulfilment",
"id": 346,
"tracking_reference": null,
"postage_type": null,
"address": null,
"contact": {
"object": "contact",
"id": 696,
"email": "john@example.co.uk",
"first_name": null,
"last_name": null,
"phone_number": null,
"marketing_opt_in_at": null
},
"fulfilment_method": {
"object": "fulfilment_method",
"id": 1,
"name": "Email"
}
}
}
]
}
}
}
Last updated