transaction.created
A draft transaction was created.
On this page
| Type | transaction.created |
|---|---|
| Cause | You created a transaction, or a checkout session or payment link created one. |
| Payload | The transaction object in data.object |
| Subscription | On by default for a new endpoint. |
When to use it
Rarely needed. The create response has the same data.
Payload
The fields of data.object. The envelope is the same for every event.
- idstring
The transaction ID,
txn_…. - objectstring
Always
transaction. - statusstring
The state of the transaction.
One of:
DRAFT,READY,PROCESSING,COMPLETED,PAST_DUE,CANCELED - currencystring
The ISO 4217 currency code.
- amountsobject
Amounts in minor units.
The buyer, when the transaction has one.
The first payment of the transaction, when there is one.
The checkout session of the transaction, when there is one.
Child attributes of
checkout- idstring
The checkout session ID,
cs_…. Not filled in this version.
- line_itemsarray of objects
The lines of the transaction. Empty for an amount-only transaction.
Child attributes of
line_items- idstring
The line ID,
txnitm_…. The product ID,
prod_….The price ID,
price_….- namestring
The product name.
The product description.
- quantityinteger
The quantity.
- tax_behaviorstring
Whether the unit amount includes tax.
One of:
inclusive,exclusive - unit_amountinteger
The unit amount, in minor units.
- subtotalinteger
Minor units.
- discountinteger
Minor units.
- netinteger
Minor units.
- taxinteger
Minor units.
- totalinteger
Minor units.
- metadataobject
Your own key-value pairs.
Your own reference for the transaction.
- created_atstring (date-time)
When the transaction was created.
When the transaction was paid.
- updated_atstring (date-time)
When the transaction last changed.
Example
{
"id": "whevt_7Kd2VpXn4TqB9mLzR",
"object": "event",
"type": "transaction.created",
"created_at": "2026-09-14T09:24:53Z",
"api_version": "2026-08-01",
"account_id": "acct_5Rn8bQ2xW7mK4tLzP",
"data": {
"object": {
"id": "txn_0F8mQ2rXbT4kL9pZa",
"object": "transaction",
"status": "DRAFT",
"currency": "EUR",
"amounts": {
"subtotal": 12000,
"discount": 0,
"net": 12000,
"tax": 2280,
"total": 14280,
"refunded": 0
},
"customer": {
"id": "cus_2Lp7XcN4vB8mQ1tKd",
"email": "ada@example.com",
"name": "Ada Example"
},
"payment": null,
"checkout": {
"id": "cs_6HvB2nQx9LmT4kWpR",
"client_reference_id": null
},
"line_items": [
{
"id": "txnitm_8QmZ3vK1pX6nT2bLw",
"product_id": "prod_5Tq8LmN2xB7vK4pRz",
"price_id": "price_4Wm9TqLz2Xb7KdN8r",
"name": "Team plan, annual",
"description": null,
"quantity": 1,
"tax_behavior": "exclusive",
"unit_amount": 12000,
"subtotal": 12000,
"discount": 0,
"net": 12000,
"tax": 2280,
"total": 14280
}
],
"metadata": {
"order_ref": "A-1042"
},
"external_reference": "A-1042",
"created_at": "2026-09-14T09:21:07Z",
"paid_at": null,
"updated_at": "2026-09-14T09:24:51Z"
}
}
}Other transaction events: transaction.ready, transaction.processing, transaction.completed, transaction.canceled, transaction.past_due, transaction.partially_refunded, transaction.refunded, transaction.adjusted.