Coupon
wallet for various channels can provide alarms before expiration and update usage status wallet card type wallet card type wallet card subtype coupon others others wallet card data fields attributes type value description attributes {fields} titlestring 32 required main title e g , free coupon orderidstring 32 optional unique identifier for an order mainimgstring 256 required url for the main coupon image the file size should not exceed 512 kb logoimagestring 256 optional logo image url to be displayed in the card item the file size should not exceed 256 kb logoimage darkurlstring 256 optional logo image url in dark mode the file size should not exceed 256 kb logoimage lighturlstring 256 optional logo image url in light mode the file size should not exceed 256 kb brandnamestring 32 optional brand name expirylong 13 required expiration date in timestamp format issued data is cleaned up after it expires epoch timestamp in milliseconds issuedatelong 13 required issue date epoch timestamp in milliseconds redeemdatelong 13 optional date when the coupon is used epoch timestamp in milliseconds noticedescstring 5000 optional text of notice * html is supported editableynstring 1 required flag whether the coupon can be modified either 'y' or 'n' deletableynstring 1 required flag whether the coupon can be deleted either 'y' or 'n' displayredeembuttonynstring 1 required flag whether the use completion button is displayed either 'y' or 'n' notificationyn string 1 required flag whether a notification related to the coupon is delivered either 'y' or 'n' applinklogostring 256 required app link image url the file size should not exceed 256 kb applinknamestring 32 required app link name applinkdatastring 256 required information about the partner app link preventcaptureynstring 1 optional flag whether this wallet card view prevents screen captureeither 'y' or 'n'* default 'n' barcode valuestring 4096 conditional actual data that is delivered when the barcode/qr code is scanned barcode value2string 4096 conditional the secondary barcode data * required if ptformat is dualbarcode or dualbarcodeserial barcode serialtypestring 32 optional presentation type e g ,serialnumber, barcode * see barcode format barcode ptformatstring 32 optional presentation format e g , barcode, qrcode, serial * see barcode format barcode ptsubformatstring 32 optional presentation sub-format e g ,code_128, qr_code * see barcode format barcode errorcorrectionlevel string 4 optional amount of redundancy or error correction data included in the code there are four error correction levels available in qr codes * code options l/m/q/h balancestring 50 optional initial balance this is going to be shown as received it is recommended to use a one letter currency symbol e g , $1,000, 1,000p summaryurlstring 256 optional webpage url that show details, such as balance usermessagestring 256 optional message to forward senderstring 64 optional name of sender redeemurlstring 256 optional link to redeem coupons example { "card" { "type" "coupon", "subtype" "others", "data" [ { "refid" "ref-230712-0001", "createdat" 1612660039000, "updatedat" 1612660039000, "language" "en", "attributes" { "title" "free coupon", "mainimg" "https // /main png", "brandname" "samsung coupon", "expiry" 1637802725000, "issuedate" 1637457125000, "editableyn" "n", "deletableyn" "n", "displayredeembuttonyn" "y", "notificationyn" "y", "applinkname" "oo voucher", "applinklogo" "https // /applinklogo png", "applinkdata" "https //www oocoupon com", "barcode value" "cs16138353212584806754fg1802 ", "barcode serialtype" "barcode", "barcode ptformat" "qrcodeserial", "barcode ptsubformat" "qr_code" } } ] } }