# discount.created

> Discount code created: a discount code was made.

- **Topic:** `discount.created`, in the `Kaizena-Webhook-Topic` header and the body's `topic`
- **Sent to:** Your own endpoints, and apps
- **About:** the `discount`, under `data.discount`
- **Payload version:** 1

## Payload {#payload}

| Field | Type | Description |
|---|---|---|
| `id` | string (uuid) | The delivery's id: the same when a delivery is sent again, so a receiver can do it once. |
| `topic` | `"discount.created"` |   |
| `version` | `1` | The payload's version; a change to a shape raises it. |
| `store` | object |   |
| `store.slug` | string |   |
| `store.name` | string |   |
| `created_at` | string (date-time) | When the event happened. |
| `data` | object |   |
| `data.discount` | object |   |
| `data.discount.id` | string (uuid) |   |
| `data.discount.code` | string |   |
| `data.discount.kind` | one of `percent`, `fixed`, `free_shipping` |   |
| `data.discount.percent` | number or null |   |
| `data.discount.amounts` | map of string to number or null | For a fixed amount off: per market, in minor units of the market's currency. |
| `data.discount.starts_at` | string (date-time) or null |   |
| `data.discount.ends_at` | string (date-time) or null |   |
| `data.discount.usage_limit` | number or null |   |
| `data.discount.admin_url` | string | Where it is in the store's admin; empty in a sample. |

## Example {#example}

```json
{
  "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
  "topic": "discount.created",
  "version": 1,
  "store": {
    "slug": "your-store",
    "name": "Example"
  },
  "created_at": "2026-11-03T09:30:00Z",
  "data": {
    "discount": {
      "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
      "code": "SPRING10",
      "kind": "percent",
      "percent": 1,
      "amounts": {
        "example": 1
      },
      "starts_at": "2026-11-03T09:30:00Z",
      "ends_at": "2026-11-03T09:30:00Z",
      "usage_limit": 1,
      "admin_url": "https://kaizenaflow.com/admin/your-store"
    }
  }
}
```

Every value is an example of its type, not a real store's.

## Signature and retries {#signature}

Each delivery carries the [headers](https://docs.kaizenaflow.com/reference/webhooks#headers) every topic has and is signed: [check the signature](https://docs.kaizenaflow.com/reference/webhooks#signature) before you trust it. One not answered with a 2xx status is [tried again](https://docs.kaizenaflow.com/reference/webhooks#retries).

---

https://docs.kaizenaflow.com/reference/webhooks/discount-created · made from the API contract 1.57
