Skip to content

Instantly share code, notes, and snippets.

@sameg14
Created June 16, 2015 19:20
Show Gist options
  • Save sameg14/6a66c7913cddf7122092 to your computer and use it in GitHub Desktop.
Save sameg14/6a66c7913cddf7122092 to your computer and use it in GitHub Desktop.
Test passbook json data
{
"formatVersion": 1,
"passTypeIdentifier": "pass.com.accenture.wfm.affinity",
"serialNumber": "p69f2J",
"teamIdentifier": "YJ9R4XZ4CL",
"webServiceURL": "https://example.com/passes/",
"authenticationToken": "vxwxd7J8AlNNFPS8k0a0FfUFtq0ewzFdc",
"locations": [
{
"longitude": -122.3748889,
"latitude": 37.6189722
}
],
"barcode": {
"message": "4-80013-19001",
"format": "PKBarcodeFormatPDF417",
"messageEncoding": "iso-8859-1"
},
"organizationName": "WholeFoods",
"description": "RegistrationLoyaltyCard",
"foregroundColor": "rgb(255,255,255)",
"backgroundColor": "rgb(36,36,36)",
"storeCard": {
"headerFields": [
{
"key": "header",
"value": "100",
"label": "Points Balance"
}
],
"primaryFields": [
{
"key": "cardNumber",
"label": "Card Number",
"value": "4-80013-19001"
}
],
"secondaryFields": [
{
"key": "name",
"value": "John Smith"
},
{
"dateStyle": "PKDateStyleMedium",
"isRelative": true,
"key": "lastUpdate",
"label": "Last Updated On",
"timeStyle": "PKDateStyleShort",
"value": "2015-03-11T19:30-06:00"
}
],
"backFields": [
{
"key": "appLink",
"label": "Link to open, download or view App:",
"value": "https://itunes.apple.com/app/id934966468"
},
{
"key": "infoText",
"value": "This card is issued by Whole Foods Market t® Services, Inc. Present card to cashier at time of purchase to obtain applicable benefits. Card is valid in participating stores only. Use of the card constitutes acceptance of the complete terms and conditions for the Whole Foods Market Rewards Program. For more information, visit wholefoodsmarket.com/rewards."
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment