@@ -651,6 +651,60 @@ paths:
651651 application/json :
652652 schema :
653653 $ref : ' #/components/schemas/ErrorMessage'
654+ /v1/invoice-pdf :
655+ post :
656+ tags :
657+ - Invoice PDF
658+ summary : Create a invoice PDF
659+ operationId : createInvoicePDF
660+ requestBody :
661+ description : The invoice object to create a PDF from.
662+ content :
663+ application/json :
664+ schema :
665+ $ref : ' #/components/schemas/InvoicePayload'
666+ required : true
667+ responses :
668+ " 200 " :
669+ description : OK
670+ content :
671+ application/pdf :
672+ schema :
673+ format : binary
674+ type : string
675+ " 402 " :
676+ description : Your remaining quota is not sufficient to perform the request.
677+ content :
678+ application/json :
679+ schema :
680+ $ref : ' #/components/schemas/ErrorMessage'
681+ " 403 " :
682+ description : Access is not allowed. The API key may be missing from the
683+ request or the API key may have been revoked.
684+ content :
685+ application/json :
686+ schema :
687+ $ref : ' #/components/schemas/ErrorMessage'
688+ " 406 " :
689+ description : A required parameter is missing or in a wrong format.
690+ content :
691+ application/json :
692+ schema :
693+ $ref : ' #/components/schemas/ErrorMessage'
694+ " 500 " :
695+ description : An unexpected error occurred on the server side. Please retry
696+ the request at a later time.
697+ content :
698+ application/json :
699+ schema :
700+ $ref : ' #/components/schemas/ErrorMessage'
701+ " 503 " :
702+ description : " The endpoint is temporarily unavailable, either due to planned\
703+ \ maintenance or outage. Please retry the request at a later time."
704+ content :
705+ application/json :
706+ schema :
707+ $ref : ' #/components/schemas/ErrorMessage'
654708 /v1/swiss-qr-invoice :
655709 post :
656710 tags :
@@ -1017,59 +1071,237 @@ components:
10171071 - eea-eu-hicp-2015
10181072 - eu-eu-hicp-2015
10191073 type : string
1020- SwissQrInvoicePayload :
1074+ InvoicePayload :
10211075 required :
1022- - creditor
1076+ - template
1077+ - sender
1078+ - recipient
1079+ - items
10231080 type : object
10241081 properties :
1025- creditor :
1082+ template :
1083+ description : The invoice template
1084+ enum :
1085+ - ONE
1086+ - TWO
1087+ - THREE
1088+ type : string
1089+ sender :
1090+ description : The data of the invoice issuer
1091+ type : array
1092+ items :
1093+ type : string
1094+ recipient :
1095+ description : The data of the invoice recipient
1096+ type : array
1097+ items :
1098+ type : string
1099+ logo :
1100+ description : The logo of the invoice issuer encoded as base64.
1101+ type : string
1102+ locale :
1103+ description : The country or language according to which the values are to
1104+ be formatted.
1105+ default : de-AT
1106+ type : string
1107+ currency :
1108+ description : The currency according to ISO 4217
1109+ default : EUR
1110+ type : string
1111+ items :
1112+ description : The list of items that are to be invoiced.
1113+ type : array
1114+ items :
1115+ description : " A single invoice item. Either unitPrice or sumPrice must\
1116+ \ be set. If the unitPrice field is set, the sumPrice is calculated."
1117+ required :
1118+ - description
1119+ type : object
1120+ properties :
1121+ description :
1122+ description : The description of the invoice item
1123+ type : string
1124+ amount :
1125+ format : double
1126+ description : The amount of the invoice item
1127+ default : 1
1128+ type : number
1129+ unit :
1130+ description : " The optional unit, for example, kilogram or piece."
1131+ type : string
1132+ unitPrice :
1133+ format : double
1134+ description : The price per unit
1135+ type : number
1136+ sumPrice :
1137+ format : double
1138+ description : " The total price of the invoice item. If the field is\
1139+ \ not set, it is calculated using the unit price and amount."
1140+ type : number
1141+ footerItems :
1142+ description : " The list of footer items. An informative element that is shown\
1143+ \ in the footer of the invoice, for example, to display information about\
1144+ \ the company."
1145+ type : array
1146+ items :
1147+ description : " An informative element that is shown in the footer of the\
1148+ \ invoice, for example, to display information about the company."
1149+ type : object
1150+ properties :
1151+ title :
1152+ description : The item title
1153+ type : string
1154+ values :
1155+ description : A list of values
1156+ type : array
1157+ items :
1158+ type : string
1159+ contextItems :
1160+ description : " The list of context items. An informative element that is\
1161+ \ shown in the content of the invoice, for example to display detailed\
1162+ \ information such as the invoice number for the respective invoice."
1163+ type : array
1164+ items :
1165+ description : " An informative element that is shown in the content of the\
1166+ \ invoice, for example to display detailed information such as the invoice\
1167+ \ number for the respective invoice."
1168+ type : object
1169+ properties :
1170+ title :
1171+ description : The item title
1172+ type : string
1173+ value :
1174+ description : The item value
1175+ type : string
1176+ feeTaxItems :
1177+ description : " The list of fee and tax items. An element to add any tax and/or\
1178+ \ fees in addition to the invoice items. When using the 'percent' field,\
1179+ \ the value is calculated from the sum of the invoice items including\
1180+ \ any previous taxes and fees. The values are calculated in the order\
1181+ \ passed."
1182+ type : array
1183+ items :
1184+ description : " An element to add any tax and/or fees in addition to the\
1185+ \ invoice items. When using the 'percent' field, the value is calculated\
1186+ \ from the sum of the invoice items including any previous taxes and\
1187+ \ fees. The values are calculated in the order passed."
1188+ required :
1189+ - title
1190+ type : object
1191+ properties :
1192+ title :
1193+ description : The element title for example "20% VAT" or "Dunning charge".
1194+ type : string
1195+ percent :
1196+ format : float
1197+ description : The item percent. The resulting value is calculated from
1198+ the sum of the invoice items including any previous taxes and fees.
1199+ The values are calculated in the order passed.
1200+ type : number
1201+ value :
1202+ format : double
1203+ description : The item value
1204+ type : number
1205+ notice :
1206+ description : A note that is printed at the end of the invoice.
1207+ type : string
1208+ labels :
1209+ description : ' This object can be used to overwrite standard invoice texts. '
1210+ type : object
1211+ properties :
1212+ invoice :
1213+ default : Invoice
1214+ type : string
1215+ subtotal :
1216+ default : Subtotal
1217+ type : string
1218+ total :
1219+ default : Total
1220+ type : string
1221+ amount :
1222+ default : Amount
1223+ type : string
1224+ description :
1225+ default : Description
1226+ type : string
1227+ unitPrice :
1228+ default : Unit price
1229+ type : string
1230+ sumPrice :
1231+ default : Sum price
1232+ type : string
1233+ numberOfPages :
1234+ description : " Use the placeholders {current} and {total} for the current\
1235+ \ page and the total number of pages respectively."
1236+ default : " {current} | {total}"
1237+ type : string
1238+ epcQrCode :
1239+ description : " The information for creating an EPC QR code. If this object\
1240+ \ is provided, a QR code will be printed on the invoice."
10261241 required :
10271242 - iban
1028- - name
1029- - postalCode
1030- - city
1243+ - recipient
10311244 type : object
10321245 properties :
10331246 iban :
1034- description : The international bank account number of the creditor
1247+ description : The international bank account number of the recipient
10351248 type : string
1036- name :
1037- description : The creditors name
1249+ bic :
1250+ description : The bank identifier code of the recipient bank
10381251 type : string
1039- street :
1040- description : The creditors street
1252+ recipient :
1253+ description : The recipients name
10411254 type : string
1042- postalCode :
1043- description : The creditors postal code
1255+ reference :
1256+ description : The payment reference
10441257 type : string
1045- city :
1046- description : The creditors city
1258+ text :
1259+ description : The bank transfer text
10471260 type : string
1048- country :
1049- description : The creditors country
1261+ message :
1262+ description : A user hint
10501263 type : string
1051- debtor :
1264+ swissQrInvoice :
1265+ description : " The information for creating a Swiss QR invoice. If this object\
1266+ \ is provided, a Swiss QR invioce code will be printed on the invoice.\
1267+ \ For more details see Swiss QR invoice documentation."
10521268 required :
1053- - name
1054- - postalCode
1055- - city
1269+ - creditor
10561270 type : object
10571271 properties :
1058- name :
1059- description : The debtors name
1060- type : string
1061- street :
1062- description : The debtors street
1272+ creditor :
1273+ $ref : ' #/components/schemas/SwissQrInvoiceCreditor'
1274+ debtor :
1275+ $ref : ' #/components/schemas/SwissQrInvoiceDebtor'
1276+ information :
1277+ description : Additional unstructured information.
10631278 type : string
1064- postalCode :
1065- description : The debtors postal code
1279+ structuredInformation :
1280+ description : Additional structured information.
10661281 type : string
1067- city :
1068- description : The debtors city
1069- type : string
1070- country :
1071- description : The debtors country
1282+ reference :
1283+ description : The payment reference based either on ISO 11649 or on QR
1284+ reference.
10721285 type : string
1286+ currencyFormat :
1287+ description : " The currency format to be used. SYMBOL for the currency symbol\
1288+ \ e.g. €, CODE for the currency abbreviation e.g. EUR and NAME for the\
1289+ \ name of the currency which is translated using the 'locale' variable,\
1290+ \ e.g. Euro."
1291+ enum :
1292+ - SYMBOL
1293+ - CODE
1294+ - NAME
1295+ type : string
1296+ SwissQrInvoicePayload :
1297+ required :
1298+ - creditor
1299+ type : object
1300+ properties :
1301+ creditor :
1302+ $ref : ' #/components/schemas/SwissQrInvoiceCreditor'
1303+ debtor :
1304+ $ref : ' #/components/schemas/SwissQrInvoiceDebtor'
10731305 currency :
10741306 description : The currency according to ISO 4217.
10751307 default : CHF
@@ -1107,6 +1339,64 @@ components:
11071339 - IT
11081340 - EN
11091341 type : string
1342+ SwissQrInvoiceCreditor :
1343+ required :
1344+ - iban
1345+ - name
1346+ - postalCode
1347+ - city
1348+ type : object
1349+ properties :
1350+ iban :
1351+ description : The international bank account number of the creditor
1352+ type : string
1353+ name :
1354+ description : The creditors name
1355+ maxLength : 70
1356+ type : string
1357+ street :
1358+ description : The creditors street
1359+ maxLength : 70
1360+ type : string
1361+ postalCode :
1362+ description : The creditors postal code
1363+ maxLength : 16
1364+ type : string
1365+ city :
1366+ description : The creditors city
1367+ maxLength : 35
1368+ type : string
1369+ country :
1370+ description : The creditors country
1371+ default : CH
1372+ type : string
1373+ SwissQrInvoiceDebtor :
1374+ required :
1375+ - name
1376+ - postalCode
1377+ - city
1378+ type : object
1379+ properties :
1380+ name :
1381+ description : The debtors name
1382+ maxLength : 70
1383+ type : string
1384+ street :
1385+ description : The debtors street
1386+ maxLength : 70
1387+ type : string
1388+ postalCode :
1389+ description : The debtors postal code
1390+ maxLength : 16
1391+ type : string
1392+ city :
1393+ description : The debtors city
1394+ maxLength : 35
1395+ type : string
1396+ country :
1397+ description : The debtors country
1398+ default : CH
1399+ type : string
11101400 ErrorMessage :
11111401 required :
11121402 - messages
0 commit comments