Statistics
Get pass creation, installation, and uninstallation counts for projects and templates.
Endpoints for /activity report net total activities, including repeated actions by the same user. For example, if the same user installs, removes, and then adds the same pass again, a response will show two passes installed and one pass removed. Endpoints for /stats will not count repeated actions from the same user.
Pass statistics with external ID
Returns statistics for a pass with an external ID, including the total number of installs and uninstalls. The response payload lists the internal Wallet ID for the template rather than the external ID.
This endpoint does not count repeated actions by the same user.
GET /pass/id/{externalId}/stats
Security:
Request headers:
- Api-Revision stringREQUIREDThe particular API revision you want to use. In general, this is
1.2.Possible values:
1.2
Path parameters:
- externalId integerREQUIREDThe external ID of the pass you want to return statistics for.
Responses
200
Returns a summary of statistics for the pass.
Response body:
- Content-Type:OBJECT PROPERTIES
application/json- installed integer
The number of installed passes with this external ID.
- templates array[object]
The individual pass statistics for each template used to create passes with this external ID. Each object in the array represents a template.
- total integer
A count of the total number of passes with this external ID.
- uninstalled integer
The number of uninstalled passes with this external ID.
Examples
Example request
GET /v1/pass/id/my_pass/stats HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 1,
"installed": 1,
"uninstalled": 0,
"templates": [
{
"id": 5350,
"installed": 1,
"uninstalled": 0
}
]
}
Project activity
Returns daily pass activity for a given project ID. You can also add start and end date parameters in the path to return activity between two dates, in the format /template/{templateId}/activity/2018-08-10/2018-10-01.
If your request did not specify a date range, the response includes all activity, organized by day, since the template’s createdAt date.
This endpoint represents net activity, including repeated actions by the same user. For example, if the same user installs, removes, and then adds the same pass again, the report shows two passes installed and one pass removed.
GET /project/{projectId}/activity
Security:
Request headers:
- Api-Revision stringREQUIREDThe particular API revision you want to use. In general, this is
1.2.Possible values:
1.2
Path parameters:
- projectId integerREQUIREDThe ID of the project you want to return activity for. For External IDs, format the
{projectId}asid/{externalId}.
Responses
200
Returns a per-day activity for all days in the time range. If your request did not specify a date range, the response includes all activity, organized by day, since the projects’s
createdAtdate.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- details array[object]
Each object in this array represents pass activity for a single day. Each object represents net activity, including repeated actions by the same user. For example, if the same user installs, removes, and then adds the same pass again, the object shows two passes installed and one pass removed.
- endDate string
The end date for a statistics report.
- id integer
The ID of the project specified in the path.
- startDate string
The start date for a statistics report.
- summary object
Represents activity for a template or project.
OBJECT PROPERTIES- created integer
The number of passes created.
- installed integer
The number of passes that were installed.
- uninstalled integer
The number of passes that were uninstalled.
Examples
Example request
GET /v1/project/12345/activity/2015-08-19/2015-08-20 HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Example request with external ID
GET /v1/project/id/myExternalProject/activity/2015-08-19/2015-08-20 HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 12345,
"startDate": "2015/08/19",
"endDate": "2015/08/20",
"summary": {
"created": 113,
"installed": 0,
"uninstalled": 0
},
"details": [
{
"date": "2015/08/19",
"activity": {
"created": 111,
"installed": 0,
"uninstalled": 0
}
},
{
"date": "2015/08/20",
"activity": {
"created": 0,
"installed": 0,
"uninstalled": 0
}
}
]
}
Project statistics
Returns statistics for a given project ID. This endpoint does not count repeated actions by the same user. For External IDs, the response payload lists the internal Wallet ID for the template rather than the external ID.
GET /project/{projectId}/stats
Security:
Request headers:
- Api-Revision stringREQUIREDThe particular API revision you want to use. In general, this is
1.2.Possible values:
1.2
Path parameters:
- projectId integerREQUIREDThe ID of the project you want to return statistics for. For External IDs, format the
{projectId}asid/{externalId}.
Responses
200
Returns a summary of pass statistics for every template in the project.
Response body:
- Content-Type:OBJECT PROPERTIES
application/json- id integer
The identifier for the project.
- installed integer
The total number of passes from this project that are installed.
- lastUpdated string
The date and time when the item was last updated.
- templates array[object]
Contains statistics for each template belonging to the project.
- total integer
The total number of passes created in the project.
- uninstalled integer
The total number of passes created from this project that are uninstalled.
Examples
Example request
GET /v1/project/12345/stats HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Example request with external ID
GET /v1/project/id/ext_54321/stats HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 12345,
"lastUpdated": "2015-10-01T20:15:29.000-07:00",
"templates": [
{
"id": 1234,
"vendor": "Apple",
"lastUpdated": "2015-10-01T20:15:29.000-07:00",
"total": 2194,
"installed": 2,
"uninstalled": 7
}
],
"total": 2194,
"installed": 2,
"uninstalled": 7
}
Tag statistics
Returns statistics for a given tag. Tags are typically used for segmentation but can also be useful for reporting. This endpoint does not count repeated actions by the same user.
GET /tag/{tag}/stats
Security:
Request headers:
- Api-Revision stringREQUIREDThe particular API revision you want to use. In general, this is
1.2.Possible values:
1.2
Path parameters:
- tag stringREQUIREDThe tag you want to return statistics for.
Responses
200
Returns an object containing usage information about a tag.
Response body:
- Content-Type:OBJECT PROPERTIES
application/json- installed integer
The number of installed passes with the tag.
- lastUpdated string
The date and time when the statistics were generated.
- not_been_installed integer
The number of passes created but not installed.
- total integer
A count of the total number of passes created with the tag.
- uninstalled integer
The number of uninstalled passes with the tag.
Examples
Example request
GET /v1/tag/my_tag/stats HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 21,
"installed": 11,
"uninstalled": 0,
"not_been_installed": 0,
"lastUpdated": "2023-06-14T12:45:37.000Z"
}
Template activity
Returns daily activity of passes created, installed, and uninstalled for a template, specified by template ID. You can also add start and end date parameters in the path to return activity between two dates, in the format /template/id/{externalId}/activity/2018-08-10/2018-10-01.
If your request did not specify a date range, the response includes all activity, organized by day, since the template’s createdAt date.
This endpoint represents net activity, including repeated actions by the same user. For example, if the same user installs, removes, and then adds the same pass again, the report shows two passes installed and one pass removed.
GET /template/{templateId}/activity
Security:
Request headers:
- Api-Revision stringREQUIREDThe particular API revision you want to use. In general, this is
1.2.Possible values:
1.2
Path parameters:
- templateId integerREQUIREDThe ID of the template you want to return activity for. For External IDs, format the
{templateId}asid/{externalId}.
Responses
200
Returns a per-day activity for all days in the time range. If your request did not specify a date range, the response includes all activity, organized by day, since the template’s
createdAtdate.Response body:
- Content-Type:OBJECT PROPERTIES
application/json- details array[object]
Each object in this array represents pass activity for a single day.
- endDate string
The end date for a statistics report.
- id integer
The ID of the template specified in the path.
- startDate string
The start date for a statistics report.
- summary object
Represents activity for a template or project.
OBJECT PROPERTIES- created integer
The number of passes created.
- installed integer
The number of passes that were installed.
- uninstalled integer
The number of passes that were uninstalled.
- vendor string
The device vendor the template is designed for.
Possible values:
Apple,Google
Examples
Example request
GET /v1/template/1234/activity/2015-08-19/2015-08-20 HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Example request with external ID
GET /v1/template/id/myExternalId/activity/2015-08-19/2015-08-20 HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 1234,
"vendor": "Apple",
"startDate": "2015/08/19",
"endDate": "2015/08/20",
"summary": {
"created": 113,
"installed": 0,
"uninstalled": 0
},
"details": [
{
"date": "2015/08/19",
"activity": {
"created": 111,
"installed": 0,
"uninstalled": 0
}
},
{
"date": "2015/08/20",
"activity": {
"created": 0,
"installed": 0,
"uninstalled": 0
}
}
]
}
Template statistics
Returns statistics for a given template by ID, including the total number of passes installed and uninstalled. For External IDs, the response payload lists the internal Wallet ID for the template rather than the external ID.
This endpoint does not count repeated actions by the same user.
GET /template/{templateId}/stats
Security:
Request headers:
- Api-Revision stringREQUIREDThe particular API revision you want to use. In general, this is
1.2.Possible values:
1.2
Path parameters:
- templateId integerREQUIREDThe ID of the template you want to return statistics for. For External IDs, format the
{templateId}asid/{externalId}.
Responses
200
Returns an object containing usage information about a template.
Response body:
- Content-Type:OBJECT PROPERTIES
application/json- id integer
The template specified in the request.
- installed integer
The number of installed passes based on this template.
- lastUpdated string
The date and time when the template was last updated.
- total integer
A count of the total number of passes created from the template.
- uninstalled integer
The number of uninstalled passes based on this template.
- vendor string
The device vendor the template is designed for.
Possible values:
Apple,Google
Examples
Example request
GET /v1/template/12345/stats HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Example request with external ID
GET /v1/template/id/ext_54321/stats HTTP/1.1
Authorization: Basic <Base64 key>
Api-Revision: 1.2
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 12345,
"vendor": "Apple",
"lastUpdated": "2015-10-01T20:15:28.000-07:00",
"total": 7,
"installed": 0,
"uninstalled": 0
}