v1

latestOpenAPI 3.0.02026-07-247251950.2 KB
Vouchers

Retrieve voucher usage history

Overview

Get a complete history of all voucher redemptions across your system, showing which vouchers were used, when, and for which bookings.

When to Use

  • Usage analytics - Track voucher redemption patterns
  • Performance reporting - See which vouchers are most popular
  • Audit trail - Maintain records of voucher usage
  • Marketing insights - Understand voucher effectiveness

What You Get

  • Usage records - Each voucher redemption with full details
  • Booking information - Booking IDs and hotel or flight names where vouchers were used
  • Guest details - Email addresses of guests who used vouchers
  • Discount amounts - Total discount applied per usage
  • Timestamps - When each voucher was redeemed

Quick Start

No parameters required. Returns complete usage history for all vouchers across hotel and flight bookings, including booking details and discount amounts.

get/vouchers/history

Response

Voucher updated successfully

Example response

{
  "history": [
    {
      "id": 120,
      "voucher_code": "voucher-20",
      "guest_email": "guest@email.com",
      "hotel_name": "Villa Rosa",
      "booking_id": "YxsYhO17z",
      "voucher_total_amount": 12.25,
      "usage_date": "2026-07-28T08:18:39.000Z"
    }
  ]
}