Returns a JSON of the Pass for a given Template
curl -i https://api.passdock.com/api/v1/templates/106/passes/199?api_token=75778a65dfdae310a107d2ef0bbd3780
{ "auxiliary": [ { "changeMessage": "Departure time changed to %@", "dateStyle": "PKDateStyleMedium", "key": "departure", "label": "DEPARTURE", "timeStyle": "PKDateStyleMedium", "value": "2012-11-12T10:12:20-08:00" } ], "back": [ { "changeMessage": "", "key": "passport", "label": "PASSPORT", "value": "United States of America." } ], "bar": { "format": "PKBarcodeFormatQR", "message": "1350551026", "messageEncoding": "iso-8859-1" }, "created_at": "2012-10-18T09:03:47Z", "custom": [ { "transitType": "PKTransitTypeAir" } ], "download": "https://api.passdock.com/passes/199/cd4bf0e77e1c619ed55d78f5f2ead787b7c689f9.pkpass", "family_id": 106, "header": [ { "changeMessage": "Gate changed to %@", "key": "gate", "label": "GATE", "value": "56" } ], "id": 199, "primary": [ { "changeMessage": "Departure changed in %@", "key": "from", "label": "FROM", "value": "NYC" }, { "changeMessage": "Destination changed to %@", "key": "to", "label": "TO", "value": "SFO" } ], "relevance": { "locations": [ ] }, "secondary": [ { "changeMessage": "Passenger name changed to %@", "key": "name", "label": "NAME", "value": "James Smith" } ], "serial_number": "serial-1350551026", "updated_at": "2012-10-18T09:15:31Z", "visual": { "backgroundColor": "rgb(237,184,61)", "foregroundColor": "rgb(255,255,255)", "labelColor": "", "logoText": "Passdock Airways" }, "web_token": "cd4bf0e77e1c619ed55d78f5f2ead787b7c689f9", "render_html_url": "http://api.passdock.com/p/ID/TOKEN" }
Param name | Description |
---|---|
template_id required |
Template ID Value: Must be Fixnum |
id required |
Pass ID Value: Must be Fixnum |
api_token required |
Your Passdock API key Value: Must be String |