Last active
August 20, 2020 13:57
-
-
Save grundyoso/ed1dd163f5d5b4cb8e855083d7e426a4 to your computer and use it in GitHub Desktop.
PassNinja loyalty pass template - Apple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"formatVersion": 1, | |
"passTypeIdentifier": "pass.com.passninja.demo.loyaltyCard", | |
"webServiceURL": "https://ec-api.passninja.com/", | |
"teamIdentifier": "Q338UYGFZ8", | |
"organizationName": "{{organizationName}}", | |
"description": "{{description}}", | |
"foregroundColor": "rgb(255,255,255)", | |
"backgroundColor": "rgb(26,17,38)", | |
"labelColor": "rgb(255,232,195)", | |
"logoText": "{{logoText}}", | |
"suppressStripShine": false, | |
"userInfo": { | |
"logoTextColor": "rgb(255,232,195)" | |
}, | |
"barcodes": [ | |
{ | |
"message": "{{barcode}}", | |
"format": "PKBarcodeFormatPDF417", | |
"messageEncoding": "iso-8859-1" | |
} | |
], | |
"coupon": { | |
"headerFields": [ | |
{ | |
"key": "expires", | |
"label": "Expires", | |
"dateStyle": "PKDateStyleMedium", | |
"timeStyle": "PKDateStyleNone", | |
"value": "{{expiration}}" | |
} | |
], | |
"primaryFields": [ | |
{ | |
"key": "firstone", | |
"value": "{{loyaltyLevel}}", | |
"label": "All Ninja Clothing" | |
} | |
], | |
"auxiliaryFields": [ | |
{ | |
"key": "member", | |
"value": "{{memberName}}", | |
"label": "Member Name" | |
}, | |
{ | |
"key": "special", | |
"value": "{{specialOffer}}", | |
"label": "Special Offer!" | |
} | |
], | |
"backFields": [ | |
{ | |
"key": "terms", | |
"label": "Please Note", | |
"value": "Cannot be used in conjunction with any other offer." | |
} | |
] | |
}, | |
"locations": [ | |
{ | |
"latitude": 37.3229, | |
"longitude": -122.0323 | |
}, | |
{ | |
"latitude": 37.3286, | |
"longitude": -122.0143 | |
}, | |
{ | |
"altitude": 10, | |
"latitude": 37.331, | |
"longitude": -122.029, | |
"relevantText": "Store nearby on 3rd and 5th." | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment