Retrieve your reports
Fetch generated reports, use the id returned to download the report using the report download endpoint.
AuthorizationBasic <token>
Basic authentication is a simple authentication scheme built into the HTTP protocol. To use it, send your HTTP requests with an Authorization header that contains the word Basic followed by a space and a base64-encoded string username:password.Example: Authorization: Basic ZGVtbzpwQDU1dzByZA==
In: header
Query Parameters
query[created][$lte]?string
Get PDFs for documents created before this timestamp
query[created][$gte]?string
Get PDFs for documents created after this timestamp
Response Body
curl -X GET "https://staging1.abillify.dev/api/reports?query%5Bcreated%5D%5B%24lte%5D=string&query%5Bcreated%5D%5B%24gte%5D=string"fetch("https://staging1.abillify.dev/api/reports?query%5Bcreated%5D%5B%24lte%5D=string&query%5Bcreated%5D%5B%24gte%5D=string")package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://staging1.abillify.dev/api/reports?query%5Bcreated%5D%5B%24lte%5D=string&query%5Bcreated%5D%5B%24gte%5D=string"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}import requests
url = "https://staging1.abillify.dev/api/reports?query%5Bcreated%5D%5B%24lte%5D=string&query%5Bcreated%5D%5B%24gte%5D=string"
response = requests.request("GET", url)
print(response.text)[
{
"created": "2020-01-01T00:00:00.000Z",
"file": "1",
"filename": "1234567890.pdf",
"filesize": 123456,
"id": "5e4a7b2b-1b0b-4c7a-8f0a-5b9b6b7c8d9e",
"kind": "datev_buchungen",
"modified": "2020-01-01T00:00:00.000Z",
"reference": "1234567890"
}
]{
"code": 400,
"details": [
{
"error": "Value for field 'debtor' is of wrong type, expected bigint.",
"fields": [
"debtor"
],
"hint": "Value must be a number or a string containing only a number."
}
],
"message": "InvalidValue, see error details",
"name": "ClientError",
"type": "ERR_INVALID_VALUE"
}{
"code": 400,
"details": [
{
"error": "Value for field 'debtor' is of wrong type, expected bigint.",
"fields": [
"debtor"
],
"hint": "Value must be a number or a string containing only a number."
}
],
"message": "InvalidValue, see error details",
"name": "ClientError",
"type": "ERR_INVALID_VALUE"
}