Skip to content

Orders & Tickets

Track and manage all customer orders and ticket entries.

Orders Management

Route

/admin/orders

Overview

The Orders page provides a centralized view of all customer transactions, ticket purchases, and instant win claims.

Page Tabs

The orders page has two main tabs:

  • Orders - View and manage all customer orders
  • Refunds - Monitor and manage refund requests (see Refunds Dashboard below)

Dashboard Statistics

Order Statistics

  • Total Orders - All-time order count
  • Total Revenue - All-time revenue
  • Completed Orders - Successfully processed
  • Last 24 Hours - Recent activity

Orders Table

Orders Table

Order Information

Each order displays:

  • Order ID - Unique identifier
  • Customer - Name and email
  • Amount - Order total
  • Status - Payment status
  • Date - Order timestamp
  • Instant Wins - Number of instant prizes won
  • Actions - View details, refund, etc.

Payment Status

Orders can have these statuses:

  • Pending - Payment initiated but not confirmed
  • Processing - Payment being processed
  • Completed - Payment successful
  • Failed - Payment failed
  • Refunded - Order refunded to customer
  • Cancelled - Order cancelled

Order Filters

Filter Options

  • Payment Status - Filter by status
  • Date Range - Filter by date
  • Competition - Filter by specific competition
  • Customer - Search by email or name
  • Amount Range - Filter by order value

Search orders by:

  • Order ID
  • Customer email
  • Customer name
  • Transaction ID

Order Details

Order Details

Click an order to view full details:

Customer Information

  • Name and email
  • Phone number
  • Billing address
  • Order history

Order Items

  • Competition name
  • Ticket numbers
  • Quantity
  • Unit price
  • Total price

Payment Information

  • Payment method
  • Transaction ID
  • Payment provider
  • Payment date/time
  • Payment status
  • Order Source - Marketing attribution (see Marketing Attribution below)

Order Timeline

View complete order lifecycle with timestamps:

  • Order Created - When order was initiated
  • Payment Initiated - When payment process started
  • Payment Completed - When payment was confirmed
  • Tickets Issued - When tickets were generated
  • Instant Wins Claimed - When prizes were revealed (if applicable)

Ticket Entries

  • All purchased ticket numbers
  • Entry status
  • Competition details
  • Draw date (if applicable)

Instant Wins

If order includes instant wins:

  • Prize name
  • Prize value
  • Claim status
  • Fulfillment status

Actions

Refund Order

  1. Click order to view details
  2. Click "Refund" button
  3. Confirm refund amount
  4. Enter refund reason
  5. Process refund
  6. Customer notified automatically

Note: Refunding releases ticket numbers back to available pool.

View Customer Profile

  1. Click customer name in order
  2. View customer details:
    • All orders
    • Total spent
    • Competition entries
    • Wins
    • Account status

Resend Confirmation

  1. Click order details
  2. Click "Resend Confirmation"
  3. Email sent to customer

Export Order Data

  1. Apply desired filters
  2. Click "Export"
  3. Choose format (CSV, Excel, PDF)
  4. Download file

Ticket Management

View all tickets across all orders:

  • Ticket number
  • Competition
  • Purchase date
  • Customer
  • Status
  • Entry validity

Ticket Status

  • Available - Not yet purchased
  • Reserved - In customer cart
  • Purchased - Paid and confirmed
  • Refunded - Ticket refunded
  • Cancelled - Order cancelled

Payment Methods

Track orders by payment method:

  • Card - Credit/debit card
  • PayPal - PayPal account
  • Apple Pay - Apple Pay
  • Google Pay - Google Pay

View statistics per payment method:

  • Total orders
  • Total revenue
  • Average order value
  • Success rate

Instant Win Orders

Instant Win Orders

View orders containing instant wins:

  • Filter to show only instant win orders
  • See prize details
  • Track fulfillment status
  • Export instant win list

Revenue Analytics

Daily Revenue

  • Today's revenue
  • Yesterday comparison
  • Trend indicator
  • Revenue chart

Monthly Revenue

  • Current month total
  • Month-over-month growth
  • Daily breakdown
  • Peak days

Revenue by Competition

See which competitions generate most revenue:

  • Competition name
  • Total revenue
  • Number of orders
  • Average order value

Failed Orders

Failed Orders

Monitor and troubleshoot failed payments:

Failed Order Information

  • Failure reason
  • Payment provider error
  • Customer details
  • Retry attempts

Actions for Failed Orders

  • Contact customer
  • Retry payment
  • Cancel order
  • Mark as resolved

Refunds Dashboard

Refunds Dashboard

The Refunds tab provides a dedicated view for monitoring and managing all refund requests.

Accessing the Refunds Dashboard

  1. Navigate to /admin/orders
  2. Click the "Refunds" tab
  3. View pending refund count badge on the tab

Refunds Table

Each refund displays:

  • Refund ID - Unique refund identifier
  • Order - Link to original order
  • Customer - Customer name and email
  • Amount - Refund amount with breakdown
  • Status - Current refund status
  • Created - When refund was requested
  • Duration - Time since creation (for pending refunds)

Refund Status

Refunds can have these statuses:

  • Pending - Refund requested, awaiting processing
  • Approved - Refund approved, processing payment return
  • Completed - Refund fully processed and returned to customer
  • Failed - Refund processing failed

Status Filtering

Filter refunds by status:

  1. Use the status dropdown filter
  2. Select desired status (Pending, Approved, Completed, Failed)
  3. View filtered results

Pending Refund Alerts

The dashboard highlights refunds that may need attention:

  • Pending badge - Shows count of pending refunds on tab
  • Duration warning - Refunds pending for more than 10 minutes are highlighted
  • Use these indicators to prioritize refund processing

Refund Breakdown

Each refund shows payment method breakdown:

  • Card Amount - Amount to be returned to card
  • Wallet Amount - Amount to be credited to user wallet

This breakdown helps understand how the original payment was split.

Actions

From the refunds dashboard:

  • View Order - Quick link to original order details
  • Update Status - Change refund status as processing progresses

Refund Management

Refunds

Track all refunds:

  • Refund date
  • Original order
  • Amount refunded
  • Reason
  • Processed by
  • Customer notification status

Refund Reports

Export refund data for:

  • Accounting
  • Customer service
  • Compliance
  • Analysis

Marketing Attribution

Track where your orders come from to measure marketing campaign effectiveness:

Order Source Tracking

Each order automatically captures:

  • Source - Where the customer came from (e.g., email, social, direct)
  • Medium - Marketing medium (e.g., email, cpc, organic)
  • Campaign - Campaign name (if from a tracked campaign)
  • Referrer - Full referrer URL

How It Works

When customers click links from your marketing campaigns, tracking parameters are captured:

https://yoursite.com/competitions/123?utm_source=newsletter&utm_medium=email&utm_campaign=summer2024

This information is:

  1. Stored when customer visits the site
  2. Associated with their basket
  3. Saved to the order when they complete checkout

UTM Parameters

Use these standard UTM parameters in your marketing links:

  • utm_source - Traffic source (e.g., facebook, google, newsletter)
  • utm_medium - Marketing medium (e.g., social, email, cpc)
  • utm_campaign - Campaign name (e.g., spring_sale, black_friday)
  • utm_content - Ad content/variation (optional)
  • utm_term - Keyword term (optional for paid search)

Viewing Attribution Data

In Order Details:

  • View source information for each order
  • See which campaign generated the sale

In Analytics:

  • Filter orders by source
  • Group revenue by campaign
  • Compare conversion rates by channel

Email Campaign:

/competitions/123?utm_source=newsletter&utm_medium=email&utm_campaign=weekly_deals

Facebook Ad:

/competitions/123?utm_source=facebook&utm_medium=social&utm_campaign=summer_promo

Google Ads:

/competitions/123?utm_source=google&utm_medium=cpc&utm_campaign=brand_keywords

Use Cases

  • Measure ROI - Track which channels drive most revenue
  • Optimize Spend - Focus budget on high-performing channels
  • A/B Testing - Compare different campaign variations
  • Campaign Performance - Measure success of specific campaigns

Best Practices

  • Always use consistent naming for sources and campaigns
  • Create a tracking spreadsheet to document your UTM strategy
  • Use URL builders to ensure correct formatting
  • Test links before deploying campaigns
  • Review attribution data regularly to inform marketing decisions

Tips

  • Monitor failed orders daily
  • Process refunds promptly
  • Keep customers informed
  • Export data regularly for accounting
  • Track instant win fulfillment
  • Review payment method performance
  • Set up automated notifications
  • Monitor suspicious orders
  • Use UTM parameters in all marketing campaigns
  • Review order source data to optimize marketing spend