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": {}
}
]
}Get billing vouchers
The fees (honorarer) and disbursements (udlæg) you are charged on a settlement — what you pay, next to what you are paid.
Only the fees that stand on their own are returned. A fee charged on a specific payment is part of that payment’s distribution and is reported by Get deposit distribution as collectionCommission instead, so the two can be booked together without counting anything twice.
Together they are the whole settlement: without this endpoint, only half of the account is posted.
Required scope: read:billings
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": {}
}
]
}Authorizations
Authentication with an API key can be done by using a bearer token in the Authorization header. This is done using the following format Authorization: Bearer {token}. API keys are issued and revoked directly from the creditor portal under Developers > API.
Path Parameters
Id of your debt collection partner's tenant. You can find it on the API page in the creditor portal.
Id of the billing, from the billings.create webhook
Query Parameters
Zero-based page number
x >= 0Number of vouchers per page
1 <= x <= 1000JSON encoded list of the categories to return, fee and/or disbursement. Omit to get both.
"[\"fee\",\"disbursement\"]"