Get billing vouchers in a billing.
curl --request GET \
--url https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers', 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.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers",
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: Bearer <token>"
],
]);
$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.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"currentPage": 0,
"pageSize": 25
},
"items": [
{
"billingVoucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": 123,
"category": "fee",
"voucherTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"amount": 123,
"currency": "DKK",
"referenceId": "<string>",
"text": "<string>",
"vat": [
{
"billingVoucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voucherTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"amount": 123
}
],
"caseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"caseSequentialId": 123,
"creditorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditorName": "<string>",
"creditorReferenceId": "<string>",
"billingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"billingAppendixId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
},
"caseVoucher": {},
"depositCaseVoucher": {}
}
]
}Billing
Get billing vouchers
Get the fees and disbursements the creditor is charged on a billing.
Only the fees that stand on their own are returned. A fee charged on a specific deposit is part of that deposit’s distribution and is reported by Get deposit distribution as collectionCommission instead, so the two endpoints can be booked together without counting it twice.
Required scope: read:billings
GET
/
v1
/
{tenantId}
/
billings
/
{billingId}
/
billing-vouchers
Get billing vouchers in a billing.
curl --request GET \
--url https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers', 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.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers",
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: Bearer <token>"
],
]);
$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.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.debbiecollect.com/v1/{tenantId}/billings/{billingId}/billing-vouchers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"currentPage": 0,
"pageSize": 25
},
"items": [
{
"billingVoucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": 123,
"category": "fee",
"voucherTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"amount": 123,
"currency": "DKK",
"referenceId": "<string>",
"text": "<string>",
"vat": [
{
"billingVoucherId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voucherTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "<string>",
"amount": 123
}
],
"caseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"caseSequentialId": 123,
"creditorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creditorName": "<string>",
"creditorReferenceId": "<string>",
"billingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"billingAppendixId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"createdBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
},
"caseVoucher": {},
"depositCaseVoucher": {}
}
]
}