Skip to content

Implement Event Ticket Purchase API ✅ #52

@BigBen-7

Description

@BigBen-7

Description:
Develop the Event Ticket Purchase API to allow users to buy multiple tickets for an event by selecting the quantity they want to purchase. Users will provide their billing and address details, and upon successful payment, a receipt will be generated.
Core Features:
Allow users to purchase one or multiple tickets for an event.
Capture billing and address details during checkout.
Confirm payment before completing the transaction.
Generate a receipt after a successful purchase.
Backend Implementation:
Implement the following endpoints with proper validation and authentication:
POST /tickets/purchase – Purchase one or multiple tickets for an event.
GET /tickets/receipt/{orderId} – Retrieve the receipt for a confirmed purchase.
Required Fields for Ticket Purchase:
User ID (Authenticated user purchasing the ticket).
Event ID (The event for which the ticket is being purchased).
Ticket Quantity (User selects how many tickets they want).
Total Price (Calculated based on ticket price and quantity).
Billing Details:
Full Name
Email
Phone Number
Address Details:
Country
State
City
Street
Postal Code
Payment Details (Handled securely through a payment gateway).
Receipt Details:
Receipt ID.
User Details (Name, Email).
Event Details (Name, Date, Location).
Ticket Details (Quantity, Price Per Ticket, Total Price).
Total Amount Paid.
Transaction Date.
Requirements:
Ensure authentication for users making purchases.
Validate ticket quantity to ensure it does not exceed availability.
Use a payment gateway for secure transactions.
Generate a digital receipt for confirmed purchases.
Follow best security practices for handling transactions.
Acceptance Criteria:
Users should be able to select how many tickets they want to buy.
Payment should be verified before confirming the order.
A receipt should be generated after a successful purchase.
The system should track and deduct ticket availability after purchase.
All transaction details should be securely stored.
References:
API Best Practices
Secure Payment Processing Docs
Best Practices for Generating Digital Receipts

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions