# Transaction Events

The `transactions.created` event allows you to track E-Wallet (Account) movements. This includes reloads (credits), debits, refunds, or administrative adjustments.

### Payload Example

```json
{
  "event_type": "transactions.created",
  "event_id": "c47da84c4b93d3ae555510ae8583d552dc5787a52d9795ca6105155d33d9e0e6",
  "event_time": 1764349153470,
  "payload": {
    "customerId": 37732,
    "firstName": "b@b",
    "lastName": "b@b",
    "email": "b@b.fr",
    "class": "groupe31",
    "section": "",
    "subSection": "",
    "pricingRuleCode": "rt31",
    "accountPaymentType": "PREPAYMENT",
    "studentNumber": "43344344cc",
    "badgeNumber": "BHBH",
    "sourceUserId": 11,
    "sourceUserFirstName": "Super",
    "sourceUserLastName": "Admin",
    "sourceUserEmail": "useradmin1@innovorder.fr",
    "applyDate": "2025-11-28T16:59:13.000Z",
    "creationDate": "2025-11-28T16:59:13.000Z",
    "transactionId": 592858,
    "brandId": 39,
    "restaurantId": null,
    "restaurantName": null,
    "orderId": null,
    "externalOrderReference": null,
    "transactionAmount": 100,
    "transactionType": "1",
    "paymentOrigin": "1",
    "paymentOriginMetadata": null,
    "transactionStatus": "1",
    "transactionSource": "1",
    "externalUserReference": null,
    "currency": "EUR"
  }
}
```

### Payload Field Reference

| Field | Type | Description |
| --- | --- | --- |
| transactionId | Integer | Unique ID of the transaction. |
| transactionAmount | Integer | Amount in cents. |
| customerId | Integer | ID of the customer. |
| transactionType | Enum (String) | Type of movement (see table below). |
| transactionSource | Enum (String) | Origin of the transaction (see table below). |
| paymentOrigin | Enum (String) | Payment method used (see table below). |
| sourceUserId | Integer | ID of the user who performed the transaction (e.g. admin). |
| studentNumber | String | Customer's matricule/student ID. |
| badgeNumber | String | Customer's badge number. |

### Enum Reference

#### TransactionType

| Value | Meaning |
| --- | --- |
| 1 | CREDIT (Reload) |
| 2 | REFUND |
| 3 | DEBIT |
| 4 | CANCEL |
| 5 | DATE\_MODIFICATION |
| 6 | POST\_PAYMENT\_RESET |

#### TransactionStatus

| Value | Meaning |
| --- | --- |
| 1 | OK |
| 2 | REFUSED |
| 3 | CANCELLED |
| 4 | ERROR |
| 5 | PENDING |
| 6 | REQUIRES\_ACTION |

#### TransactionSource

| Value | Meaning |
| --- | --- |
| 1 | DASHBOARD |
| 2 | CEL |
| 3 | EWALLET\_RELOADER |
| 4 | RECEPTION |
| 5 | POS |
| 6 | KIOSK |
| 7 | TIME\_CHEF\_API |
| 8 | EWALLET\_KIOSK |
| 9 | VENDING\_MACHINE |
| 10 | SYSTEM |

#### PaymentOrigin

| Value | Meaning |
| --- | --- |
| 1 | CASH |
| 2 | CHECK |
| 3 | OTHER |
| 4 | CREDIT\_CARD\_ONLINE |
| 5 | CREDIT\_CARD |
| 6 | LUNCHEON\_VOUCHER |
| 7 | TIME\_CHEF |
