Do not forget to fill the Authorization header in every single request - Authorization: Bearer {your token}
Example in INTERNAL JSON format
{
"id": 424,
"number": "CI-23-00012",
"ourCompany": {
"id": 8,
"name": "Creative Mess Ltd.",
"registrations": {
"Company_ID": "00000002",
"VAT_ID": "CZ00000002"
},
"address": {
"street": "Václavské náměstí 1",
"city": "Praha 1",
"zip": "10001",
"country": "CZ"
},
"bankAccounts": [
{
"number": "3632808001",
"bankRoutingNumber": "5500",
"iban": "CZ6155000000003632808001",
"swift": "RZBCCZPP",
"bankName": "Největší Banka"
}
],
"isClient": false,
"isSupplier": false,
"isCertified": false,
"propertiesMap": {
"extStatus": "",
"paperOrientation": "PORTRAIT",
"editDisabled": "false",
"formLanguage": "cs",
"paperSize": "PAPER.SIZE-A4",
"extName": "Mockup",
"draftReasons": {},
"division": "",
"extId": "",
"department": "",
"extMessage": ""
},
"isDisabled": false,
"isDraft": false
},
"company": {
"id": 3,
"name": "AD-IN-ONE Europe a.s.",
"registrations": {
"Company_ID": "28082869XX",
"VAT_ID": "CZ28082869"
},
"address": {
"street": "Bavorská 14",
"city": "Praha 5",
"zip": "155 00",
"country": "CZ"
},
"bankAccounts": [
{
"number": "3632808001",
"bankRoutingNumber": "5500",
"iban": "CZ6155000000003632808001",
"swift": "RZBCCZPP",
"bankName": "RAIFFEISENBANK A.S."
}
],
"isClient": false,
"isSupplier": false,
"isCertified": false,
"propertiesMap": {
"extStatus": "",
"imported": "true",
"extId": "",
"extName": "Mockup",
"extMessage": ""
},
"isDisabled": false,
"isDraft": false
},
"type": "INVOICE.SALES",
"category": "CATEGORY.INVOICE.SALES-LOCAL",
"status": "PROCESSING",
"statusDate": "2023-03-14",
"owner": {
"id": 6,
"person": {
"commonName": "Vladimír Šolc"
}
},
"propertiesMap": {
"companyPurchaseMaturity": "7",
"companyLabelAddress": "Bavorská 14 155 00 Praha 5 Czechia",
"vatCheck": {
"response": {
"status": "OK",
"statusMessage": "VAT payer reliable",
"companyName": "AD-IN-ONE EUROPE A.S. ",
"vatId": "CZ28082869",
"checkDate": "2023-03-14",
"message": "",
"link": "https://www.financnisprava.cz/cs/dane/dane/dan-z-pridane-hodnoty/informace-stanoviska-a-sdeleni/nespolehlivy-platce"
},
"error": false,
"requestBody": "<?xml version="1.0" encoding="UTF-8" ?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:roz="http://adis.mfcr.cz/rozhraniCRPDPH/"> <soapenv:Header/> <soapenv:Body> <roz:StatusNespolehlivyPlatceRozsirenyRequest> <roz:dic>CZ28082869</roz:dic> </roz:StatusNespolehlivyPlatceRozsirenyRequest> </soapenv:Body> </soapenv:Envelope>"
},
"bodyEditTable-INVOICE~SALES~ITEMS": {
"data": [
{
"amountDoc": 300000,
"vatAmountAcc": 60000,
"jobOwnerName": "Black Oliver",
"vatPercentage": 20,
"currencyDoc": "CZK",
"vatSelector": "0.2",
"jobName": "Fee rozpočet 9/9",
"amountAcc": 300000,
"detailsPrint": "",
"name": "Práce č.1",
"client": "Best Default Unit",
"isCollapsed": false,
"itemId": 134,
"count": 6,
"currencyAcc": "CZK",
"pairedBy": "Vladimír Šolc",
"invalidFields": [],
"jobOwnerId": "2",
"target": {
"jobId": 52
},
"unitPriceDoc": 50000,
"rowId": 1,
"amountTotalAcc": 360000,
"itemNumberLink": "/3/jobs/JOB/52",
"unitPriceAcc": 50000,
"itemNumber": "JOB-00025",
"exRateDocAcc": "1",
"category": "OPIN.JOB",
"jobParticipantIds": "",
"brand": ""
},
{
"amountDoc": 100000,
"vatAmountAcc": 20000,
"jobOwnerName": "Black Oliver",
"vatPercentage": 20,
"currencyDoc": "CZK",
"vatSelector": "0.2",
"jobName": "Fee rozpočet 9/9",
"amountAcc": 100000,
"detailsPrint": "",
"name": "Práce č.2",
"client": "Best Default Unit",
"itemId": 134,
"count": 5,
"currencyAcc": "CZK",
"pairedBy": "Vladimír Šolc",
"invalidFields": [],
"jobOwnerId": "2",
"unitPriceDoc": 20000,
"rowId": 3,
"amountTotalAcc": 120000,
"itemNumberLink": "/3/jobs/JOB/52",
"unitPriceAcc": 20000,
"itemNumber": "JOB-00025",
"exRateDocAcc": "1",
"category": "OPIN.JOB",
"target": {
"jobId": 52
},
"jobParticipantIds": "",
"brand": ""
},
{
"isSummary": true,
"rowId": 2,
"name": "Total",
"amountDoc": 400000,
"currencyDoc": "CZK",
"amountAcc": 400000,
"currencyAcc": "CZK"
}
]
},
"companyName": "AD-IN-ONE Europe a.s.",
"showColumnBrand": "false",
"bodyRichtext-1": "<p>Textové specifikace faktury</p><p style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.froala.com/wysiwyg-editor?pb=1" rel="nofollow noreferrer noopener">Froala Editor</a></p>",
"division": "DIMENSION.DIVISION-DDANCA",
"bodyRichtext-2": "<p style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.froala.com/wysiwyg-editor?pb=1" rel="nofollow noreferrer noopener">Froala Editor</a></p>",
"currencyDoc": "CZK",
"companySalesMaturity": "7",
"companyRegistrationList": [
{
"isDisabled": false,
"automatic": false,
"name": "VAT ID",
"value": "CZ28082869"
},
{
"isDisabled": false,
"automatic": false,
"name": "Company ID",
"value": "28082869XX"
}
],
"referenceNumber": "102300012",
"bodyEditTable-DUE": {
"data": [
{
"currencyDoc": "CZK",
"totalDueDoc": 480000,
"currencyDoc1": "CZK",
"currencyDoc2": "CZK",
"currencyDoc3": "CZK",
"empty": " ",
"totalDoc": 480000,
"advancePaymentDoc": 0,
"rowId": 1
},
{
"isSummary": true,
"rowId": 2,
"totalDueDoc": 480000,
"currencyDoc3": "CZK"
}
]
},
"editDisabled": "false",
"supplyDate": "2023-03-14",
"showColumnDetails": "false",
"jobId": "",
"printCorrespondenceAddress": "false",
"name": "Předmět faktury",
"companyLabelAddressType": "First available address",
"extResponse": {},
"showColumnJobName": "false",
"exchangeDate": "2023-03-14",
"paperOrientation": "PORTRAIT",
"currencyAcc": "CZK",
"formLanguage": "en",
"draftReasons": {
"Table is invalid": false
},
"printForm": "HEADER.LINK-INVOICE.SALES",
"extStatus-x-": "EXT.OK",
"exRateDocAcc": "1",
"companyNumber": "",
"exPairDocAcc": "CZK/CZK",
"bodyEditTable-VAT~OUTPUT": {
"data": [
{
"vatAmountAcc": 80000,
"vatPercentage": 20,
"vatBaseAcc": 400000,
"currencyDoc": "CZK",
"vatSelector": "0.2",
"subj": "20% ",
"currencyAcc": "CZK",
"totalDoc": 480000,
"rowId": 1,
"vatAmountDoc": 80000,
"exRateDocAcc": "1",
"totalAcc": 480000,
"category": "VAT.OUTPUT",
"vatBaseDoc": 400000
},
{
"vatAmountAcc": 80000,
"currencyDoc": "CZK",
"subj": "Total",
"currencyAcc": "CZK",
"totalDoc": 480000,
"rowId": 2,
"vatAmountDoc": 80000,
"isSummary": true,
"totalAcc": 480000
}
]
},
"department": "DIMENSION.DEPARTMENT-BB",
"issueDate": "2023-03-14",
"originEntityId": "419",
"vatDate": "2023-03-14",
"paymentMark": "PAYMENT.NONE",
"showColumnJobOwnerName": "false",
"extStatus": "EXT.READY",
"paymentCondition": "CONDITION.PAYMENT.INVOICE-TRANSFER",
"agencyBankAccount": {
"isDisabled": false,
"number": "3632808001",
"bankRoutingNumber": "5500",
"iban": "CZ6155000000003632808001",
"swift": "RZBCCZPP",
"bankName": "Největší Banka",
"companyId": 8
},
"paperSize": "PAPER.SIZE-A4",
"paperLetterhead": "false",
"showColumnCategory": "false",
"showSignature": "false",
"paymentDate": "2023-03-21",
"showColumnJobCompanyName": "false",
"agencyBankAccountId": "7"
},
"modifiedDateTime": "2023-03-14T09:28:13.671574",
"grids": {
"VAT~OUTPUT": [
{
"rowNumber": 1,
"vatAmount": 80000,
"currency": "CZK",
"category": "VAT.OUTPUT",
"additionalData": {
"vatAmountAcc": 80000,
"vatPercentage": 20,
"vatBaseAcc": 400000,
"currencyDoc": "CZK",
"vatSelector": "0.2",
"subj": "20% ",
"currencyAcc": "CZK",
"totalDoc": 480000,
"rowId": 1,
"vatAmountDoc": 80000,
"exRateDocAcc": "1",
"totalAcc": 480000,
"category": "VAT.OUTPUT",
"vatBaseDoc": 400000
}
}
],
"DUE": [
{
"rowNumber": 1,
"additionalData": {
"currencyDoc": "CZK",
"totalDueDoc": 480000,
"currencyDoc1": "CZK",
"currencyDoc2": "CZK",
"currencyDoc3": "CZK",
"empty": " ",
"totalDoc": 480000,
"advancePaymentDoc": 0,
"rowId": 1
}
}
],
"INVOICE~SALES~ITEMS": [
{
"name": "Práce č.1",
"rowNumber": 1,
"billingAmount": 300000,
"vatPercentage": 20,
"currency": "CZK",
"category": "OPIN.JOB",
"additionalData": {
"amountDoc": 300000,
"vatAmountAcc": 60000,
"jobOwnerName": "Black Oliver",
"vatPercentage": 20,
"currencyDoc": "CZK",
"vatSelector": "0.2",
"jobName": "Fee rozpočet 9/9",
"amountAcc": 300000,
"detailsPrint": "",
"name": "Práce č.1",
"client": "Best Default Unit",
"isCollapsed": false,
"itemId": 134,
"count": 6,
"currencyAcc": "CZK",
"pairedBy": "Vladimír Šolc",
"invalidFields": [],
"jobOwnerId": "2",
"target": {
"jobId": 52
},
"unitPriceDoc": 50000,
"rowId": 1,
"amountTotalAcc": 360000,
"itemNumberLink": "/3/jobs/JOB/52",
"unitPriceAcc": 50000,
"itemNumber": "JOB-00025",
"exRateDocAcc": "1",
"category": "OPIN.JOB"
},
"jobItemId": 134,
"jobId": 52,
"jobNumber": "JOB-00025",
"jobItemNumber": 0
},
{
"name": "Práce č.2",
"rowNumber": 2,
"billingAmount": 100000,
"vatPercentage": 20,
"currency": "CZK",
"category": "OPIN.JOB",
"additionalData": {
"amountDoc": 100000,
"vatAmountAcc": 20000,
"jobOwnerName": "Black Oliver",
"vatPercentage": 20,
"currencyDoc": "CZK",
"vatSelector": "0.2",
"jobName": "Fee rozpočet 9/9",
"amountAcc": 100000,
"detailsPrint": "",
"name": "Práce č.2",
"client": "Best Default Unit",
"itemId": 134,
"count": 5,
"currencyAcc": "CZK",
"pairedBy": "Vladimír Šolc",
"invalidFields": [],
"jobOwnerId": "2",
"unitPriceDoc": 20000,
"rowId": 3,
"amountTotalAcc": 120000,
"itemNumberLink": "/3/jobs/JOB/52",
"unitPriceAcc": 20000,
"itemNumber": "JOB-00025",
"exRateDocAcc": "1",
"category": "OPIN.JOB",
"target": {
"jobId": 52
}
},
"jobItemId": 134,
"jobId": 52,
"jobNumber": "JOB-00025",
"jobItemNumber": 0
}
]
},
"journal": [
{
"rowNumber": 1,
"amountType": "VAT_AMOUNT",
"amountDoc": 80000,
"currencyDoc": "CZK",
"exchangeRateDocAcc": 1,
"exchangePairDocAcc": "CZK/CZK",
"amountAcc": 80000,
"currencyAcc": "CZK"
},
{
"rowNumber": 1,
"name": "Práce č.1",
"amountType": "BILLING_AMOUNT",
"amountDoc": 300000,
"currencyDoc": "CZK",
"exchangeRateDocAcc": 1,
"exchangePairDocAcc": "CZK/CZK",
"amountAcc": 300000,
"currencyAcc": "CZK",
"additionalData": {
"vatPercentage": 20
}
},
{
"rowNumber": 2,
"name": "Práce č.2",
"amountType": "BILLING_AMOUNT",
"amountDoc": 100000,
"currencyDoc": "CZK",
"exchangeRateDocAcc": 1,
"exchangePairDocAcc": "CZK/CZK",
"amountAcc": 100000,
"currencyAcc": "CZK",
"additionalData": {
"vatPercentage": 20
}
}
],
"ownership": {
"agencyId": 3,
"agencyName": "Creative Mess",
"companyId": 8,
"companyName": "Creative Mess Ltd.",
"companyRegId": "00000002",
"companyVatId": "CZ00000002"
},
"createdTimestamp": "2023-03-14T09:28:13.203033Z",
"updatedTimestamp": "2023-03-14T09:28:13.671574Z",
"createdUser": {
"id": 6,
"person": {
"commonName": "Vladimír Šolc"
}
},
"updatedUser": {
"id": 6,
"person": {
"commonName": "Vladimír Šolc"
}
},
"isDisabled": false,
"isDraft": false
}
Example of an invoice converted from internal format to the output JSON required by the counterparty API
{
"note": "THIS IS TESTING TEMPLATE",
"test": "1234",
"ownership": {
"agencyId": "3",
"agencyName": "Creative Mess",
"companyName": "Creative Mess Ltd.",
"companyId": "8",
"companyRegId": "00000002",
"companyVatId": "CZ00000002"
},
"application": "Teamogy",
"version": "1.0",
"dataPack": [
{
"invoice": {
"testCisla": 333,
"testBoolean": true,
"id": "424",
"type": "INVOICE.SALES",
"header": {
"maconomyUserCode": "",
"number": "CI-23-00012",
"referenceNumber": "102300012",
"partnerInvoiceNumber": "",
"partnerOrderNumber": "",
"supplyDate": "2023-03-14",
"issueDate": "2023-03-14",
"dueDate": "2023-03-21",
"receiptDate": "",
"paymentCondition": "CONDITION.PAYMENT.INVOICE-TRANSFER",
"name": "Předmět faktury",
"text": " Textové specifikace faktury Powered by Froala Editor ",
"textLower": " Powered by Froala Editor ",
"currencyAcc": "CZK",
"currencyDoc": "CZK",
"exPairDocAcc": "CZK/CZK",
"exRateDocAcc": "1",
"exchangeDate": "2023-03-14",
"relatedNumber": "",
"relatedIssueDate": "",
"relatedSupplyDate": "",
"paymentMark": "PAYMENT.NONE",
"category": "CATEGORY.INVOICE.SALES-LOCAL",
"advancePaymentDoc": "0",
"selfIdentity": {
"id": "8",
"name": "Creative Mess Ltd.",
"person": "Vladimír Šolc",
"address": {
"street": "Václavské náměstí 1",
"city": "Praha 1",
"zip": "10001",
"country": "CZ",
"state": ""
},
"registrations": {
"vatID": "CZ00000002",
"companyID": "00000002"
},
"bankAccount": {
"bankName": "Největší Banka",
"bankRoutingNumber": "5500",
"number": "3632808001",
"swift": "RZBCCZPP",
"iban": "CZ6155000000003632808001"
}
},
"partnerIdentity": {
"id": "3",
"name": "AD-IN-ONE Europe a.s.",
"person": "",
"address": {
"street": "Bavorská 14",
"city": "Praha 5",
"zip": "155 00",
"country": "CZ",
"state": ""
},
"registrations": {
"vatID": "CZ28082869",
"companyID": "28082869XX"
},
"bankAccount": {
"bankName": "",
"bankRoutingNumber": "",
"number": "",
"swift": "",
"iban": ""
}
}
},
"items": [
{
"rowNumber": "1",
"name": "Práce č.1",
"count": "6",
"unitPriceDoc": "50000",
"amountDoc": "300000",
"unitPriceAcc": "50000",
"amountAcc": "300000",
"vatAmountAcc": "60000",
"vatSelector": "0.2",
"vatType": "",
"vatPercentage": "20",
"itemNumber": "JOB-00025",
"jobId": "52",
"jobItemId": "",
"category": "OPIN.JOB",
"preBooking": "2FV"
},
{
"rowNumber": "2",
"name": "Práce č.2",
"count": "5",
"unitPriceDoc": "20000",
"amountDoc": "100000",
"unitPriceAcc": "20000",
"amountAcc": "100000",
"vatAmountAcc": "20000",
"vatSelector": "0.2",
"vatType": "",
"vatPercentage": "20",
"itemNumber": "JOB-00025",
"jobId": "52",
"jobItemId": "",
"category": "OPIN.JOB",
"preBooking": "2FV"
}
],
"summary": [
{
"vatSelector": "0.2",
"vatType": "",
"vatPercentage": "20",
"vatAmountDocCorr": "",
"vatBaseAcc": "400000",
"vatAmountAcc": "80000",
"totalAcc": "480000",
"category": "VAT.OUTPUT",
"preBooking": ""
}
]
}
}
]
}
Example of an invoice converted from internal format to the output XML required by the counterparty API
<?xml version="1.0" encoding="UTF-8" ?>
<dataPack ownership="Creative Mess" application="Teamogy" xmlns="" version="1.0">
<invoice id="424">
<type>INVOICE.SALES</type>
<header>
<number>CI-23-00012</number>
<referenceNumber>102300012</referenceNumber>
<partnerInvoiceNumber></partnerInvoiceNumber>
<partnerOrderNumber></partnerOrderNumber>
<supplyDate>2023-03-14</supplyDate>
<issueDate>2023-03-14</issueDate>
<dueDate>2023-03-21</dueDate>
<receiptDate></receiptDate>
<paymentCondition>CONDITION.PAYMENT.INVOICE-TRANSFER</paymentCondition>
<name>Předmět faktury</name>
<text> Textové specifikace faktury Powered by Froala Editor </text>
<textLower> Textové specifikace faktury Powered by Froala Editor </textLower>
<currencyAcc>CZK</currencyAcc>
<currencyDoc>CZK</currencyDoc>
<exPairDocAcc>CZK/CZK</exPairDocAcc>
<exRateDocAcc>1</exRateDocAcc>
<exchangeDate>2023-03-14</exchangeDate>
<relatedNumber></relatedNumber>
<relatedIssueDate></relatedIssueDate>
<relatedSupplyDate></relatedSupplyDate>
<paymentMark>PAYMENT.NONE</paymentMark>
<category>CATEGORY.INVOICE.SALES-LOCAL</category>
<selfIdentity>
<id>8</id>
<name>Creative Mess Ltd.</name>
<person>Vladimír Šolc</person>
<address>
<street>Václavské náměstí 1</street>
<city>Praha 1</city>
<zip>10001</zip>
<country>CZ</country>
<state></state>
</address>
<registrations>
<vatID>CZ00000002</vatID>
<companyID>00000002</companyID>
</registrations>
<bankAccount>
<bankName>Největší Banka</bankName>
<bankRoutingNumber>5500</bankRoutingNumber>
<number>3632808001</number>
<swift>RZBCCZPP</swift>
<iban>CZ6155000000003632808001</iban>
</bankAccount>
</selfIdentity>
<partnerIdentity>
<id>3</id>
<name>AD-IN-ONE Europe a.s.</name>
<person></person>
<address>
<street>Bavorská 14</street>
<city>Praha 5</city>
<zip>155 00</zip>
<country>CZ</country>
<state></state>
</address>
<registrations>
<vatID>CZ28082869</vatID>
<companyID>28082869XX</companyID>
</registrations>
<bankAccount>
<bankName></bankName>
<bankRoutingNumber></bankRoutingNumber>
<number></number>
<swift></swift>
<iban></iban>
</bankAccount>
</partnerIdentity>
</header>
<items>
<item>
<rowNumber>1</rowNumber>
<name>Práce č.1</name>
<count>6</count>
<unitPriceDoc>50000</unitPriceDoc>
<amountDoc>300000</amountDoc>
<unitPriceAcc>50000</unitPriceAcc>
<amountAcc>300000</amountAcc>
<vatAmountAcc>60000</vatAmountAcc>
<vatSelector>0.2</vatSelector>
<vatType></vatType>
<vatPercentage>20</vatPercentage>
<itemNumber>JOB-00025</itemNumber>
<jobId>52</jobId>
<jobItemId></jobItemId>
<category>OPIN.JOB</category>
<preBooking>2FV</preBooking>
</item><item>
<rowNumber>2</rowNumber>
<name>Práce č.2</name>
<count>5</count>
<unitPriceDoc>20000</unitPriceDoc>
<amountDoc>100000</amountDoc>
<unitPriceAcc>20000</unitPriceAcc>
<amountAcc>100000</amountAcc>
<vatAmountAcc>20000</vatAmountAcc>
<vatSelector>0.2</vatSelector>
<vatType></vatType>
<vatPercentage>20</vatPercentage>
<itemNumber>JOB-00025</itemNumber>
<jobId>52</jobId>
<jobItemId></jobItemId>
<category>OPIN.JOB</category>
<preBooking>2FV</preBooking>
</item>
</items>
<summary>
<summaryItem>
<vatSelector>0.2</vatSelector>
<vatType></vatType>
<vatPercentage>20</vatPercentage>
<vatBaseAcc>400000</vatBaseAcc>
<vatAmountAcc>80000</vatAmountAcc>
<totalAcc>480000</totalAcc>
<category>VAT.OUTPUT</category>
<preBooking></preBooking>
</summaryItem>
</summary>
</invoice>
</dataPack>