Skip to content

Ticket Wallet

/ticket-wallet

The ticket wallet displays various types of tickets you currently own, and allows you to manage their usage here.

Admission Tickets

Admission tickets are divided into two categories: My Orders and Finished.

  • My Orders: Displays tickets that have not been used and are not expired. Clicking on them will generate a QR code that can be scanned at the venue for admission.

Ticket Wallet-Admission-My Orders

Ticket Wallet-Admission-Qrcode

  • Finished: This section shows tickets that have either been used or have expired.

Ticket Wallet-Admission-Finished

Coupons

Coupons are divided into three categories: Not Redeemed, Redeemed, and Expired.

  • Not Redeemed: Displays coupons that have not yet been redeemed. Clicking on them will redirect to the redemption page for convenient use by stores.

Ticket Wallet-Coupons-Not Redeemed

  • Redeemed: Displays coupons that have already been redeemed, including the redemption time.

Ticket Wallet-Coupons-Redeemed

  • Expired: Displays coupons that have expired, along with the expiration date.

Ticket Wallet-Coupons-Expired

Ticket Wallet Data

The ticket wallet data is defined as follows, including both admission tickets and coupons.

json
{
  "data": {
    "admission": {
      "my_order": [
        {
          "id": "t-1",
          "name": "臺北市立美術館",
          "img_url": "https://plus.unsplash.com/premium_photo-1686741733157-1d7863a7a04e?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
          "date": "限當日使用",
          "total": "1",
          "qrcode": "https://www.gov.taipei/"
        },
        {
          "id": "t-3",
          "name": "兒童新樂園",
          "img_url": "https://images.unsplash.com/photo-1575783970733-1aaedde1db74?q=80&w=2076&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
          "date": "限當日使用",
          "total": "3",
          "qrcode": "https://tailwindcss.com/"
        }
      ],
      "finished": [
        {
          "id": "t-2",
          "name": "臺北市立動物園",
          "img_url": "https://images.unsplash.com/photo-1534567153574-2b12153a87f0?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3DD",
          "date": "已使用",
          "total": "",
          "qrcode": ""
        }
      ]
    },
    "coupon": {
      "not_redeemed": [
        {
          "id": "c-1",
          "name": "郭董私房菜",
          "img_url": "https://plus.unsplash.com/premium_photo-1673108852141-e8c3c22a4a22?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
          "total": "",
          "date": "2024/06/30"
        }
      ],
      "redeemed": [
        {
          "id": "c-2",
          "name": "阿爸手工皂",
          "img_url": "https://images.unsplash.com/photo-1454873019514-eae2f086587a?q=80&w=2073&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
          "total": "",
          "date": "2024/09/01 14:00"
        }
      ],
      "expired": [
        {
          "id": "c-3",
          "name": "沃田旅店",
          "img_url": "https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
          "total": "",
          "date": "2024/06/30"
        }
      ]
    }
  }
}
FieldPurposeExample
admissionAdmission Ticket DataRefer to Admission-Ticket-Detail
couponCoupon DataRefer to Coupon-Detail

Admission-Ticket-Detail

FieldPurposeExample
my_orderMy OrdersRefer to Admission-my_order
finishedFinishedRefer to Admission-finished

Admission-my_order

FieldPurposeExample
idAdmission Ticket IDt-1
nameAdmission Ticket Name臺北市立美術館
img_urlAdmission Ticket ImageImage URL
dateAdmission Ticket ValidityValid for one day, 20XX-XX-XX, Used
totalTicket counts5
qrcodeAdmission Ticket QR Code URLURL for scanning QR code, e.g., https://www.gov.taipei/

Admission-finished

The field format is the same as Admission-my_order, but the qrcode field is not required.

Coupon-detail

FieldPurposeExample
not_redeemedNot RedeemedRefer to Coupon-not_redeemed
redeemedRedeemedRefer to Coupon-redeemed
expiredExpiredRefer to Coupon-expired

Coupon-not_redeemed

FieldPurposeExample
idCoupon IDc-1
nameCoupon Name郭董私房菜
img_urlCoupon ImageImage URL
totalCoupon counts5
dateCoupon Validity2024/06/30、2024/06/30 14:00

Coupon-redeemed

The field format is the same as Coupon-not_redeemed, but the date field should contain the redemption time.

Coupon-expired

The field format is the same as Coupon-not_redeemed