# store.cod_declined

HTML: https://www.app2email.com/docs/api/webhooks/store.cod_declined · Index: https://www.app2email.com/docs/api/llms.txt

A customer tapped Cancel on the cash-on-delivery confirmation of their order.

Group: Store messages. Header `X-App2email-Event: store.cod_declined`. Inside the envelope `{id, type, created, number, test?, data}` ([envelope, headers, signature](https://www.app2email.com/docs/api/webhooks.md)). Every webhook of the number gets every number event: filter by `type`.

## data

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `data.platform` | string |  | one of: `shopify`, `woo` |
| `data.store` | string |  |  |
| `data.order` | object |  |  |
| `data.order.id` | string |  | The order's id in the store. |
| `data.order.name` | string |  |  |
| `data.contact` | string |  | The customer's WhatsApp number (digits). |
| `data.order_change` | string |  | What was done to the order: tagged (Shopify: the cod-confirmed / cod-declined tag; WooCommerce: a private order note), cancelled (the setting cancel_on_decline), failed (order_change_error says why).; one of: `tagged`, `cancelled`, `failed` |
| `data.order_change_error` | string |  |  |
| `data.log_id` | integer |  |  |
| `data.timestamp` | string |  |  |

## Samples

### cancelled

```json
{
  "id": "evt_Sto3k9m2Lw8Rt5Yp1Zs03",
  "type": "store.cod_declined",
  "created": "2026-11-19T01:00:00.000Z",
  "number": "4976659348270",
  "data": {
    "platform": "woo",
    "store": "Bloom Store",
    "order": {
      "id": "1042",
      "name": "#1042"
    },
    "contact": "61412345678",
    "order_change": "cancelled",
    "order_change_error": null,
    "log_id": 382,
    "timestamp": "2026-11-19T01:00:00.000Z"
  }
}
```

Send it to your URL: https://www.app2email.com/docs/api/webhooks/tester?type=store.cod_declined
