# Invoicing and service fees
These operations cover TMC service fees and invoice generation for the air booking.
**Webhooks used:** [PNR_V3](/openapi/webhookeventapi/webhooks/paths/pnr_v3/post), [SERVICE_CHARGE](/openapi/webhookeventapi/webhooks/paths/service_charge/post).
| Step | Operation | Event trigger | Context |
| --- | --- | --- | --- |
| 1 | `SERVICE_ FEE` | When a TMC service fee is charged for the booking. | A fee has been calculated and charged by the TMC for this booking.
The charge depends on the contract with the TMC.
**Example:** An organization's TMC charges a $25 booking fee per air booking.
After the booking is confirmed, the [SERVICE_CHARGE](/openapi/webhookeventapi/webhooks/paths/service_charge/post) webhook is triggered with `operation` as `SERVICE_FEE`.
This event payload contains the fee details. |
| 2
| `INVOICE_ GENERATED`
| When an invoice document is created for the booking, service fee, or refunds.
| Separate invoices are generated for the flight fare, service fees, and refunds.
You will receive one event for each invoice document created.
A typical booking generates at least 2 events (one for the flight fare invoice, one for the service fee invoice).
This event is also generated for:
- credit notes generated after refunds or voids.
- penalties deducted for non-refundable tickets.
**Example:** After a flight is ticketed,
2 events are triggered: (1) an `INVOICE_GENERATED` operation covering the flight fare,
and (2) an another `INVOICE_GENERATED` operation covering the TMC service fee.
Each event includes the invoice number so your accounting system can retrieve the individual documents.
|
## Invoicing and service fee flow diagram
```mermaid
flowchart LR
subgraph invoicing["Invoicing and service fees"]
A(["Booking ticketed"]) --> B["SERVICE_FEE
―――――――――――
TMC service fee
charged for this booking"]
A --> C["INVOICE_GENERATED
―――――――――――
Flight fare invoice created."]
B --> D["INVOICE_GENERATED
―――――――――――
Service fee invoice created."]
end
style A fill:#f0f0f0,stroke:#999
style B fill:#f0f0f0,stroke:#999
style C fill:#FF9800,color:#fff
style D fill:#FF9800,color:#fff
```