Passcreator API Documentation

Similar documents
Programming Autodesk PLM 360 Using REST. Doug Redmond Software Engineer, Autodesk

Cloud Elements! Events Management BETA! API Version 2.0

Office365Mon Developer API

Cloud Elements! Marketing Hub Provisioning and Usage Guide!

SAML application scripting guide

Fairsail REST API: Guide for Developers

How do I Configure my bmail Account on Outlook 2013 Using the Google Apps Sync Tool?

WatchGuard QMS End User Guide

An Oracle White Paper June RESTful Web Services for the Oracle Database Cloud - Multitenant Edition

API Reference Guide. API Version 1. Copyright Platfora 2016

.OR.AT.ATTORNEY.AUCTION.BARGAINS.BAYERN.BERLIN.BLACKFRIDAY.BOUTIQUE.BRUSSELS.BUILDERS

D&B Direct+ API Documentation for IP Address Detail Lookup. Version 1, REST Interface. Intended for Early Adopter Program Participants

Qlik REST Connector Installation and User Guide

The HTTP Plug-in. Table of contents

/ 1. Online Banking User Guide SouthStateBank.com / (800)

Online signature API. Terms used in this document. The API in brief. Version 0.20,

Remote Access End User Reference Guide for SHC Portal Access

Creating a generic user-password application profile

ACORD. Lync 2013 Web-app Install Guide

Frequently Asked Questions

Meeting Rooms User Manual

OAuth 2.0 Developers Guide. Ping Identity, Inc th Street, Suite 100, Denver, CO

Download and Launch Instructions for WLC Client App Program

Administering Google Apps & Chromebooks for Education

Traitware Authentication Service Integration Document

Flexible Identity Federation

Hubcase for Salesforce Installation and Configuration Guide

Cloud Powered Mobile Apps with Microsoft Azure

Contents First Time Setup... 2 Setting up the Legal Vault Client (KiteDrive)... 3 Setting up the KiteDrive Outlook Plugin Using the Legal Vault

Quick Start Guide Mobile Entrée 4

Cloud Elements ecommerce Hub Provisioning Guide API Version 2.0 BETA

OAuth2lib. implementation

Getting Started with the icontact API

Outlook Data File navigate to the PST file that you want to open, select it and choose OK. The file will now appear as a folder in Outlook.

CDUfiles User Guide. Chapter 1: Accessing your data with CDUfiles. Sign In. CDUfiles User Guide Page 1. Here are the first steps to using CDUfiles.

OneSourceFax Customer Guide

Business Mobile App User Guide

Everbridge Suite Winter 2015 Release Notes

GMass Getting Started Guide

Teacher Activities Page Directions

MyPrint instructions; printing, scanning and copying. version 1.3 EN march 2015

Cloud Fax Quick Guide

API documentation - 1 -

Single Sign On Guide. Table of Contents

Riverbed Cascade Shark Common REST API v1.0

Manual. Netumo NETUMO HELP MANUAL Copyright Netumo 2014 All Rights Reserved

Release Notes. DocuSign Spring 15 Release Notes. Contents

From Delphi to the cloud

How To Get A Certificate From Digicert On A Pc Or Mac Or Mac (For Pc Or Ipa) On A Mac Or Ipad (For Mac) On Pc Or Pc Or Pb (For Ipa Or Mac) For Free

Configuration Guide - OneDesk to SalesForce Connector

/ 1. Online Banking User Guide SouthStateBank.com / (800)

How to create database in GlycomcsPortal?

Business Online Banking Quick Users Guide

How do I contact someone if my question is not answered in this FAQ?

A client is a person, who contacts your company via service Chat Helpdesk using messengers and SMS.

1 Overview Configuration on MACH Web Portal 1

Salesforce Files Connect Implementation Guide

How To Use Kiteworks On A Microsoft Webmail Account On A Pc Or Macbook Or Ipad (For A Webmail Password) On A Webcomposer (For An Ipad) On An Ipa Or Ipa (For

Google Calendar 3 Version 0.8 and 0.9 Installation and User Guide. Preliminary Setup

DocuSign Connect for Salesforce Guide

Northeast Bank Mobile Deposit Service FAQ

SchoolMessenger for iphone

WESTERNACHER OUTLOOK -MANAGER OPERATING MANUAL

Using the owncloud Android App

Electronic Signature Authentication (ESA)

User-password application scripting guide

Citrix Receiver for Mobile Devices Troubleshooting Guide

Integration Overview. Web Services and Single Sign On

Flexible Identity Federation

Guide for Setting Up Your Multi-Factor Authentication Account and Using Multi-Factor Authentication. Mobile App Activation

Two-Factor Authentication (2FA) Registration Instructions Symantec VIP Access

Reference Guide TEAM. Pogoplug Team. Reference Guide Cloud Engines Inc., All Rights Reserved.

Cloudfinder for Office 365 User Guide. November 2013

iphone and Android Apps Guide iphone and Android Apps Guide

Business Mobile Banking Features

Mobile Banking FAQ for Business

Booth Gmail Configuration

Multi-Factor Authentication Job Aide

Online Services User Guide

Business Mobile Banking

Appendix A: Encrypting a File and / or Message

MySagePay. User Manual. Page 1 of 48

Zinio FAQ. » I created a Library Collection account but I did not receive my confirmation . Why not?

This presentation introduces you to the new call home feature in IBM PureApplication System V2.0.

Student Quick Start Guide

Remote Desktop Web Access. Using Remote Desktop Web Access

Spring Security CAS Plugin - Reference Documentation. Burt Beckwith. Version M1

Office365Mon Subscription Management API

Drop Shipping. Contents. Overview 2. Quick Tips 3. Basic Setup 4. Drop Ship Options 5. File Pickup Options 6. Messages 8

SHC Client Remote Access User Guide for Citrix & F5 VPN Edge Client

Welcome to ECBuzz.com! Please go through this document carefully to make the experience of owning and using a website an enjoyable one.

Title page. Alcatel-Lucent 5620 SERVICE AWARE MANAGER 13.0 R7

8x8 Virtual Office Click2Pop for eagent Setup Guide

Force.com REST API Developer's Guide

Instructions for Accessing the Hodges University Virtual Lab

Google 2 factor authentication User Guide

Commerce Services Documentation

Transcription:

Passcreator API Documentation Version 1.0 - December 2014 USt-IdNr.: DE290188967 Seite 1 von 9

About this Document 3 Obtaining an API key 3 Authentication 3 Testing 3 Get list of pass-templates 4 Get information about a pass-template 4 Get all passes of a pass-template 5 Check if a pass is known to a given ID 6 Get information about a specific pass 7 Create a new pass 7 Update a pass 8 Mark a pass as voided 9 USt-IdNr.: DE290188967 Seite 2 von 9

About this Document This document describes the REST API that can be used if you or one of your customers has a valid account for the online app that is available at www.passcreator.de. In general a REST API means that you always have to provide a authentication token in the authorization header of every HTTP-Request. The API provides functions to create, read, update and delete Passbook passes. Additionally there are functions to get a list of pass-templates and existing passes. In order to use the API features a pass-template must be created using the Passcreator online app. Creating and updating pass-templates is currently not supported via the API. This documentation is provided as is without any warranty. If you notice that any of the functions or methods don t work as expected or find something that is not described clearly enough please send us an e-mail to support@passcreator.de. Also this document might be subject to change as we are constantly adding new features to Passcreator. If you want to get notified about changes to the API please also write us an E- Mail to support@passcreator.de and we ll add you to a recipient list that is notified as soon as a new version of the documentation is available. Obtaining an API key The API key must be submitted in the HTTP Authorization header on every request. It is used to check if the caller is authorized to execute the function. To get the API key log in to Passcreator (https://portal.passcreator.de/login) and go to Account Options. You can find the API key at the bottom of the page. Authentication To authorize your request you must always submit the API key in the HTTP Authorization header. Testing If you want to test the API or learn how it works a good way to get used to it without having to code much is installing a browser plugin like Postman (http://www.getpostman.com/) for Google Chrome. It allows you to test all Passcreator API functions so you can get an idea of how it works. If API functions need complex data this data must be submitted as JSON payload. Also the API functions will return information about the executed steps like IDs of created passes or error messages as JSON arrays. In general the Passcreator API will always return the appropriate HTTP-statuses e.g.: 200 - Request was valid and the results are being returned. 201 - Created - the action you wanted to execute was successful and the information about the created object is returned. 204 - No Content 400 - an error occurred and the request could therefore not be processed. Details about the error is specified in the response. 401 - Unauthorized - you have specified an invalid or no Authorization header. 404 - Not found - the given UID could not be found or is invalid. USt-IdNr.: DE290188967 Seite 3 von 9

Get list of pass-templates URL: https://portal.passcreator.de/api/pass-template Purpose: Returns a list of all pass-templates that have been created for your account. Returned values: JSON-Array containing the UID and the name of your pass-templates. Get information about a pass-template URL: https://portal.passcreator.de/api/pass-template/<pass-uid> Purpose: Get information about the given pass-template. This information is e.g. needed if you want to create passes for this pass-template. UID of the pass-template that must be specified in the URI. If you don t have a UID you can obtain it by using the function explained in the section Get list of pass-templates. Returned values: JSON-Array containing the following values: identifier: the UID of the pass-template name: the name of the pass-template numberofcreatedpasses: the number of created passes for this pass-template. Pay attention that this is the overall number of passes that have been created, not the number of passes created this month. createpassurl: the API url including the pass-template UID that must be used to create new passes. dynamicfields: JSON-Array that specifies the array that must be submitted when passes are created or updated. For more details see Create a new pass in this document. USt-IdNr.: DE290188967 Seite 4 von 9

Get all passes of a pass-template URL: https://portal.passcreator.de/api/pass/?passid=<pass-template-uid> Purpose: Returns a list of all passes for the given pass-template. pass-template UID as GET parameter with the parameter name passid. Returned values: JSON-Array containing an array for every pass. The array for the passes contain these fields: identifier: the UID of the pass that can be used e.g. for updates. uri: the URI of the pass that can be used to update or delete it. generatedid: the unique ID that is created for every pass and can e.g. be used for admittance tools to check if a given ID is valid. This ID is usually encoded in the Barcode on the pass if you re not using own IDs. voided: false, if the pass is not voided, means it has not been used. true, if the pass is voided, means it has been used already. searchstring: contains all data on the pass separated by pipe symbols USt-IdNr.: DE290188967 Seite 5 von 9

Check if a pass is known to a given ID URL: https://portal.passcreator.de/api/pass/checkbyid/<id-to-check-for> Purpose: Checks if a pass is found for the given ID. This function can e.g. be used to check if a pass that is shown on admittance of a event is valid. To use this it is required that the ID is encoded in the passes barcode. Currently only IDs that are automatically generated by Passcreator can be checked. ID that should be checked for Returned values: JSON-Array containing the following information: error: if an error occurred it is specified here. If the field is empty, no error occurred. identifier: the UID of the pass that has the given ID. uri: the URI you can use to update or delete the pass. generatedid: the ID (this is the one that was given in the request) searchstring: all data that is shown on the pass front or back. Fields are separated by pipe symbols. voided: if true, the pass is voided. This means it has already been used. passtemplateguid: the GUID of the pass-template that was used to create the pass. USt-IdNr.: DE290188967 Seite 6 von 9

Get information about a specific pass URL: https://portal.passcreator.de/api/pass/<pass-uid> Purpose: If the given pass UID is known information about the pass is returned. UID of the pass you want information about Returned values: JSON-Array containing the following information: identifier: the UID of the pass that has the given ID. uri: the URI you can use to update or delete the pass. generatedid: the generated ID that is used e.g. in the barcode. searchstring: all data that is shown on the pass front or back. Fields are separated by pipe symbols. voided: if true, the pass is voided. This means it has already been used. passtemplateguid: the GUID of the pass-template that was used to create the pass. Create a new pass URL: https://portal.passcreator.de/api/pass?passtemplate=<pass-template-guid> HTTP-Method: POST Purpose: Create a new pass using the given pass template. ID of the pass template as parameter in the URI. USt-IdNr.: DE290188967 Seite 7 von 9

An array containing the values that should be shown on the pass as specified by the method that describes a pass template. See Get information about a pass-template in this document. The JSON-Array must be submitted as payload of the request. An example JSON array looks like this: Returned values: JSON-Array containing the following information: identifier: the unique identifier of the created pass uri: the URI that can be used to update or delete the pass linktopassfile: the link where the pkpass-file can be downloaded. The pkpass-file is the actual pass that can be opened on iphones directly. linktopasspage: link to the download page for this pass that detects the operating system of the Smartphone that is used and provides device specific help. ErrorMessage: if an error occurs it is shown here. Update a pass URL: https://portal.passcreator.de/api/pass/<pass-guid> HTTP-Method: PUT Purpose: Update an existing pass. ID of the pass that must be updated in the URI. An array containing the values that should be shown on the pass as specified by the method that describes a pass template. See Get information about a pass-template in this document. The JSON-Array must be submitted as payload of the request. An example JSON array looks like this: USt-IdNr.: DE290188967 Seite 8 von 9

Returned values: If the pass has been updated successfully HTTP Status 204 is returned. Mark a pass as voided URL: https://portal.passcreator.de/api/pass/<pass-guid>?passinstance[voided]=boolean HTTP-Method: PUT Purpose: Mark a pass voided or not. This is e.g. useful, if an event ticket has been used. If a pass is voided the barcode that is shown on the pass will be greyed out on the users device. ID of the pass that must be voided in the URI. Boolean (true or false) that indicates if the pass should be voided or not. If the pass should be voided, the boolean must be true, if it should not be voided the boolean parameter must be false. The passinstance[voided] parameter is also specified in the URI. Returned values: If the pass has been updated successfully HTTP Status 204 is returned. USt-IdNr.: DE290188967 Seite 9 von 9