Post data
To send generic data to CashLantern, use this API endpoint.
To use this API endpoint, you will need to receive an API key from SprintQuip.
This API endpoint is specially developed to accept generic data for reporting
with CashLantern.
If you wish to send POS data, we will encourage you to use the POS post endpoint
documented here.
POST /api_v1/post_data
The request body should be time series data. There are some mandatory fields that are required:
- TransactionDate - this should be in the format DD/MM/YYYY
- TransactionTime - this should be in the format HH:MM:SS
- Timezone - this must be the TZ database name. For Sydney, Australia the TZ database name is Australia/Sydney. This link has a full list of TZ database names.
- Firstname
- Lastname
- OperatorID
- Location
- TotalCashValue
Request and Response formats are in JSON.
You must include the Authorization api-key in the header.
The header key to use is
Authorization and the value is in the format api-key:<apikey>
Here is an example of what the body would look like, if you sent the mandatory fields and the optional fields listed above:
{
"transactiondate": "28/08/2018",
"transactiontime": "14:03:56",
"timezone": "Australia/Sydney",
"firstname": "Jane",
"lastname": "Doe",
"operatorid": "O1934",
"location": "slot_machine",
"totalcashvalue": "720.00"
}
Back home