Search PoPs by contact
Search for specified PoPs for a contact record, within a defined date range.
Configuration
https://api.airship.co.uk/v1/pop/by_dateHeaders
Field
Notes
Body
Field
Notes
Example request
{
"account_id": 2,
"contact_id": 90357243,
"start_date": "2023-01-03",
"end_date": "2023-09-03",
"types" : ["purchases", "booking", "wifi"]
}{
"purchases":
[
{
"transaction_lines":
[
{
"id": 21811807,
"description": "TYRRELLS SEA SALT &",
"sku": "8507",
"quantity": "-1",
"value": "1.29"
},
{
"id": 21811808,
"description": "LATTE REGULAR 12oz",
"sku": "3001",
"quantity": "1",
"value": "3.00"
}
],
"unit_name": "The shack",
"id": 4753469,
"contact_id": "90357243",
"transaction_reference": "wqeqweqeqw-1c96-44fd-bc98-4dab1248ebd2",
"unit_id": "13835",
"provider_id": "1",
"order_type_id": "1",
"transaction_date": "2023-07-04 12:11:58"
}
],
"booking":
{
"current_page": 1,
"data":
[],
"first_page_url": "https://api.airship.co.uk/v1/pop/by_date?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.airship.co.uk/v1/pop/by_date?page=1",
"next_page_url": null,
"path": "https://api.airship.co.uk/v1/pop/by_date",
"per_page": 100,
"prev_page_url": null,
"to": null,
"total": 0
},
"wifi":
{
"current_page": 1,
"data":
[],
"first_page_url": "https://api.airship.co.uk/v1/pop/by_date?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.airship.co.uk/v1/pop/by_date?page=1",
"next_page_url": null,
"path": "https://api.airship.co.uk/v1/pop/by_date",
"per_page": 100,
"prev_page_url": null,
"to": null,
"total": 0
}
}Last updated