List Tracker Visits
GET/print-mail/v1/trackers/{id}/visits
Retrieve a paginated list of visits for a Tracker.
Query Parameters
search: optional string
You can supply any string to help narrow down the list of resources. For example, if you pass "New York" (quoted), it will return resources that have that string present somewhere in their response. Alternatively, you can supply a structured search query. See the documentation on StructuredSearchQuery for more details.
List Tracker Visits
curl https://api.postgrid.com/print-mail/v1/trackers/$ID/visits \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY"{
"object": "list",
"limit": 10,
"skip": 0,
"totalCount": 1,
"data": [
{
"id": "tracker_visit_123456789abcdefghijklmnopqrstuvwxyz",
"object": "tracker_visit",
"live": false,
"tracker": "tracker_123456789abcdefghijklmnopqrstuvwxyz",
"orderID": "order_123456789abcdefghijklmnopqrstuvwxyz",
"device": "Device Unknown",
"ipAddress": "Unknown IP Address",
"createdAt": "2020-11-12T23:30:12.581Z",
"updatedAt": "2020-11-12T23:31:12.581Z"
}
]
}Returns Examples
{
"object": "list",
"limit": 10,
"skip": 0,
"totalCount": 1,
"data": [
{
"id": "tracker_visit_123456789abcdefghijklmnopqrstuvwxyz",
"object": "tracker_visit",
"live": false,
"tracker": "tracker_123456789abcdefghijklmnopqrstuvwxyz",
"orderID": "order_123456789abcdefghijklmnopqrstuvwxyz",
"device": "Device Unknown",
"ipAddress": "Unknown IP Address",
"createdAt": "2020-11-12T23:30:12.581Z",
"updatedAt": "2020-11-12T23:31:12.581Z"
}
]
}