# purchase_created

> For the complete machine-readable documentation index, see [llms.txt](https://apidocs.chargebee.com/llms.txt).


Triggered when a purchase resource is created successfully

## Event Schema

- `id` (string)
  Unique identifier for the event
- `occurred_at` (integer (unix timestamp))
  Timestamp when the event occurred
- `source` (string)
  Source that triggered the event (e.g., admin_console, api, scheduled_job)
- `object` (string)
  Always "event" for webhook events
- `api_version` (string)
  API version used for this event
- `event_type` (string)
  Type of the webhook event
- `webhook_status` (string)
  Status of the webhook delivery

- `content` (object)
  Content of the event

  - `purchase` (object)
    The purchase object affected by this event

## Sample Payload

```json
{
    "id": "ev_purchasecl6g7l6",
    "occurred_at": 1788418921,
    "source": "admin_console",
    "object": "event",
    "api_version": "v2",
    "event_type": "purchase_created",
    "webhook_status": "not_applicable",
    "content": {
        "purchase": {
            "created_at": 1651662622,
            "customer_id": "__test__rHsiT4rY1zmz",
            "id": "__test__rHsiT4rY2hC1A",
            "invoice_ids": [
                "__demo_inv__1"
            ],
            "object": "purchase",
            "...": "..."
        }
    }
}
```

