List pending bills
curl --request GET \
--url https://api.helloproper.com/pending-bills \
--header 'Authorization: <api-key>'import requests
url = "https://api.helloproper.com/pending-bills"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.helloproper.com/pending-bills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.helloproper.com/pending-bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.helloproper.com/pending-bills"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.helloproper.com/pending-bills")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helloproper.com/pending-bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"bills": [
{
"dueDate": "<string>",
"pendingBillLineItems": [
{
"productKey": "<string>",
"amount": {
"currency": "<string>",
"amount": 123
},
"quantity": 123,
"unitNetPrice": {
"currency": "<string>",
"amount": 123
},
"netPrice": {
"currency": "<string>",
"amount": 123
},
"vat": {
"taxMode": "<string>",
"taxRate": 123
},
"accountingPeriod": "<string>"
}
],
"subtotal": {
"currency": "<string>",
"amount": 123
},
"total": {
"currency": "<string>",
"amount": 123
},
"vatTotals": [
{
"vat": {
"taxMode": "<string>",
"taxRate": 123
},
"amount": {
"currency": "<string>",
"amount": 123
}
}
]
}
]
}Pending bills
List pending bills
GET
/
pending-bills
List pending bills
curl --request GET \
--url https://api.helloproper.com/pending-bills \
--header 'Authorization: <api-key>'import requests
url = "https://api.helloproper.com/pending-bills"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.helloproper.com/pending-bills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.helloproper.com/pending-bills",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.helloproper.com/pending-bills"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.helloproper.com/pending-bills")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.helloproper.com/pending-bills")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"bills": [
{
"dueDate": "<string>",
"pendingBillLineItems": [
{
"productKey": "<string>",
"amount": {
"currency": "<string>",
"amount": 123
},
"quantity": 123,
"unitNetPrice": {
"currency": "<string>",
"amount": 123
},
"netPrice": {
"currency": "<string>",
"amount": 123
},
"vat": {
"taxMode": "<string>",
"taxRate": 123
},
"accountingPeriod": "<string>"
}
],
"subtotal": {
"currency": "<string>",
"amount": 123
},
"total": {
"currency": "<string>",
"amount": 123
},
"vatTotals": [
{
"vat": {
"taxMode": "<string>",
"taxRate": 123
},
"amount": {
"currency": "<string>",
"amount": 123
}
}
]
}
]
}Request
string
required
Lease identifier for which pending bills will be retrieved
string
required
The period for pending bills, in the format “YYYY-MM-DD/YYYY-MM-DD”
Response
array
Show child attributes
Show child attributes
date
The due date for the pending bill payment in ISO 8601 format
array
Show child attributes
Show child attributes
string
The key or identifier for the product or service billed
Amount Object
Number
The quantity of items billed
Amount Object
Amount Object
object
string
The accounting period for the pending bill line item, in the format “YYYY-MM-DD/YYYY-MM-DD”
object
object
array
The total VAT amounts for the pending bill, split by different VAT rates or categories
Show child attributes
Show child attributes
object
⌘I