-
Notifications
You must be signed in to change notification settings - Fork 0
write the first request
Simon Mauracher edited this page Feb 27, 2023
·
1 revision
by calling the endpoint /v1/generate with http post and the folling body, you will get an pdf
{
"style": {
"localeCode": "en",
"languageCode": "en",
"layout": "DIN_5008A", //or DIN_5008B
"showMarkerPuncher": true,
"image": {
"imageUrl": "https://de.wikipedia.org/static/images/project-logos/dewiki-2x.png"
},
"showMarkerFolding": true,
"showBankPaymentQrCode": true,
},
"sellerInformation": {
"address": {
"name": "Seller Company",
"street1": "Street 2",
"street2": "",
"zip": "48483",
"city": "Cologne",
"country": "GERMANY"
},
"email": "simon@mauracher.cc",
"phone": "0676/9405999",
"website": "https://www.mauracher.cc",
"vat": "ATU12345678",
"corporateRegisterNumber": "FN512686a"
},
"invoiceAddress": {
"name": "Company XYZ",
"street1": "Street 9428",
"zip": "56893",
"city": "Berlin",
"country": "GERMANY"
},
"invoiceInformation": {
"invoiceNumber": "#23388291",
"invoiceDate": "2022-12-10T00:00:00Z",
"dueDate": "2022-12-10T00:00:00Z"
},
"customerAddress": {
"name": "Customer #1",
"street1": "Street 48",
"street2": "Top 33",
"zip": "58931",
"city": "Munich",
"country": "GERMANY"
},
"invoiceData": {
"showNetColumn": true,
"showGrossColumn": true,
"showTaxColumn": true,
"showAmountColumn": true,
"showNetSum": true,
"showTaxSum": true,
"showGrossSum": true,
"sumDiscountPercentage": 10.0,
"sumDiscountFixed": 10.0,
"rows": [
{
"name": "Socks",
"description": "XXL",
"amount": 1,
"amountUnit": "pc",
"net": 20.00,
"tax": 2.00,
"gross": 22.0,
"discountFixed": 10.0,
"discountPerc": 20.0
},
{
"name": "Chicken-Nuggets",
"amount": 2,
"amountUnit": "pcs",
"net": 5.33,
"tax": 1.67,
"gross": 7.00,
}
]
},
"invoiceDataSuffix": "Thank you for shopping @ Lugner City\nWe are happy to welcome you again next time.",
"bankPaymentData": {
"accountHolder": "BANK International",
"bankName": "RAIFFEISEN",
"iban": "AT123456789023",
"bic": "RZTIAT3364"
}
}