Invoice
This method will get all Invoice Objects
GET/api/invoice/invoices
Query parameters
searchStringstring | text to search for in the list |
orderFieldNamestring | name of the order field |
orderFieldSortstring | sorting modeAllowed: DESCASC |
pageinteger | page of the list |
pageSizeinteger | number of entries for each page |
withMaxPageNumberstring | returns the number of pages available as a header if this is set |
Responses
200Returns a list of Invoice objectsarray<Invoice>
Show fields (38)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
buyerInvoiceBuyerBuyer of the invoice.
Show fields (22)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
invoiceInvoiceInvoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
start_datestring (date-time)Start of the billed period.
end_datestring (date-time)End of the billed period.
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getAll();
if (result.success) {
print(result.data);
}[
{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}
]Creates a single Invoice
POST/api/invoice/invoices
Request body application/json
invoiceInvoice2Show fields (9)
accounting_typeAccountingTyperequiredAccounting type of the invoice.
payment_typePaymentType6Payment type of the invoice.
payment_goalPaymentGoalPayment term of the invoice.
itemsarray<InvoiceItem2>Items of the invoice.
buyerInvoiceBuyer2Buyer of the invoice.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
start_datestring (date-time)Start of the billed period.
end_datestring (date-time)End of the billed period.
billing_payment_profileBillingPaymentProfile9
Responses
200Creates a single InvoiceInvoice3
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem3>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice3Invoice the item belongs to.
project_itemCRMProjectItem8Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem15Product of the item.
buyerInvoiceBuyer3Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice3Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer9Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem8>Items of the offer.
buyerOfferBuyer8Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject17Project the offer belongs to.
invoicesarray<Invoice3>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport4>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject17Project the time report belongs to.
invoiceInvoice3Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 8 more fields
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoices \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"invoice": {
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true
},
"payment_type": {
"deleted": true
},
"payment_goal": {
"id": 42,
"name": "Beispiel",
"date_string": "string",
"deleted": true,
"global_default": true
},
"buyer": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"payment_bic": "BYLADEM1001"
},
"vat_category": "string",
"start_date": "2026-10-15T09:30:00+02:00"
}
}
'const options = {
method: 'POST',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({
invoice: {
accounting_type: {
name: 'Beispiel',
type: 'string',
id: 42,
cancelled_name: 'Beispiel',
deleted: true
},
payment_type: {deleted: true},
payment_goal: {
id: 42,
name: 'Beispiel',
date_string: 'string',
deleted: true,
global_default: true
},
buyer: {
address_street: 'Jakobistr. 39',
address_city: 'Hannover',
address_zip: '30163',
address_country: 'DE',
address_full_country: 'DE',
payment_bic: 'BYLADEM1001'
},
vat_category: 'string',
start_date: '2026-10-15T09:30:00+02:00'
}
})
};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices"
payload = { "invoice": {
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": True
},
"payment_type": { "deleted": True },
"payment_goal": {
"id": 42,
"name": "Beispiel",
"date_string": "string",
"deleted": True,
"global_default": True
},
"buyer": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"payment_bic": "BYLADEM1001"
},
"vat_category": "string",
"start_date": "2026-10-15T09:30:00+02:00"
} }
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoices', [
'body' => '{"invoice":{"accounting_type":{"name":"Beispiel","type":"string","id":42,"cancelled_name":"Beispiel","deleted":true},"payment_type":{"deleted":true},"payment_goal":{"id":42,"name":"Beispiel","date_string":"string","deleted":true,"global_default":true},"buyer":{"address_street":"Jakobistr. 39","address_city":"Hannover","address_zip":"30163","address_country":"DE","address_full_country":"DE","payment_bic":"BYLADEM1001"},"vat_category":"string","start_date":"2026-10-15T09:30:00+02:00"}}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"invoice\":{\"accounting_type\":{\"name\":\"Beispiel\",\"type\":\"string\",\"id\":42,\"cancelled_name\":\"Beispiel\",\"deleted\":true},\"payment_type\":{\"deleted\":true},\"payment_goal\":{\"id\":42,\"name\":\"Beispiel\",\"date_string\":\"string\",\"deleted\":true,\"global_default\":true},\"buyer\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"payment_bic\":\"BYLADEM1001\"},\"vat_category\":\"string\",\"start_date\":\"2026-10-15T09:30:00+02:00\"}}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"invoice\":{\"accounting_type\":{\"name\":\"Beispiel\",\"type\":\"string\",\"id\":42,\"cancelled_name\":\"Beispiel\",\"deleted\":true},\"payment_type\":{\"deleted\":true},\"payment_goal\":{\"id\":42,\"name\":\"Beispiel\",\"date_string\":\"string\",\"deleted\":true,\"global_default\":true},\"buyer\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"payment_bic\":\"BYLADEM1001\"},\"vat_category\":\"string\",\"start_date\":\"2026-10-15T09:30:00+02:00\"}}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices")
.post(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices"
payload := strings.NewReader("{\"invoice\":{\"accounting_type\":{\"name\":\"Beispiel\",\"type\":\"string\",\"id\":42,\"cancelled_name\":\"Beispiel\",\"deleted\":true},\"payment_type\":{\"deleted\":true},\"payment_goal\":{\"id\":42,\"name\":\"Beispiel\",\"date_string\":\"string\",\"deleted\":true,\"global_default\":true},\"buyer\":{\"address_street\":\"Jakobistr. 39\",\"address_city\":\"Hannover\",\"address_zip\":\"30163\",\"address_country\":\"DE\",\"address_full_country\":\"DE\",\"payment_bic\":\"BYLADEM1001\"},\"vat_category\":\"string\",\"start_date\":\"2026-10-15T09:30:00+02:00\"}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/invoice.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.post(Invoice.fromJson({
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true
},
"payment_type": {
"deleted": true
},
"payment_goal": {
"id": 42,
"name": "Beispiel",
"date_string": "string",
"deleted": true,
"global_default": true
},
"buyer": {
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163",
"address_country": "DE",
"address_full_country": "DE",
"payment_bic": "BYLADEM1001"
},
"vat_category": "string",
"start_date": "2026-10-15T09:30:00+02:00"
}));
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}Returns the default values used for creating free invoices.
GET/api/invoice/invoices/creation_defaults
All fields are optional and only populated when configured via settings.
Responses
200Returns the invoice creation defaultsobject
Show fields (5)
default_accounting_typestringType string of the default AccountingType (e.g. 'general'). Null if not configured.
default_multiple_tax_ratesbooleanWhether 'apply multiple tax rates' should be enabled by default.
default_unitstringDefault unit for free positions (e.g. 'pauschal'). Null if not configured.
default_quantitynumber (float)Default quantity for free positions. Null if not configured.
default_price_is_bruttobooleanWhether price should default to brutto instead of netto.
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/creation_defaults"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getCreationDefaults();
if (result.success) {
print(result.data);
}{
"default_accounting_type": "string",
"default_multiple_tax_rates": true,
"default_unit": "string",
"default_quantity": 1.5,
"default_price_is_brutto": true
}This method will print an Invoice as PDF (optional with ZUGFeRD XML)
GET/api/invoice/invoices/{id}/pdf
Path parameters
idrequiredstring |
Responses
200Returns the Invoice as PDF file
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/pdf"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getDownloadLinkPdf('42');
print(result);This method will return the GiroCode (EPC QR code) of an open Invoice for a bank transfer
GET/api/invoice/invoices/{id}/girocode
Requires the setting inwendo_invoice_girocode_enabled. Fails with 400 if the invoice gets no code (cancelled, paid, nothing to pay, direct debit or no valid IBAN in the company data).
Path parameters
idrequiredstring |
Responses
200Returns payload, SVG, amount and remittance of the GiroCode
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.get(
Uri.parse('https://your-instance.iw-erp.de/api/invoice/invoices/42/girocode'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);This method will print an ZUGFeRD XML
GET/api/invoice/invoices/{id}/zugferd
Path parameters
idrequiredstring |
Responses
200Returns the Invoice as ZUGFeRD XML
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/zugferd"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getDownloadLinkZUGFeRD('42');
print(result);This method will get a single Invoice Object with the given id
GET/api/invoice/invoices/{identifier}
Path parameters
identifierrequiredstring |
Responses
200Returns a single InvoiceInvoice4
Show fields (50)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
mit_last_send_emailstring (date-time)Point in time the last e-mail was sent.
mit_to_emailstringE-mail address the mail is intended for.
mit_should_send_emailbooleanWhether an e-mail should be sent.
mit_last_send_postalstring (date-time)Point in time the last letter was sent.
mit_to_address_namestringName of the postal recipient.
mit_to_address_street_levelstringStreet and house number of the postal recipient.
mit_to_address_citystringCity of the postal recipient.
mit_to_address_zipstringPostal code of the postal recipient.
mit_to_address_countrystringCountry of the postal recipient.
mit_should_send_postalbooleanWhether a letter should be sent.
import_origin_idstringID of the record in the source system of the import.
import_origin_id_altstringAlternative ID of the record in the source system of the import.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem4>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice4Invoice the item belongs to.
project_itemCRMProjectItem10Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem17Product of the item.
buyerInvoiceBuyer4Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice4Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer10Offer the invoice was created from.
Show fields (43)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
mit_last_send_emailstring (date-time)Point in time the last e-mail was sent.
mit_to_emailstringE-mail address the mail is intended for.
mit_should_send_emailbooleanWhether an e-mail should be sent.
mit_last_send_postalstring (date-time)Point in time the last letter was sent.
mit_to_address_namestringName of the postal recipient.
mit_to_address_street_levelstringStreet and house number of the postal recipient.
mit_to_address_citystringCity of the postal recipient.
mit_to_address_zipstringPostal code of the postal recipient.
mit_to_address_countrystringCountry of the postal recipient.
mit_should_send_postalbooleanWhether a letter should be sent.
import_origin_idstringID of the record in the source system of the import.
import_origin_id_altstringAlternative ID of the record in the source system of the import.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem9>Items of the offer.
buyerOfferBuyer9Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
- … 6 more fields
- … 15 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42 \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.get('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"mit_last_send_email": "2026-10-15T09:30:00+02:00",
"mit_to_email": "lena.hartmann@example.org",
"mit_should_send_email": true,
"mit_to_address_name": "Beispiel"
}This method will get a new Invoice Object for the given offer id
GET/api/invoice/invoices/{offerIdentifier}/offers/{percentage}
Path parameters
offerIdentifierrequiredstring | |
percentagerequiredstring |
Responses
200Returns a new Invoice for the given OfferInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42 \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/offers/42"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForOffer('42', 42);
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will get a new Invoice Object for a single projectitem
GET/api/invoice/invoices/{projectItemIdentifier}/projectitem
Path parameters
projectItemIdentifierrequiredstring |
Responses
200Returns a new Invoice for a single ProjectItemInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/projectitem"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForProjectItem('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will get a new Invoice Object for the project
GET/api/invoice/invoices/{projectIdentifier}/project
Path parameters
projectIdentifierrequiredstring |
Responses
200Returns a new Invoice for a ProjectInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/project \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/project', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/project"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/project', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/project"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/project")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/project"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForProject('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will get a new Invoice Object for the given event sign up
GET/api/invoice/invoices/{eventSignUpIdentifier}/eventsignup
Path parameters
eventSignUpIdentifierrequiredstring |
Responses
200Returns a new Invoice for an EventSignUpInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/eventsignup"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForEventSignUp('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will get a new Invoice Object for the given booking
GET/api/invoice/invoices/{bookingIdentifier}/booking
Path parameters
bookingIdentifierrequiredstring |
Responses
200Returns a new Invoice for a BookingInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/booking \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/booking', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/booking"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/booking', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/booking"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/booking")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/booking"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForBaseBooking('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will get a new Invoice Object for the given booking group
GET/api/invoice/invoices/{bookingGroupIdentifier}/booking_group
Path parameters
bookingGroupIdentifierrequiredstring |
Responses
200Returns a new Invoice for a BookingGroupInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/booking_group"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForBaseBookingGroup('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will save new Invoice Objects for all entries of event
POST/api/invoice/invoices/{eventIdentifier}/events
Path parameters
eventIdentifierrequiredstring |
Responses
200Creates Invoices for all entries of an Event
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/events \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/events"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/events', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/events"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/events")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/events"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.postForEvent('42');
if (result.success) {
print(result.data);
}This method will get a new Invoice Object for the given PersonLogBookEntry
GET/api/invoice/invoices/{logBookEntryIdentifier}/logbookentryadd
Path parameters
logBookEntryIdentifierrequiredstring |
Responses
200Returns a new Invoice for a LogBookEntry (add)Invoice6
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem6>Items of the invoice.
Show fields (19)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice6Invoice the item belongs to.
project_itemCRMProjectItem12Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
unified_categoryUnifiedCategory36Category the item belongs to.
productPredefinedBillingItem19Product of the item.
buyerInvoiceBuyer6Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice6Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer12Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem11>Items of the offer.
buyerOfferBuyer11Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject20Project the offer belongs to.
invoicesarray<Invoice6>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport7>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject20Project the time report belongs to.
invoiceInvoice6Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (3)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
- … 59 more fields
- … 8 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentryadd"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForLogBookEntryAdd('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}This method will get a new Invoice Object for the given PersonLogBookEntry
GET/api/invoice/invoices/{logBookEntryIdentifier}/logbookentrydelete
Path parameters
logBookEntryIdentifierrequiredstring |
Responses
200Returns a new Invoice for a LogBookEntry (delete)Invoice6
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem6>Items of the invoice.
Show fields (19)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice6Invoice the item belongs to.
project_itemCRMProjectItem12Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
unified_categoryUnifiedCategory36Category the item belongs to.
productPredefinedBillingItem19Product of the item.
buyerInvoiceBuyer6Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice6Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer12Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem11>Items of the offer.
buyerOfferBuyer11Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject20Project the offer belongs to.
invoicesarray<Invoice6>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport7>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject20Project the time report belongs to.
invoiceInvoice6Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (3)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
- … 59 more fields
- … 8 more fields
curl --request GET \
--url https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoices/42/logbookentrydelete"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.getForLogBookEntryDelete('42');
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}Add an Invoice to a CRMCompany
POST/api/invoice/invoice/{id}/add/to/company
Path parameters
idrequiredstring |
Responses
200Add an Invoice to a CRMCompanyCRMCompany23
Show fields (62)
idintegerPrimary key of the company. Internal ID.
short_namestringShort name of the company.
company_namestringLegal name of the company.
secondary_namestringSecond name line of the company.
direct_dialstringDirect dial number of the company.
invoice_emailstringE-mail address for invoices.
send_invoice_emailbooleanSend invoices by e-mail.
send_invoice_letterbooleanSend invoices by letter.
time_report_emailstringE-mail address for time reports.
payment_goalPaymentGoalPayment term of the company.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
payment_intervalstringInterval of the payments.
vatidstringVAT identification number.
taxnumberstringTax number of the company.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
taxTaxTax rate used for the company.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
infostringInformation about the company.
numberstringCustomer or supplier number of the company.
manual_numberintegerNumber set manually instead of the automatic number.
number_stringstringCompany number as text, including prefix.
is_customerbooleanThe company is a customer.
is_supplierbooleanThe company is a supplier.
is_otherbooleanThe company is neither customer nor supplier.
is_memberbooleanThe company is a member.
archivedbooleanThe company is archived.
categoryCRMCompanyCategoryCategory of the company.
Show fields (10)
idintegerPrimary key of the company category. Internal ID.
namestringName of the company category.
descriptionstringDescription of the company category.
deletedbooleanThe category is deleted.
global_defaultbooleanDefault category for new companies.
enabled_customer_portalbooleanCompanies of this category may use the customer portal.
g_drive_root_dirstringRoot folder in Google Drive for companies of this category.
g_drive_root_dir_archivedstringRoot folder in Google Drive for archived companies of this category.
require_company_addressbooleanAn address must be entered for companies of this category.
require_company_billingbooleanBilling details must be entered for companies of this category.
visible_for_customerbooleanWhether the company is visible to the customer.
founding_datestring (date-time)Founding date of the company.
nace_sectionstringNACE section code (letter A-U)
nace_codestringNACE code (numeric like 01.11, 62.01)
search_stringstringText that the entity can be searched by.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
payment_typePaymentTypeShow fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
company_employee_countintegerNumber of employees of the company.
company_founding_yearintegerFounding year of the company.
company_family_ownedbooleanWhether the company is family-owned.
company_sales_volumestringSales volume of the company.
company_segmentstringMarket segment of the company.
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/add/to/company"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/crm_company.dart';
import 'package:iw_erp_api/model/invoice.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.addToCrmCompany(Invoice.fromJson({}), CrmCompany.fromJson({}));
if (result.success) {
print(result.data);
}{
"id": 42,
"short_name": "Beispiel",
"company_name": "Beispiel",
"secondary_name": "Beispiel",
"invoice_email": "lena.hartmann@example.org",
"send_invoice_email": true,
"time_report_email": "lena.hartmann@example.org",
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163"
}Delete an Invoice from a CRMCompany
POST/api/invoice/invoice/{id}/delete/from/company
Path parameters
idrequiredstring |
Responses
200Remove an Invoice from a CRMCompanyCRMCompany23
Show fields (62)
idintegerPrimary key of the company. Internal ID.
short_namestringShort name of the company.
company_namestringLegal name of the company.
secondary_namestringSecond name line of the company.
direct_dialstringDirect dial number of the company.
invoice_emailstringE-mail address for invoices.
send_invoice_emailbooleanSend invoices by e-mail.
send_invoice_letterbooleanSend invoices by letter.
time_report_emailstringE-mail address for time reports.
payment_goalPaymentGoalPayment term of the company.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
payment_intervalstringInterval of the payments.
vatidstringVAT identification number.
taxnumberstringTax number of the company.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
taxTaxTax rate used for the company.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
infostringInformation about the company.
numberstringCustomer or supplier number of the company.
manual_numberintegerNumber set manually instead of the automatic number.
number_stringstringCompany number as text, including prefix.
is_customerbooleanThe company is a customer.
is_supplierbooleanThe company is a supplier.
is_otherbooleanThe company is neither customer nor supplier.
is_memberbooleanThe company is a member.
archivedbooleanThe company is archived.
categoryCRMCompanyCategoryCategory of the company.
Show fields (10)
idintegerPrimary key of the company category. Internal ID.
namestringName of the company category.
descriptionstringDescription of the company category.
deletedbooleanThe category is deleted.
global_defaultbooleanDefault category for new companies.
enabled_customer_portalbooleanCompanies of this category may use the customer portal.
g_drive_root_dirstringRoot folder in Google Drive for companies of this category.
g_drive_root_dir_archivedstringRoot folder in Google Drive for archived companies of this category.
require_company_addressbooleanAn address must be entered for companies of this category.
require_company_billingbooleanBilling details must be entered for companies of this category.
visible_for_customerbooleanWhether the company is visible to the customer.
founding_datestring (date-time)Founding date of the company.
nace_sectionstringNACE section code (letter A-U)
nace_codestringNACE code (numeric like 01.11, 62.01)
search_stringstringText that the entity can be searched by.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
main_phonestringMain phone number.
main_faxstringMain fax number.
main_emailstringMain e-mail address.
websitestringWebsite address.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
payment_typePaymentTypeShow fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
company_employee_countintegerNumber of employees of the company.
company_founding_yearintegerFounding year of the company.
company_family_ownedbooleanWhether the company is family-owned.
company_sales_volumestringSales volume of the company.
company_segmentstringMarket segment of the company.
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/delete/from/company"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/crm_company.dart';
import 'package:iw_erp_api/model/invoice.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.removeFromCrmCompany(Invoice.fromJson({}), CrmCompany.fromJson({}));
if (result.success) {
print(result.data);
}{
"id": 42,
"short_name": "Beispiel",
"company_name": "Beispiel",
"secondary_name": "Beispiel",
"invoice_email": "lena.hartmann@example.org",
"send_invoice_email": true,
"time_report_email": "lena.hartmann@example.org",
"address_street": "Jakobistr. 39",
"address_city": "Hannover",
"address_zip": "30163"
}Close an Invoice
POST/api/invoice/invoice/{id}/close
Path parameters
idrequiredstring |
Responses
200Close an InvoiceInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/close \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/close', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/close"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/close', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/close"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/close")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/close"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/invoice.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.close(Invoice.fromJson({}));
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}Record a partial payment of an open Invoice
POST/api/invoice/invoice/{id}/payment
Only with the setting billing_invoice_partial_payment. Once the payments reach the gross amount, the invoice counts as paid.
Path parameters
idrequiredstring |
Request body application/json
dataobjectShow fields (3)
amountnumberPaid amount (gross)
paymentDatestringDefaults to today
cashDiscountnumberSkonto (gross) deducted with the final payment; needs billing_invoice_cash_discount
Responses
200Record a partial payment of an InvoiceInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/payment \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"data": {
"amount": 595,
"paymentDate": "2026-02-20",
"cashDiscount": 23.8
}
}
'const options = {
method: 'POST',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({data: {amount: 595, paymentDate: '2026-02-20', cashDiscount: 23.8}})
};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/payment"
payload = { "data": {
"amount": 595,
"paymentDate": "2026-02-20",
"cashDiscount": 23.8
} }
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/payment', [
'body' => '{"data":{"amount":595,"paymentDate":"2026-02-20","cashDiscount":23.8}}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/payment"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"data\":{\"amount\":595,\"paymentDate\":\"2026-02-20\",\"cashDiscount\":23.8}}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"data\":{\"amount\":595,\"paymentDate\":\"2026-02-20\",\"cashDiscount\":23.8}}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/payment")
.post(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/payment"
payload := strings.NewReader("{\"data\":{\"amount\":595,\"paymentDate\":\"2026-02-20\",\"cashDiscount\":23.8}}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'dart:convert';
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://your-instance.iw-erp.de/api/invoice/invoice/42/payment'),
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: jsonEncode({
"data": {
"amount": 595,
"paymentDate": "2026-02-20",
"cashDiscount": 23.8
}
}),
);
print(response.body);{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}Cancel an Invoice
POST/api/invoice/invoice/{id}/cancel
Path parameters
idrequiredstring |
Responses
200Cancel an InvoiceInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/invoice.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.cancel(Invoice.fromJson({}));
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}Set mail intend for an Invoice
POST/api/invoice/invoice/{identifier}/mail_intend
Path parameters
identifierrequiredstring |
Responses
200Set mail intend for an InvoiceInvoice7
Show fields (48)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
mit_last_send_emailstring (date-time)Point in time the last e-mail was sent.
mit_to_emailstringE-mail address the mail is intended for.
mit_should_send_emailbooleanWhether an e-mail should be sent.
mit_last_send_postalstring (date-time)Point in time the last letter was sent.
mit_to_address_namestringName of the postal recipient.
mit_to_address_street_levelstringStreet and house number of the postal recipient.
mit_to_address_citystringCity of the postal recipient.
mit_to_address_zipstringPostal code of the postal recipient.
mit_to_address_countrystringCountry of the postal recipient.
mit_should_send_postalbooleanWhether a letter should be sent.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem7>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice7Invoice the item belongs to.
project_itemCRMProjectItem13Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem20Product of the item.
buyerInvoiceBuyer7Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice7Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer13Offer the invoice was created from.
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
mit_last_send_emailstring (date-time)Point in time the last e-mail was sent.
mit_to_emailstringE-mail address the mail is intended for.
mit_should_send_emailbooleanWhether an e-mail should be sent.
mit_last_send_postalstring (date-time)Point in time the last letter was sent.
mit_to_address_namestringName of the postal recipient.
mit_to_address_street_levelstringStreet and house number of the postal recipient.
mit_to_address_citystringCity of the postal recipient.
mit_to_address_zipstringPostal code of the postal recipient.
mit_to_address_countrystringCountry of the postal recipient.
mit_should_send_postalbooleanWhether a letter should be sent.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem12>Items of the offer.
buyerOfferBuyer12Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject21Project the offer belongs to.
invoicesarray<Invoice7>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
- … 2 more fields
- … 14 more fields
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/mail_intend"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/billing_invoice_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/invoice.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await BillingInvoiceController.updateMailIntend(Invoice.fromJson({}));
if (result.success) {
print(result.data);
}{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"mit_last_send_email": "2026-10-15T09:30:00+02:00",
"mit_to_email": "lena.hartmann@example.org",
"mit_should_send_email": true,
"mit_to_address_name": "Beispiel"
}Push an Invoice to BuchhaltungsButler (manual transfer / re-transfer)
POST/api/invoice/invoice/{id}/buchhaltungsbutler_push
Path parameters
idrequiredstring |
Responses
200Push an Invoice to BuchhaltungsButlerInvoice5
Show fields (45)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
Show fields (6)
idintegerPrimary key of the tax rate. Internal ID.
namestringrequiredName of the tax rate, for example 19 percent.
valuenumber (float)Tax rate in percent.
deletedbooleanThe tax rate is deleted.
global_defaultbooleanDefault tax rate for new items.
datev_tax_keyintegerDATEV Steuerschlüssel für Umsatzsteuer (Ausgangsrechnungen). Wird von BuchhaltungsButler und DATEV-Export genutzt. Standardwerte: 0 = Kein Steuerausweis (0%) 2 = Umsatzsteuer 7% (ermäßigt) 3 = Umsatzsteuer 19% (Regelsteuersatz) Für Vorsteuer (Eingangsrechnungen) gibt es eine spiegelbildliche Zuordnung: 0 = Keine Vorsteuer (0%) 5 = Vorsteuer 7% 8 = Vorsteuer 19%
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
Show fields (16)
idintegerPrimary key of the booking group. Internal ID.
start_timestring (date-time)Start of the booking group.
end_timestring (date-time)End of the booking group.
booking_typestringType of the bookings in the group.
booking_statusstringStatus of the bookings in the group.
externalbooleanThe group was made by an external party.
billing_typestringBilling type of the group, for example per booking or per group.
people_countintegerNumber of people in the group.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
namestringName of the entity.
deletedbooleanThis property is used to mark an entity as deleted / archived
deletion_reasonstringReason for the deletion.
deletion_datestring (date-time)Point in time of the deletion.
colorstringBackground color as hex value.
fg_colorstringForeground color as hex value.
search_stringstringText that the entity can be searched by.
accounting_typeAccountingTyperequiredAccounting type of the invoice.
Show fields (6)
idintegerPrimary key of the accounting type. Internal ID.
namestringrequiredName of the accounting type, for example course fee.
cancelled_namestringName used when an invoice of this type is canceled.
typestringrequiredType of the accounting type, for example invoice or credit note.
deletedbooleanThe accounting type is deleted.
default_expense_categoryExpenseCategory10Standard-EÜR-Kategorie für diesen Rechnungstyp (für Einnahmen-Mapping)
payment_typePaymentTypePayment type of the invoice.
Show fields (10)
idintegerPrimary key of the payment type. Internal ID.
namestringName of the payment type, for example transfer or cash.
autobooleanPayments of this type are matched automatically.
conditionsstringConditions for matching payments to this type.
linked_keywordsstringKeywords in bank transactions that link to this payment type.
global_defaultbooleanDefault payment type for new invoices.
bank_import_defaultbooleanDefault payment type for bank imports.
is_direct_debitbooleanThe payment type is a direct debit.
is_externalbooleanThe payment is handled by an external service.
deletedbooleanThis property is used to mark an entity as deleted / archived
payment_goalPaymentGoalPayment term of the invoice.
Show fields (5)
idintegerPrimary key of the payment goal. Internal ID.
namestringName of the payment term, for example 14 days.
date_stringstringDate pattern of the payment term as text.
deletedbooleanThe payment term is deleted.
global_defaultbooleanDefault payment term for new invoices.
expense_categoryExpenseCategory10EÜR-Kategorie für diese Rechnung (Einnahmen-Zuordnung) Wenn nicht gesetzt, wird die Default-Kategorie des AccountingTypes verwendet
Show fields (19)
idintegerPrimary key of the expense category. Internal ID.
codestringKurzbezeichnung/Code (z.B. "WAREN", "PERSONAL", "MIETE")
eur_line_numberintegerZeile in der Anlage EÜR (z.B. 23 für Wareneinkauf)
eur_line_namestringBezeichnung der EÜR-Zeile (z.B. "Waren, Rohstoffe und Hilfsstoffe")
category_typestringTyp der Kategorie (expense, income, neutral, asset, private)
default_taxTaxStandard-Steuersatz für diese Kategorie
cost_centerCostCenterKostenstelle der Kategorie - bei Vereinen die steuerliche Sphäre. Ein Beleg trägt keine eigene Sphäre; über seine Kategorie bekommt er eine. Die EÜR des wirtschaftlichen Geschäftsbetriebs liest sie (billing_euer_commercial_sphere_only), die automatische Buchung setzt sie auf die Buchungszeilen (billing_accounting_cost_center_from_category).
is_vat_deductiblebooleanIst Vorsteuerabzug möglich?
is_immediate_deductionbooleanIst die Kategorie sofort abzugsfähig? (vs. Abschreibung über mehrere Jahre)
depreciation_yearsintegerAbschreibungsdauer in Jahren (für Anlagevermögen)
sort_orderintegerSortierreihenfolge
is_activebooleanIst die Kategorie aktiv/sichtbar?
colorstringFarbe für UI-Darstellung (Hex-Code)
iconstringIcon-Name für UI-Darstellung
is_systembooleanIst dies eine System-Kategorie? (nicht löschbar)
deletedbooleanThis property is used to mark an entity as deleted / archived
namestringName of the entity.
createdstring (date-time)Point in time the entity was created.
updatedstring (date-time)Point in time the entity was last updated.
itemsarray<InvoiceItem5>Items of the invoice.
Show fields (18)
idintegerPrimary key of the invoice item. Internal ID.
descriptionstringDescription of the invoice item.
price_is_bruttobooleanWhether the price is a gross price including tax.
skustringArtikelnummer (Stock Keeping Unit)
barcodestringBarcode (ISBN, UPC, GTIN usw.)
item_typestringTyp (Item, Shipping)
netto_valuenumber (float)Net value of the invoice item.
brutto_valuenumber (float)Gross value of the invoice item.
tax_valuenumber (float)Tax amount of the invoice item.
quantitynumber (float)requiredQuantity of the invoice item.
pricenumber (float)requiredUnit price of the invoice item.
namestringrequiredName of the invoice item.
unitstringrequiredUnit of the invoice item.
taxTaxTax rate applied to the invoice item.
invoiceInvoice5Invoice the item belongs to.
project_itemCRMProjectItem11Project item the invoice item was created from.
base_event_sign_upBaseEventSignUp11Sign-up the item was created for.
productPredefinedBillingItem18Product of the item.
buyerInvoiceBuyer5Buyer of the invoice.
Show fields (29)
idintegerPrimary key of the client. Internal ID.
namestringName of the client on the invoice.
vat_idstringVAT ID of the client.
taxnumberstringTax number of the client.
buyer_reference_idstringLeitweg-ID or custom reference ID defined by the customer
secondary_namestringSecond name line of the client on the invoice.
addressstringAddress as text.
address_streetstringStreet of the address.
address_house_numberstringHouse number of the address.
address_street_levelstringStreet and house number of the address.
address_costringCare-of line of the address.
address_citystringCity of the address.
address_zipstringPostal code of the address.
address_admin_level1stringFirst administrative level of the address, e.g. the federal state.
address_countrystringCountry code of the address.
address_full_countrystringFull name of the country of the address.
address_geo_latstringLatitude of the address.
address_geo_lngstringLongitude of the address.
address_external_provider_idstringfield to store the external provider id of the address. e.g. Google Maps PlaceID like google:ChIJVcKw5r90sEcRhdjNq6NItqE
numberstringCustomer number of the buyer.
search_stringstringText that the entity can be searched by.
payment_ownerstringAccount owner of the direct debit.
payment_institutionstringName of the bank of the direct debit.
payment_bicstringBIC of the bank account.
payment_ibanstringIBAN of the bank account.
payment_mandatestringReference of the SEPA mandate.
payment_mandate_sign_datestring (date-time)Date the SEPA mandate was signed.
payment_mandate_valid_until_datestring (date-time)Date until which the SEPA mandate is valid.
invoiceInvoice5Invoice the buyer belongs to.
payment_datestring (date-time)Date the invoice was paid.
vat_categorystringDer umsatzsteuerliche Sachverhalt. Der Steuersatz sagt nicht, in welche Zeile der Voranmeldung ein Umsatz gehört. Null Prozent stehen an einer innergemeinschaftlichen Lieferung (Kennzahl 41), an einer Ausfuhr (43), an einer Leistung nach § 13b UStG (60) und an einem steuerfreien Umsatz nach § 4 UStG (48) - vier verschiedene Zeilen, derselbe Steuersatz. Hier ist die einzige Stelle, an der jemand das weiss: beim Schreiben der Rechnung ist bekannt, ob der Kunde eine USt-IdNr. hat und wohin die Ware geht. Später ist es nicht mehr rekonstruierbar. Ohne Angabe der Regelfall - alles andere war bisher nicht erfassbar.
is_payment_date_from_ext_servicebooleanThe payment date comes from an external service.
direct_debit_exportedbooleanThe invoice was exported for direct debit.
offerOffer11Offer the invoice was created from.
Show fields (36)
idintegerPrimary key of the invoice document. Internal ID.
tokenstringToken that identifies the document for public access.
numberintegerRunning document number.
manual_number_prefixstringPrefix of a manually entered document number.
manual_numberintegerManually entered document number.
number_stringstringDocument number as displayed to users.
generation_datestring (date-time)Date the document was generated.
number_datestring (date-time)Date used for the document number.
messagestringMessage printed on the document.
currencystringCurrency of the document.
namestringName of the document.
due_datestring (date-time)Due date of the document.
netto_valuenumber (float)Net total of the document.
brutto_valuenumber (float)Gross total of the document.
tax_valuenumber (float)Total tax amount of the document.
taxTaxrequiredTax rate applied to the document.
linked_number_titlestringTitle of the linked document number.
linked_numberstringNumber of the linked document.
statusstringStatus of the document.
previous_statusstringStatus before the last change.
status_updatedstring (date-time)Point in time the status was last changed.
archivedbooleanWhether the document is archived.
last_pdf_exportstring (date-time)Point in time the PDF was last exported.
last_status_exportstringStatus at the last export.
base_booking_groupBaseBookingGroup10Booking group the document is based on.
search_stringstringText that the entity can be searched by.
offer_accounting_typeOfferAccountingTyperequiredAccounting type of the offer.
itemsarray<OfferItem10>Items of the offer.
buyerOfferBuyer10Buyer of the offer.
accepted_datestring (date-time)Date the offer was accepted.
is_accepted_date_from_ext_servicebooleanThe acceptance date comes from an external service.
projectCRMProject19Project the offer belongs to.
invoicesarray<Invoice5>Invoices created from the offer.
base_event_sign_upBaseEventSignUp11Sign-up the offer was created for.
base_bookingBaseBooking12Booking the offer was created for.
base_event_sign_up_groupBaseEventSignUpGroup2Sign-up group the offer was created for.
time_reportsarray<ProjectTimeReport6>Time reports billed on the invoice.
Show fields (8)
idintegerPrimary key of the project time report. Internal ID.
projectCRMProject19Project the time report belongs to.
invoiceInvoice5Invoice the time report was billed on.
time_billed_on_ticket_closebooleanTime is billed when the ticket is closed.
startstring (date-time)Start of the reported period.
endstring (date-time)End of the reported period.
time_string_billablestringBillable time as text.
time_string_not_billablestringNon-billable time as text.
payment_provider_statusstringStatus at the payment provider.
payment_provider_referencestringReference at the payment provider.
payment_provider_transaction_referencestringTransaction reference at the payment provider.
cancel_datestring (date-time)Date the invoice was canceled.
cancel_textstringText of the cancellation.
base_event_sign_upBaseEventSignUp11Sign-up the invoice was created for.
Show fields (4)
bib_range_idintegerage_classstringAltersklasse nach DLV, z. B. M40 - berechnet aus Geburtstag, Geschlecht und Eventdatum.
idintegerPrimary key of the sign-up. Internal ID.
- … 58 more fields
- … 7 more fields
curl --request POST \
--url https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://your-instance.iw-erp.de/api/invoice/invoice/42/buchhaltungsbutler_push'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);{
"tax": {
"name": "Beispiel",
"id": 42,
"value": 1.5,
"deleted": true,
"global_default": true,
"datev_tax_key": 1
},
"accounting_type": {
"name": "Beispiel",
"type": "string",
"id": 42,
"cancelled_name": "Beispiel",
"deleted": true,
"default_expense_category": {
"id": 42,
"eur_line_name": "Beispiel",
"color": "#3f5efb",
"name": "Beispiel",
"code": "string",
"eur_line_number": 1,
"category_type": "string",
"is_vat_deductible": true,
"is_immediate_deduction": true,
"depreciation_years": 1
}
},
"id": 42,
"currency": "EUR",
"name": "Beispiel",
"linked_number_title": "Beispiel",
"cancel_text": "Text",
"token": "string",
"number": 1,
"manual_number_prefix": "string"
}