# n8n-nodes-jegyhu-api

An n8n community node for integrating with the Jegy.hu ticketing API.

## Installation

Install the package in your n8n instance:

```bash
npm install n8n-nodes-jegyhu-api
```

## Configuration

1. Create a Jegy.hu API credential in n8n
2. Add your API key and base URL (e.g., `https://mobiletest.jegy.hu/api`)

## Available Operations

- **Get Event List** - Retrieve events with pagination
- **Get Event Capacity Report** - Get capacity information for events
- **Get Sector Prices** - Get pricing information for event sectors
- **Add Ticket to Basket** - Add tickets to shopping basket
- **Get Basket** - Retrieve basket contents
- **Start Transaction** - Initiate payment process
- **Get Transaction Status** - Check transaction status
- **Get Audit Seats** - Get seat layout for auditorium events
- **Get Audit Free Tickets** - Get available tickets for seated events

## Example Usage

### Basic Event Listing
- Operation: Get Event List
- Venues: 40
- Per Page: 50
- Page: 1

### Adding Tickets to Basket
- Operation: Add Ticket to Basket
- Venue ID: 40
- Net Event ID: 4406
- Net Program ID: 4520
- Tickets: Configure sector ID, price category, price, and quantity

### Starting a Transaction
- Operation: Start Transaction
- Basket ID: (from previous basket operation)
- Delivery Option: PDF
- Payment Option: PAYUHU
- Buyer Data: Complete customer information
- Return URLs: Success and failure redirect URLs

## License

MIT