Card Type - ShenTengTu/node-tw-e-invoice GitHub Wiki

Card Type

悠遊卡、一卡通及自然人憑證條碼僅使用於載具歸戶手機條碼功能

The following carrier cards are currently available in the API:

  • 3J0002:手機條碼 (Mobile barcode)

    Below are Aggregate to Mobile barcode Only

    • 1K0001:悠遊卡 (EasyCard)
    • 1H0001:一卡通 (iPASS)
    • CQ0001:自然人憑證條碼 (MOICA Citizen Digital Certificate)
  • 2G0001: 愛金卡(icash)

You can use CarrierCardType to generate serial number:

const {CarrierCardType}= require('node-tw-e-invoice');
console.log(CarrierCardType.Mobile);//3J0002
console.log(CarrierCardType.EasyCard);//1K0001
console.log(CarrierCardType.IPASS);//1H0001
console.log(CarrierCardType.MOICACDC);//CQ0001
console.log(CarrierCardType.ICASH);//2G0001