1. Home
  2. Web services
  3. One-time codes
  4. getReport

getReport

  1. PC app can download the list of cash withdrawal on the basis of used one-time codes from last x days (query getReport)
  2. Billon API returns JSON with array of the withdrawals from last x days

 

HTTP query must be sent POST method with parameter na address:

https://billon.io/moneykey/getReport

 

Query getReport
Name of the field” Data type Description
Timestamp String GMT time w format YYYYMMDDhhmmss – for example 20171031104530. API will return error 13 in the event that given Timestamp has been already used.
Sale_Point_ID String ID of given top-up point
Days String Number of last days, for which the list of the payments must be returned. The first day is current day (since 00:00:00)
Hash String See

 

 

The response: Billon API sends JSON with an array of objects in response to query. Each object relates to one top-up, and attributes of the object are as follows:

Parameter Data type Description
Code String One-time code
Currency String Three-letter currency code consistent with ISO 4217 Currency Codes (for example PLN)
Amount String Amount of the withdrawal in 10.00 format
Datetime String Date and time of the withdrawal. Format: YYYY-MM-DD hh:mm:ss

 

 

Example JSON object returned in response to query, which was sent on 23rd December 2016 at 5:00 p.m., with parameter “Days”, which equals “2”:

{
    Transactions: [
        {
            Code: "ABCDEFGH123456",
            Currency: "PLN",
            Amount: "13.50",
            Datetime: "2016-12-23 16:42:13"
        },
        {
            Code: "HGFEDCBA123456",
            Currency: "PLN",
            Amount: "200.00",
            Datetime: "2016-12-22 07:32:10"
        }
    ]
}

 

 

Was this article helpful to you? Yes No

How can we help?