Base URL: https://www.datapolling.com
POST: /pub/down/data
This endpoint corresponds to the latest DATA export from onePOS for a single location.
Request Parameters
service_key
string – a unique key provided to a service to identify them in requestsservice_id
integer – a unique identifier to match the service_keysite_id
integer – a unique identifier to match the site_keysite_key
string – a unique key provided to a service to identify the onePOS site in requests
{
"service_key": "service-key-example",
"service_id": 0,
"site_id": 00000,
"site_key": "site-key-example"
}
Response Parameters
data
object – onePOS system data in JSON format
POST: /pub/down/journal/:date
This endpoint corresponds to the JOURNAL export from onePOS for a single location for a singular date.
Query Parameters
date
datetime – the date formatted in ‘YYYYMMDD’ format
Request Parameters
service_key
string – a unique key provided to a service to identify them in requestsservice_id
integer – a unique identifier to match the service_keysite_id
integer – a unique identifier to match the site_keysite_key
string – a unique key provided to a service to identify the onePOS site in requests
{
"service_key": "service-key-example",
"service_id": 0,
"site_id": 00000,
"site_key": "site-key-example"
}
Response Parameters
data
object – onePOS journal data in JSON format
POST: /pub/down/details/:date
This endpoint corresponds to the JOURNAL DETAILS export from onePOS for a single location for a singular date.
Query Parameters
date
datetime – the date formatted in ‘YYYYMMDD’ format
Request Parameters
service_key
string – a unique key provided to a service to identify them in requestsservice_id
integer – a unique identifier to match the service_keysite_id
integer – a unique identifier to match the site_keysite_key
string – a unique key provided to a service to identify the onePOS site in requests
{
"service_key": "service-key-example",
"service_id": 0,
"site_id": 00000,
"site_key": "site-key-example"
}
Response Parameters
data
object – onePOS journal details data in JSON format