Get v3producers contracts charges and creditsinternal id
This API view allows to retrieve charge/credit based on customer_contract_id and internal_id.
curl --request GET \
--url https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/import requests
url = "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/', 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.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/"
req, _ := http.NewRequest("GET", url, nil)
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.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type_of_transaction": "credit",
"amount_cent": 1,
"is_gross": true,
"vat_type": "normal",
"due_date": "2023-12-25",
"input_id": "<string>",
"internal_id": "<string>",
"contract_id": "<string>",
"category": "<string>",
"display_name": "<string>",
"salespartner": "<string>",
"explanation_text": "<string>",
"bookkeeping_account": "<string>"
}Response
Whether the amount shall be charged or credited towards the customers.
credit- creditcharge- charge
credit, charge Monetary Amount in cent. For example "1000" for 10,00 EUR
x >= 0Identifier for whether it is a net (excl. VAT) or gross (incl. VAT) amount
VAT rate for normal is 19% and reduced is 7%. In case of vat changes, the value, which is valid at the due date, will be used.
normal- normalreduced- reduced
normal, reduced Defines which customer bill will include the submitted amount: the bill which covers a billing period including this due_date will contain the submitted amount.
Please submit a unique identifier per contract ID
128150Describes the nature of the submitted amount, e. g. "Bonus", and is used to group values of the same category on the customer facing invoice.
40Display name which is exposed on the customer invoice
128Description text explaining the context of the amount. Its displayed on the customer invoice
The bookkeeping account for this transaction, which will be reported back to you in the accounting file. In case of DATEV it is the contra account (Gegenkonto).
128curl --request GET \
--url https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/import requests
url = "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/', 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.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/"
req, _ := http.NewRequest("GET", url, nil)
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.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/charges_and_credits/internal_id/{internalId}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type_of_transaction": "credit",
"amount_cent": 1,
"is_gross": true,
"vat_type": "normal",
"due_date": "2023-12-25",
"input_id": "<string>",
"internal_id": "<string>",
"contract_id": "<string>",
"category": "<string>",
"display_name": "<string>",
"salespartner": "<string>",
"explanation_text": "<string>",
"bookkeeping_account": "<string>"
}
