Rechnung eines Kunden
GET/invoices/ {invoiceNumber}/
v1
GET
getInvoice
Diese Ressource repräsentiert eine einzelne Rechnung.
Über den Accept
-Header kann gesteuert werden, ob die Daten dieser Rechnung als
JSON-Dokument oder das tatsächliche Rechnungsdokument als PDF abgerufen werden sollen.
Request
- invoiceNumberintegerrequired
Rechnungsnummer
Responses
application/json
Die Rechnung
- Schema-Dokumentation
- Beispiel
- JSON Schema
- invoiceNumbernumberrequired
Die Rechnungsnummer
- invoicedAtstring (datetime)required
Das Datum der Rechnungsstellung
- netTotalobjectrequired
- currency"EUR"required
Die Währung des Betrags
- grossTotalobjectrequired
- currency"EUR"required
Die Währung des Betrags
- itemsarray of objectrequired
- Array[
- *object
- titlestringrequired
- textstringrequired
- netTotalobjectrequired
- currency"EUR"required
Die Währung des Betrags
- quantityobjectrequired
- amountintegerrequired
Anzahl
- unitstring
Einheit
]
{
"invoiceNumber": 123,
"invoicedAt": "string",
"netTotal": {
"currency": "EUR"
},
"grossTotal": {
"currency": "EUR"
},
"items": [
{
"title": "string",
"text": "string",
"netTotal": {
"currency": "EUR"
},
"quantity": {
"amount": 123,
"unit": "string"
}
}
]
}
{
"title": "Invoice",
"required": [
"grossTotal",
"invoiceNumber",
"invoicedAt",
"items",
"netTotal"
],
"type": "object",
"properties": {
"invoiceNumber": {
"type": "number",
"description": "Die Rechnungsnummer"
},
"invoicedAt": {
"type": "string",
"description": "Das Datum der Rechnungsstellung",
"format": "datetime"
},
"netTotal": {
"title": "InvoiceAmount",
"required": [
"currency"
],
"type": "object",
"properties": {
"currency": {
"type": "string",
"description": "Die Währung des Betrags",
"enum": [
"EUR"
]
}
}
},
"grossTotal": {
"title": "InvoiceAmount",
"required": [
"currency"
],
"type": "object",
"properties": {
"currency": {
"type": "string",
"description": "Die Währung des Betrags",
"enum": [
"EUR"
]
}
}
},
"items": {
"type": "array",
"items": {
"title": "InvoiceItem",
"required": [
"netTotal",
"quantity",
"text",
"title"
],
"type": "object",
"properties": {
"title": {
"type": "string"
},
"text": {
"type": "string"
},
"netTotal": {
"title": "InvoiceAmount",
"required": [
"currency"
],
"type": "object",
"properties": {
"currency": {
"type": "string",
"description": "Die Währung des Betrags",
"enum": [
"EUR"
]
}
}
},
"quantity": {
"required": [
"amount"
],
"type": "object",
"properties": {
"amount": {
"type": "integer",
"description": "Anzahl"
},
"unit": {
"type": "string",
"description": "Einheit"
}
}
}
}
}
}
}
}
Usage examples
- cURL
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v1/invoices/123