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.
- Finished: This section shows tickets that have either been used or have expired.
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.
- Redeemed: Displays coupons that have already been redeemed, including the redemption time.
- Expired: Displays coupons that have expired, along with the expiration date.
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"
}
]
}
}
}
Field | Purpose | Example |
---|---|---|
admission | Admission Ticket Data | Refer to Admission-Ticket-Detail |
coupon | Coupon Data | Refer to Coupon-Detail |
Admission-Ticket-Detail
Field | Purpose | Example |
---|---|---|
my_order | My Orders | Refer to Admission-my_order |
finished | Finished | Refer to Admission-finished |
Admission-my_order
Field | Purpose | Example |
---|---|---|
id | Admission Ticket ID | t-1 |
name | Admission Ticket Name | 臺北市立美術館 |
img_url | Admission Ticket Image | Image URL |
date | Admission Ticket Validity | Valid for one day, 20XX-XX-XX, Used |
total | Ticket counts | 5 |
qrcode | Admission Ticket QR Code URL | URL 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
Field | Purpose | Example |
---|---|---|
not_redeemed | Not Redeemed | Refer to Coupon-not_redeemed |
redeemed | Redeemed | Refer to Coupon-redeemed |
expired | Expired | Refer to Coupon-expired |
Coupon-not_redeemed
Field | Purpose | Example |
---|---|---|
id | Coupon ID | c-1 |
name | Coupon Name | 郭董私房菜 |
img_url | Coupon Image | Image URL |
total | Coupon counts | 5 |
date | Coupon Validity | 2024/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。