Chilkat Online Tools

Objective-C / Egyptian eInvoicing SDK R1.5 / 1.2 Submit Documents (XML) Credit

Back to Collection Items

#import <CkoHttp.h>
#import <CkoXml.h>
#import <CkoStringBuilder.h>
#import <CkoHttpResponse.h>

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

CkoHttp *http = [[CkoHttp alloc] init];
BOOL success;

// Use this online tool to generate code from sample XML: Generate Code to Create XML

// The following XML is sent in the request body.

// <?xml version="1.0" encoding="utf-8"?>
// <submission>
//     <documents>
//         <document>
//             <issuer>
//                 <type>B</type>
//                 <id>113317713</id>
//                 <name>الشركة المصدرة</name>
//                 <address>
//                     <buildingNumber>عمارة 40</buildingNumber>
//                     <room>123</room>
//                     <floor>16</floor>
//                     <street>15 احمد فخرى</street>
//                     <landmark>مستشفى حسبو</landmark>
//                     <additionalInformation>بجانب مستشفى حسبو</additionalInformation>
//                     <governate>القاهرة</governate>
//                     <regionCity>مدينة نصر</regionCity>
//                     <postalCode>098607</postalCode>
//                     <country>EG</country>
//                     <branchID>1</branchID>
//                 </address>
//             </issuer>
//             <receiver>
//                 <type>B</type>
//                 <id>730913562</id>
//                 <name>المستلم</name>
//                 <address>
//                     <buildingNumber>عمارة 15</buildingNumber>
//                     <room>110</room>
//                     <floor>8</floor>
//                     <street>16 حوش عيسى</street>
//                     <landmark>جامع الرحمة</landmark>
//                     <additionalInformation>بجانب جامع الرحمة</additionalInformation>
//                     <governate>البحيرة</governate>
//                     <regionCity>دمنهور</regionCity>
//                     <postalCode>098661</postalCode>
//                     <country>EG</country>
//                 </address>
//             </receiver>
//             <documentType>C</documentType>
//             <documentTypeVersion>0.9</documentTypeVersion>
//             <dateTimeIssued>2020-10-29T17:30:22Z</dateTimeIssued>
//             <taxpayerActivityCode>4620</taxpayerActivityCode>
//             <internalID>IID0</internalID>
//             <purchaseOrderReference>1230</purchaseOrderReference>
//             <purchaseOrderDescription>وصف طلب الدفع</purchaseOrderDescription>
//             <salesOrderReference>1452</salesOrderReference>
//             <salesOrderDescription>وصف بيع الطلب</salesOrderDescription>
//             <proformaInvoiceNumber>1485</proformaInvoiceNumber>
//             <references>
//                 <reference>439W9MSDRECAS6HXA9W4PXNE10</reference>
//             </references>
//             <payment>
//                 <bankName>البنك الاهلى</bankName>
//                 <bankAddress>15 شارع النصر</bankAddress>
//                 <bankAccountNo>1234567</bankAccountNo>
//                 <bankAccountIBAN/>
//                 <swiftCode/>
//                 <terms>لا يمكن التزوير</terms>
//             </payment>
//             <delivery>
//                 <approach>جوى</approach>
//                 <packaging>تغليف</packaging>
//                 <dateValidity>2020-06-22T17:30:22Z</dateValidity>
//                 <exportPort>ميناء اسكندرية</exportPort>
//                 <countryOfOrigin>LS</countryOfOrigin>
//                 <grossWeight>123.45</grossWeight>
//                 <netWeight>122.87</netWeight>
//                 <terms>لا يمكن الفتح</terms>
//             </delivery>
//             <invoiceLines>
//                 <invoiceLine>
//                     <description>حاسب الى</description>
//                     <itemType>GS1</itemType>
//                     <itemCode>10003752</itemCode>
//                     <unitType>EA</unitType>
//                     <quantity>5</quantity>
//                     <unitValue>
//                         <currencySold>EUR</currencySold>
//                         <amountSold>10.00</amountSold>
//                         <amountEGP>189.40</amountEGP>
//                         <currencyExchangeRate>18.94</currencyExchangeRate>
//                     </unitValue>
//                     <salesTotal>947.00</salesTotal>
//                     <discount>
//                         <rate>7</rate>
//                         <amount>66.29</amount>
//                     </discount>
//                     <taxableItems>
//                         <taxableItem>
//                             <taxType>T1</taxType>
//                             <amount>272.07</amount>
//                             <subType>V001</subType>
//                             <rate>14</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T2</taxType>
//                             <amount>208.22</amount>
//                             <subType>T2-Sub</subType>
//                             <rate>12</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T3</taxType>
//                             <amount>30.00</amount>
//                             <subType>T3-Sub</subType>
//                             <rate>0</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T4</taxType>
//                             <amount>43.79</amount>
//                             <subType>W001</subType>
//                             <rate>5</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T5</taxType>
//                             <amount>123.30</amount>
//                             <subType>T5-Sub</subType>
//                             <rate>14</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T6</taxType>
//                             <amount>60.00</amount>
//                             <subType>T6-Sub</subType>
//                             <rate>0</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T7</taxType>
//                             <amount>88.07</amount>
//                             <subType>T7-Sub</subType>
//                             <rate>10</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T8</taxType>
//                             <amount>123.30</amount>
//                             <subType>T8-Sub</subType>
//                             <rate>14</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T9</taxType>
//                             <amount>105.69</amount>
//                             <subType>T9-Sub</subType>
//                             <rate>12</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T10</taxType>
//                             <amount>88.07</amount>
//                             <subType>T10-Sub</subType>
//                             <rate>10</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T11</taxType>
//                             <amount>123.30</amount>
//                             <subType>T11-Sub</subType>
//                             <rate>14</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T12</taxType>
//                             <amount>105.69</amount>
//                             <subType>T12-Sub</subType>
//                             <rate>12</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T13</taxType>
//                             <amount>88.07</amount>
//                             <subType>T13-Sub</subType>
//                             <rate>10</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T14</taxType>
//                             <amount>123.30</amount>
//                             <subType>T14-Sub</subType>
//                             <rate>14</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T15</taxType>
//                             <amount>105.69</amount>
//                             <subType>T15-Sub</subType>
//                             <rate>12</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T16</taxType>
//                             <amount>88.07</amount>
//                             <subType>T16-Sub</subType>
//                             <rate>10</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T17</taxType>
//                             <amount>88.07</amount>
//                             <subType>T17-Sub</subType>
//                             <rate>10</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T18</taxType>
//                             <amount>123.30</amount>
//                             <subType>T18-Sub</subType>
//                             <rate>14</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T19</taxType>
//                             <amount>105.69</amount>
//                             <subType>T19-Sub</subType>
//                             <rate>12</rate>
//                         </taxableItem>
//                         <taxableItem>
//                             <taxType>T20</taxType>
//                             <amount>88.07</amount>
//                             <subType>T20-Sub</subType>
//                             <rate>10</rate>
//                         </taxableItem>
//                     </taxableItems>
//                     <internalCode>IC0</internalCode>
//                     <itemsDiscount>5.00</itemsDiscount>
//                     <netTotal>880.71</netTotal>
//                     <totalTaxableFees>817.42</totalTaxableFees>
//                     <valueDifference>7.00</valueDifference>
//                     <total>2969.89</total>
//                 </invoiceLine>
//             </invoiceLines>
//             <totalSalesAmount>947.00</totalSalesAmount>
//             <totalDiscountAmount>66.29</totalDiscountAmount>
//             <netAmount>880.71</netAmount>
//             <taxTotals>
//                 <taxTotal>
//                     <taxType>T1</taxType>
//                     <amount>272.07</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T2</taxType>
//                     <amount>208.22</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T3</taxType>
//                     <amount>30.00</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T4</taxType>
//                     <amount>43.79</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T5</taxType>
//                     <amount>123.30</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T6</taxType>
//                     <amount>60.00</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T7</taxType>
//                     <amount>88.07</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T8</taxType>
//                     <amount>123.30</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T9</taxType>
//                     <amount>105.69</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T10</taxType>
//                     <amount>88.07</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T11</taxType>
//                     <amount>123.30</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T12</taxType>
//                     <amount>105.69</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T13</taxType>
//                     <amount>88.07</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T14</taxType>
//                     <amount>123.30</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T15</taxType>
//                     <amount>105.69</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T16</taxType>
//                     <amount>88.07</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T17</taxType>
//                     <amount>88.07</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T18</taxType>
//                     <amount>123.30</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T19</taxType>
//                     <amount>105.69</amount>
//                 </taxTotal>
//                 <taxTotal>
//                     <taxType>T20</taxType>
//                     <amount>88.07</amount>
//                 </taxTotal>
//             </taxTotals>
//             <totalAmount>2964.89</totalAmount>
//             <totalItemsDiscountAmount>5.00</totalItemsDiscountAmount>
//             <extraDiscountAmount>5.00</extraDiscountAmount>
//             <signatures>
//                 <signature>
//                     <signatureType>I</signatureType>
//                     <value>MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMj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qKj83RekRZi0kMxoIm8l82CN8I/Bmp6VVNJRhQKhSeb7ShpdkZcMwcfKdDw6LW02/XcmzVl8NBBbLjKSJ/jxdL1RxPPza7RbGqSx9pfyav5+AxO9sXnXXc5jGCApIwggKOAgEBMF0wSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzICEEFkOqRVlVar0F0n3FZOLiIwCwYJYIZIAWUDBAIBoIIBCjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcFMBwGCSqGSIb3DQEJBTEPFw0yMDEwMzAxOTM2NDJaMC8GCSqGSIb3DQEJBDEiBCDNHXp2I2Focm9g1UhjPLwQg2haFOh2iBuCJ6vkJLY05zCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQBfa7+ZwcE6lOBRRVeoQ4rvrwo98q0IXP+G7EBowzXxD8QH74l//HAXk/dgYoS80hh3psMUitMpcTaet2Qlha6gp8RTpzlqpz/oYVJ1u+L2Viw+6/XVSAmrY0wyvkDzuFhFGLF9IgfqGFcgh8Uvgq8103D+0HWp9+4UVE9J08g/eZLyVYxYjstjCZahSggVnCdkkRQ1sN3F4xPuP/XgIb4VaXr4kNHDqXVG4wZIkIusKlPREWL1L/kaLIcJkPG+MvEv7wapniupuVLdksFTsuAlp/+BmtdsjSv3QY4YYZ4Asd2f9NeZgdKBrkY8OJU7RsCGP/ZvZeOBjeRJZHKHBKvS</value>
//                 </signature>
//             </signatures>
//         </document>
//     </documents>
// </submission>
// 

CkoXml *xml = [[CkoXml alloc] init];
xml.Tag = @"submission";
[xml UpdateChildContent: @"documents|document|issuer|type" value: @"B"];
[xml UpdateChildContentInt: @"documents|document|issuer|id" value: [NSNumber numberWithInt: 113317713]];
[xml UpdateChildContent: @"documents|document|issuer|name" value: @"الشركة المصدرة"];
[xml UpdateChildContent: @"documents|document|issuer|address|buildingNumber" value: @"عمارة 40"];
[xml UpdateChildContentInt: @"documents|document|issuer|address|room" value: [NSNumber numberWithInt: 123]];
[xml UpdateChildContentInt: @"documents|document|issuer|address|floor" value: [NSNumber numberWithInt: 16]];
[xml UpdateChildContent: @"documents|document|issuer|address|street" value: @"15 احمد فخرى"];
[xml UpdateChildContent: @"documents|document|issuer|address|landmark" value: @"مستشفى حسبو"];
[xml UpdateChildContent: @"documents|document|issuer|address|additionalInformation" value: @"بجانب مستشفى حسبو"];
[xml UpdateChildContent: @"documents|document|issuer|address|governate" value: @"القاهرة"];
[xml UpdateChildContent: @"documents|document|issuer|address|regionCity" value: @"مدينة نصر"];
[xml UpdateChildContentInt: @"documents|document|issuer|address|postalCode" value: [NSNumber numberWithInt: 098607]];
[xml UpdateChildContent: @"documents|document|issuer|address|country" value: @"EG"];
[xml UpdateChildContentInt: @"documents|document|issuer|address|branchID" value: [NSNumber numberWithInt: 1]];
[xml UpdateChildContent: @"documents|document|receiver|type" value: @"B"];
[xml UpdateChildContentInt: @"documents|document|receiver|id" value: [NSNumber numberWithInt: 730913562]];
[xml UpdateChildContent: @"documents|document|receiver|name" value: @"المستلم"];
[xml UpdateChildContent: @"documents|document|receiver|address|buildingNumber" value: @"عمارة 15"];
[xml UpdateChildContentInt: @"documents|document|receiver|address|room" value: [NSNumber numberWithInt: 110]];
[xml UpdateChildContentInt: @"documents|document|receiver|address|floor" value: [NSNumber numberWithInt: 8]];
[xml UpdateChildContent: @"documents|document|receiver|address|street" value: @"16 حوش عيسى"];
[xml UpdateChildContent: @"documents|document|receiver|address|landmark" value: @"جامع الرحمة"];
[xml UpdateChildContent: @"documents|document|receiver|address|additionalInformation" value: @"بجانب جامع الرحمة"];
[xml UpdateChildContent: @"documents|document|receiver|address|governate" value: @"البحيرة"];
[xml UpdateChildContent: @"documents|document|receiver|address|regionCity" value: @"دمنهور"];
[xml UpdateChildContentInt: @"documents|document|receiver|address|postalCode" value: [NSNumber numberWithInt: 098661]];
[xml UpdateChildContent: @"documents|document|receiver|address|country" value: @"EG"];
[xml UpdateChildContent: @"documents|document|documentType" value: @"C"];
[xml UpdateChildContent: @"documents|document|documentTypeVersion" value: @"0.9"];
[xml UpdateChildContent: @"documents|document|dateTimeIssued" value: @"2020-10-29T17:30:22Z"];
[xml UpdateChildContentInt: @"documents|document|taxpayerActivityCode" value: [NSNumber numberWithInt: 4620]];
[xml UpdateChildContent: @"documents|document|internalID" value: @"IID0"];
[xml UpdateChildContentInt: @"documents|document|purchaseOrderReference" value: [NSNumber numberWithInt: 1230]];
[xml UpdateChildContent: @"documents|document|purchaseOrderDescription" value: @"وصف طلب الدفع"];
[xml UpdateChildContentInt: @"documents|document|salesOrderReference" value: [NSNumber numberWithInt: 1452]];
[xml UpdateChildContent: @"documents|document|salesOrderDescription" value: @"وصف بيع الطلب"];
[xml UpdateChildContentInt: @"documents|document|proformaInvoiceNumber" value: [NSNumber numberWithInt: 1485]];
[xml UpdateChildContent: @"documents|document|references|reference" value: @"439W9MSDRECAS6HXA9W4PXNE10"];
[xml UpdateChildContent: @"documents|document|payment|bankName" value: @"البنك الاهلى"];
[xml UpdateChildContent: @"documents|document|payment|bankAddress" value: @"15 شارع النصر"];
[xml UpdateChildContentInt: @"documents|document|payment|bankAccountNo" value: [NSNumber numberWithInt: 1234567]];
[xml UpdateChildContent: @"documents|document|payment|bankAccountIBAN" value: @""];
[xml UpdateChildContent: @"documents|document|payment|swiftCode" value: @""];
[xml UpdateChildContent: @"documents|document|payment|terms" value: @"لا يمكن التزوير"];
[xml UpdateChildContent: @"documents|document|delivery|approach" value: @"جوى"];
[xml UpdateChildContent: @"documents|document|delivery|packaging" value: @"تغليف"];
[xml UpdateChildContent: @"documents|document|delivery|dateValidity" value: @"2020-06-22T17:30:22Z"];
[xml UpdateChildContent: @"documents|document|delivery|exportPort" value: @"ميناء اسكندرية"];
[xml UpdateChildContent: @"documents|document|delivery|countryOfOrigin" value: @"LS"];
[xml UpdateChildContent: @"documents|document|delivery|grossWeight" value: @"123.45"];
[xml UpdateChildContent: @"documents|document|delivery|netWeight" value: @"122.87"];
[xml UpdateChildContent: @"documents|document|delivery|terms" value: @"لا يمكن الفتح"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|description" value: @"حاسب الى"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|itemType" value: @"GS1"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|itemCode" value: [NSNumber numberWithInt: 10003752]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|unitType" value: @"EA"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|quantity" value: [NSNumber numberWithInt: 5]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|unitValue|currencySold" value: @"EUR"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|unitValue|amountSold" value: @"10.00"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|unitValue|amountEGP" value: @"189.40"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|unitValue|currencyExchangeRate" value: @"18.94"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|salesTotal" value: @"947.00"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|discount|rate" value: [NSNumber numberWithInt: 7]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|discount|amount" value: @"66.29"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem|taxType" value: @"T1"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem|amount" value: @"272.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem|subType" value: @"V001"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem|rate" value: [NSNumber numberWithInt: 14]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[1]|taxType" value: @"T2"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[1]|amount" value: @"208.22"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[1]|subType" value: @"T2-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[1]|rate" value: [NSNumber numberWithInt: 12]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[2]|taxType" value: @"T3"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[2]|amount" value: @"30.00"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[2]|subType" value: @"T3-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[2]|rate" value: [NSNumber numberWithInt: 0]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[3]|taxType" value: @"T4"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[3]|amount" value: @"43.79"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[3]|subType" value: @"W001"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[3]|rate" value: [NSNumber numberWithInt: 5]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[4]|taxType" value: @"T5"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[4]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[4]|subType" value: @"T5-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[4]|rate" value: [NSNumber numberWithInt: 14]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[5]|taxType" value: @"T6"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[5]|amount" value: @"60.00"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[5]|subType" value: @"T6-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[5]|rate" value: [NSNumber numberWithInt: 0]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[6]|taxType" value: @"T7"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[6]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[6]|subType" value: @"T7-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[6]|rate" value: [NSNumber numberWithInt: 10]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[7]|taxType" value: @"T8"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[7]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[7]|subType" value: @"T8-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[7]|rate" value: [NSNumber numberWithInt: 14]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[8]|taxType" value: @"T9"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[8]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[8]|subType" value: @"T9-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[8]|rate" value: [NSNumber numberWithInt: 12]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[9]|taxType" value: @"T10"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[9]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[9]|subType" value: @"T10-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[9]|rate" value: [NSNumber numberWithInt: 10]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[10]|taxType" value: @"T11"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[10]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[10]|subType" value: @"T11-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[10]|rate" value: [NSNumber numberWithInt: 14]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[11]|taxType" value: @"T12"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[11]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[11]|subType" value: @"T12-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[11]|rate" value: [NSNumber numberWithInt: 12]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[12]|taxType" value: @"T13"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[12]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[12]|subType" value: @"T13-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[12]|rate" value: [NSNumber numberWithInt: 10]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[13]|taxType" value: @"T14"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[13]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[13]|subType" value: @"T14-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[13]|rate" value: [NSNumber numberWithInt: 14]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[14]|taxType" value: @"T15"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[14]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[14]|subType" value: @"T15-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[14]|rate" value: [NSNumber numberWithInt: 12]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[15]|taxType" value: @"T16"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[15]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[15]|subType" value: @"T16-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[15]|rate" value: [NSNumber numberWithInt: 10]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[16]|taxType" value: @"T17"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[16]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[16]|subType" value: @"T17-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[16]|rate" value: [NSNumber numberWithInt: 10]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[17]|taxType" value: @"T18"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[17]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[17]|subType" value: @"T18-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[17]|rate" value: [NSNumber numberWithInt: 14]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[18]|taxType" value: @"T19"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[18]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[18]|subType" value: @"T19-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[18]|rate" value: [NSNumber numberWithInt: 12]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[19]|taxType" value: @"T20"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[19]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[19]|subType" value: @"T20-Sub"];
[xml UpdateChildContentInt: @"documents|document|invoiceLines|invoiceLine|taxableItems|taxableItem[19]|rate" value: [NSNumber numberWithInt: 10]];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|internalCode" value: @"IC0"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|itemsDiscount" value: @"5.00"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|netTotal" value: @"880.71"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|totalTaxableFees" value: @"817.42"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|valueDifference" value: @"7.00"];
[xml UpdateChildContent: @"documents|document|invoiceLines|invoiceLine|total" value: @"2969.89"];
[xml UpdateChildContent: @"documents|document|totalSalesAmount" value: @"947.00"];
[xml UpdateChildContent: @"documents|document|totalDiscountAmount" value: @"66.29"];
[xml UpdateChildContent: @"documents|document|netAmount" value: @"880.71"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal|taxType" value: @"T1"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal|amount" value: @"272.07"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[1]|taxType" value: @"T2"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[1]|amount" value: @"208.22"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[2]|taxType" value: @"T3"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[2]|amount" value: @"30.00"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[3]|taxType" value: @"T4"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[3]|amount" value: @"43.79"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[4]|taxType" value: @"T5"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[4]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[5]|taxType" value: @"T6"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[5]|amount" value: @"60.00"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[6]|taxType" value: @"T7"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[6]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[7]|taxType" value: @"T8"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[7]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[8]|taxType" value: @"T9"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[8]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[9]|taxType" value: @"T10"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[9]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[10]|taxType" value: @"T11"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[10]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[11]|taxType" value: @"T12"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[11]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[12]|taxType" value: @"T13"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[12]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[13]|taxType" value: @"T14"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[13]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[14]|taxType" value: @"T15"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[14]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[15]|taxType" value: @"T16"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[15]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[16]|taxType" value: @"T17"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[16]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[17]|taxType" value: @"T18"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[17]|amount" value: @"123.30"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[18]|taxType" value: @"T19"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[18]|amount" value: @"105.69"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[19]|taxType" value: @"T20"];
[xml UpdateChildContent: @"documents|document|taxTotals|taxTotal[19]|amount" value: @"88.07"];
[xml UpdateChildContent: @"documents|document|totalAmount" value: @"2964.89"];
[xml UpdateChildContent: @"documents|document|totalItemsDiscountAmount" value: @"5.00"];
[xml UpdateChildContent: @"documents|document|extraDiscountAmount" value: @"5.00"];
[xml UpdateChildContent: @"documents|document|signatures|signature|signatureType" value: @"I"];
[xml UpdateChildContent: @"documents|document|signatures|signature|value" value: @"MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq+tIJiVWSkIEEOTIcnG1XNYQOYtf5+Dg9eF5H5x1wkgR2G7dvWVXrTsdNv2Q+gvml9SdfWxlYxaljg2AuBrsHFjYVEAQFI37EW2K7tbMT7bfxwT1M5tbjxnkTTK12cgwxPr2LBNhHpfXp8SNyWCxpk6eyJb87DveVwCLbAGGXO9mhDj62glVTrCFit7mHC6bZ6MOMAp013B8No9c8xnrKQiOb4Tm2GxBYHFwEcfY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ic2NvcGUiOlsiTWNzLkludm9pY2luZy5BcGkiXX0.QH0aN0LPhFRyIFBD-1FJ0TGsjPhVlE1ztPFd6Ss0NXJ91yHwvDVmU5PslnvSHKy2gd2kAS2JLH8v_bss8ebInF0E-ykFnxnbMd2jNcoNrjzcqNRamfEan4WIluhmzBheLT9EkJaCGCcJG9N2K5MU6dDMQqX0b3KSOJ_dUQsfOjJAkkSkc10of6KsP8YG4S2YBa_wHpIm90U-a7BEQ6PETJZIpoZNrv01Z3TA3y9L2Lvc5QslCsbQ8dnyEAaXcx1bMwZmyJoIwR7COTxSFd2kBh7r6UGHkZb9IdMj9kPg4tVVpC7CKVG9N3XVZ9UEWMMViG9pV_6rXRVGN_q3UPem0A";
[http SetRequestHeader: @"Content-Type" value: @"application/xml"];

CkoStringBuilder *sbRequestBody = [[CkoStringBuilder alloc] init];
[xml GetXmlSb: sbRequestBody];

CkoHttpResponse *resp = [http PTextSb: @"POST" url: @"https://domain.com/api/v1/documentsubmissions" textData: sbRequestBody charset: @"utf-8" contentType: @"application/xml" md5: NO gzip: NO];
if (http.LastMethodSuccess == NO) {
    NSLog(@"%@",http.LastErrorText);
    return;
}

NSLog(@"%d",[resp.StatusCode intValue]);
NSLog(@"%@",resp.BodyStr);

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/xml"
	-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ilk2c2JPcmktOG1GNlpudlZrSW9tbGciLCJ0eXAiOiJhdCtqd3QifQ.eyJuYmYiOjE1OTI5MDExMDksImV4cCI6MTU5MjkwNDcwOSwiaXNzIjoiaHR0cHM6Ly9ldGEtaWRlbnRpdHlzZXJ2aWNlLndlc3RldXJvcGUuY2xvdWRhcHAuYXp1cmUuY29tIiwiYXVkIjoiTWNzLkludm9pY2luZy5BcGkiLCJjbGllbnRfaWQiOiIwODZhOWYzMS05NTQ3LTQ1YWQtYmU4NS01ZjY0N2MxNDVkN2UiLCJzaWQiOiJmYWY1ODk0NC0xNGE4LWI0MGYtMTU1YS1jMDA5YzU1ZDhjYmYiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiLZgdmI2K_Yp9mB2YjZhiIsIlRheElkIjoiMTIzNSIsIlRheFJpbiI6Im5rdWtrai1kZHNkc2QiLCJQcm9mSWQiOiIxMDAiLCJJc1RheEFkbWluIjoiMCIsIklzU3lzdGVtIjoiMSIsIk5hdElkIjoiIiwic2NvcGUiOlsiTWNzLkludm9pY2luZy5BcGkiXX0.QH0aN0LPhFRyIFBD-1FJ0TGsjPhVlE1ztPFd6Ss0NXJ91yHwvDVmU5PslnvSHKy2gd2kAS2JLH8v_bss8ebInF0E-ykFnxnbMd2jNcoNrjzcqNRamfEan4WIluhmzBheLT9EkJaCGCcJG9N2K5MU6dDMQqX0b3KSOJ_dUQsfOjJAkkSkc10of6KsP8YG4S2YBa_wHpIm90U-a7BEQ6PETJZIpoZNrv01Z3TA3y9L2Lvc5QslCsbQ8dnyEAaXcx1bMwZmyJoIwR7COTxSFd2kBh7r6UGHkZb9IdMj9kPg4tVVpC7CKVG9N3XVZ9UEWMMViG9pV_6rXRVGN_q3UPem0A"
	-d '<submission>
    <documents>
        <document>
            <issuer>
                <type>B</type>
                <id>113317713</id>
                <name>الشركة المصدرة</name>
                <address>
                    <buildingNumber>عمارة 40</buildingNumber>
                    <room>123</room>
                    <floor>16</floor>
                    <street>15 احمد فخرى</street>
                    <landmark>مستشفى حسبو</landmark>
                    <additionalInformation>بجانب مستشفى حسبو</additionalInformation>
                    <governate>القاهرة</governate>
                    <regionCity>مدينة نصر</regionCity>
                    <postalCode>098607</postalCode>
                    <country>EG</country>
                    <branchID>1</branchID>
                </address>
            </issuer>
            <receiver>
                <type>B</type>
                <id>730913562</id>
                <name>المستلم</name>
                <address>
                    <buildingNumber>عمارة 15</buildingNumber>
                    <room>110</room>
                    <floor>8</floor>
                    <street>16 حوش عيسى</street>
                    <landmark>جامع الرحمة</landmark>
                    <additionalInformation>بجانب جامع الرحمة</additionalInformation>
                    <governate>البحيرة</governate>
                    <regionCity>دمنهور</regionCity>
                    <postalCode>098661</postalCode>
                    <country>EG</country>
                </address>
            </receiver>
            <documentType>C</documentType>
            <documentTypeVersion>0.9</documentTypeVersion>
            <dateTimeIssued>2020-10-29T17:30:22Z</dateTimeIssued>
            <taxpayerActivityCode>4620</taxpayerActivityCode>
            <internalID>IID0</internalID>
            <purchaseOrderReference>1230</purchaseOrderReference>
            <purchaseOrderDescription>وصف طلب الدفع</purchaseOrderDescription>
            <salesOrderReference>1452</salesOrderReference>
            <salesOrderDescription>وصف بيع الطلب</salesOrderDescription>
            <proformaInvoiceNumber>1485</proformaInvoiceNumber>
            <references>
                <reference>439W9MSDRECAS6HXA9W4PXNE10</reference>
            </references>
            <payment>
                <bankName>البنك الاهلى</bankName>
                <bankAddress>15 شارع النصر</bankAddress>
                <bankAccountNo>1234567</bankAccountNo>
                <bankAccountIBAN />
                <swiftCode />
                <terms>لا يمكن التزوير</terms>
            </payment>
            <delivery>
                <approach>جوى</approach>
                <packaging>تغليف</packaging>
                <dateValidity>2020-06-22T17:30:22Z</dateValidity>
                <exportPort>ميناء اسكندرية</exportPort>
                <countryOfOrigin>LS</countryOfOrigin>
                <grossWeight>123.45</grossWeight>
                <netWeight>122.87</netWeight>
                <terms>لا يمكن الفتح</terms>
            </delivery>
            <invoiceLines>
                <invoiceLine>
                    <description>حاسب الى</description>
                    <itemType>GS1</itemType>
                    <itemCode>10003752</itemCode>
                    <unitType>EA</unitType>
                    <quantity>5</quantity>
                    <unitValue>
                        <currencySold>EUR</currencySold>
                        <amountSold>10.00</amountSold>
                        <amountEGP>189.40</amountEGP>
                        <currencyExchangeRate>18.94</currencyExchangeRate>
                    </unitValue>
                    <salesTotal>947.00</salesTotal>
                    <discount>
                        <rate>7</rate>
                        <amount>66.29</amount>
                    </discount>
                    <taxableItems>
                        <taxableItem>
                            <taxType>T1</taxType>
                            <amount>272.07</amount>
                            <subType>V001</subType>
                            <rate>14</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T2</taxType>
                            <amount>208.22</amount>
                            <subType>T2-Sub</subType>
                            <rate>12</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T3</taxType>
                            <amount>30.00</amount>
                            <subType>T3-Sub</subType>
                            <rate>0</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T4</taxType>
                            <amount>43.79</amount>
                            <subType>W001</subType>
                            <rate>5</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T5</taxType>
                            <amount>123.30</amount>
                            <subType>T5-Sub</subType>
                            <rate>14</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T6</taxType>
                            <amount>60.00</amount>
                            <subType>T6-Sub</subType>
                            <rate>0</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T7</taxType>
                            <amount>88.07</amount>
                            <subType>T7-Sub</subType>
                            <rate>10</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T8</taxType>
                            <amount>123.30</amount>
                            <subType>T8-Sub</subType>
                            <rate>14</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T9</taxType>
                            <amount>105.69</amount>
                            <subType>T9-Sub</subType>
                            <rate>12</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T10</taxType>
                            <amount>88.07</amount>
                            <subType>T10-Sub</subType>
                            <rate>10</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T11</taxType>
                            <amount>123.30</amount>
                            <subType>T11-Sub</subType>
                            <rate>14</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T12</taxType>
                            <amount>105.69</amount>
                            <subType>T12-Sub</subType>
                            <rate>12</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T13</taxType>
                            <amount>88.07</amount>
                            <subType>T13-Sub</subType>
                            <rate>10</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T14</taxType>
                            <amount>123.30</amount>
                            <subType>T14-Sub</subType>
                            <rate>14</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T15</taxType>
                            <amount>105.69</amount>
                            <subType>T15-Sub</subType>
                            <rate>12</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T16</taxType>
                            <amount>88.07</amount>
                            <subType>T16-Sub</subType>
                            <rate>10</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T17</taxType>
                            <amount>88.07</amount>
                            <subType>T17-Sub</subType>
                            <rate>10</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T18</taxType>
                            <amount>123.30</amount>
                            <subType>T18-Sub</subType>
                            <rate>14</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T19</taxType>
                            <amount>105.69</amount>
                            <subType>T19-Sub</subType>
                            <rate>12</rate>
                        </taxableItem>
                        <taxableItem>
                            <taxType>T20</taxType>
                            <amount>88.07</amount>
                            <subType>T20-Sub</subType>
                            <rate>10</rate>
                        </taxableItem>
                    </taxableItems>
                    <internalCode>IC0</internalCode>
                    <itemsDiscount>5.00</itemsDiscount>
                    <netTotal>880.71</netTotal>
                    <totalTaxableFees>817.42</totalTaxableFees>
                    <valueDifference>7.00</valueDifference>
                    <total>2969.89</total>
                </invoiceLine>
            </invoiceLines>
            <totalSalesAmount>947.00</totalSalesAmount>
            <totalDiscountAmount>66.29</totalDiscountAmount>
            <netAmount>880.71</netAmount>
            <taxTotals>
                <taxTotal>
                    <taxType>T1</taxType>
                    <amount>272.07</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T2</taxType>
                    <amount>208.22</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T3</taxType>
                    <amount>30.00</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T4</taxType>
                    <amount>43.79</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T5</taxType>
                    <amount>123.30</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T6</taxType>
                    <amount>60.00</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T7</taxType>
                    <amount>88.07</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T8</taxType>
                    <amount>123.30</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T9</taxType>
                    <amount>105.69</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T10</taxType>
                    <amount>88.07</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T11</taxType>
                    <amount>123.30</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T12</taxType>
                    <amount>105.69</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T13</taxType>
                    <amount>88.07</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T14</taxType>
                    <amount>123.30</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T15</taxType>
                    <amount>105.69</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T16</taxType>
                    <amount>88.07</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T17</taxType>
                    <amount>88.07</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T18</taxType>
                    <amount>123.30</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T19</taxType>
                    <amount>105.69</amount>
                </taxTotal>
                <taxTotal>
                    <taxType>T20</taxType>
                    <amount>88.07</amount>
                </taxTotal>
            </taxTotals>
            <totalAmount>2964.89</totalAmount>
            <totalItemsDiscountAmount>5.00</totalItemsDiscountAmount>
            <extraDiscountAmount>5.00</extraDiscountAmount>
            <signatures>
                <signature>
                    <signatureType>I</signatureType>
                    <value>MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxF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hQKhSeb7ShpdkZcMwcfKdDw6LW02/XcmzVl8NBBbLjKSJ/jxdL1RxPPza7RbGqSx9pfyav5+AxO9sXnXXc5jGCApIwggKOAgEBMF0wSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzICEEFkOqRVlVar0F0n3FZOLiIwCwYJYIZIAWUDBAIBoIIBCjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcFMBwGCSqGSIb3DQEJBTEPFw0yMDEwMzAxOTM2NDJaMC8GCSqGSIb3DQEJBDEiBCDNHXp2I2Focm9g1UhjPLwQg2haFOh2iBuCJ6vkJLY05zCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQBfa7+ZwcE6lOBRRVeoQ4rvrwo98q0IXP+G7EBowzXxD8QH74l//HAXk/dgYoS80hh3psMUitMpcTaet2Qlha6gp8RTpzlqpz/oYVJ1u+L2Viw+6/XVSAmrY0wyvkDzuFhFGLF9IgfqGFcgh8Uvgq8103D+0HWp9+4UVE9J08g/eZLyVYxYjstjCZahSggVnCdkkRQ1sN3F4xPuP/XgIb4VaXr4kNHDqXVG4wZIkIusKlPREWL1L/kaLIcJkPG+MvEv7wapniupuVLdksFTsuAlp/+BmtdsjSv3QY4YYZ4Asd2f9NeZgdKBrkY8OJU7RsCGP/ZvZeOBjeRJZHKHBKvS</value>
                </signature>
            </signatures>
        </document>
    </documents>
</submission>'
https://domain.com/api/v1/documentsubmissions

Postman Collection Item JSON

{
  "name": "1.2 Submit Documents (XML) Credit",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{generatedAccessToken}}",
          "type": "string"
        }
      ]
    },
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/xml"
      },
      {
        "key": "Authorization",
        "value": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ilk2c2JPcmktOG1GNlpudlZrSW9tbGciLCJ0eXAiOiJhdCtqd3QifQ.eyJuYmYiOjE1OTI5MDExMDksImV4cCI6MTU5MjkwNDcwOSwiaXNzIjoiaHR0cHM6Ly9ldGEtaWRlbnRpdHlzZXJ2aWNlLndlc3RldXJvcGUuY2xvdWRhcHAuYXp1cmUuY29tIiwiYXVkIjoiTWNzLkludm9pY2luZy5BcGkiLCJjbGllbnRfaWQiOiIwODZhOWYzMS05NTQ3LTQ1YWQtYmU4NS01ZjY0N2MxNDVkN2UiLCJzaWQiOiJmYWY1ODk0NC0xNGE4LWI0MGYtMTU1YS1jMDA5YzU1ZDhjYmYiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiLZgdmI2K_Yp9mB2YjZhiIsIlRheElkIjoiMTIzNSIsIlRheFJpbiI6Im5rdWtrai1kZHNkc2QiLCJQcm9mSWQiOiIxMDAiLCJJc1RheEFkbWluIjoiMCIsIklzU3lzdGVtIjoiMSIsIk5hdElkIjoiIiwic2NvcGUiOlsiTWNzLkludm9pY2luZy5BcGkiXX0.QH0aN0LPhFRyIFBD-1FJ0TGsjPhVlE1ztPFd6Ss0NXJ91yHwvDVmU5PslnvSHKy2gd2kAS2JLH8v_bss8ebInF0E-ykFnxnbMd2jNcoNrjzcqNRamfEan4WIluhmzBheLT9EkJaCGCcJG9N2K5MU6dDMQqX0b3KSOJ_dUQsfOjJAkkSkc10of6KsP8YG4S2YBa_wHpIm90U-a7BEQ6PETJZIpoZNrv01Z3TA3y9L2Lvc5QslCsbQ8dnyEAaXcx1bMwZmyJoIwR7COTxSFd2kBh7r6UGHkZb9IdMj9kPg4tVVpC7CKVG9N3XVZ9UEWMMViG9pV_6rXRVGN_q3UPem0A",
        "type": "text"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "<submission>\r\n    <documents>\r\n        <document>\r\n            <issuer>\r\n                <type>B</type>\r\n                <id>113317713</id>\r\n                <name>الشركة المصدرة</name>\r\n                <address>\r\n                    <buildingNumber>عمارة 40</buildingNumber>\r\n                    <room>123</room>\r\n                    <floor>16</floor>\r\n                    <street>15 احمد فخرى</street>\r\n                    <landmark>مستشفى حسبو</landmark>\r\n                    <additionalInformation>بجانب مستشفى حسبو</additionalInformation>\r\n                    <governate>القاهرة</governate>\r\n                    <regionCity>مدينة نصر</regionCity>\r\n                    <postalCode>098607</postalCode>\r\n                    <country>EG</country>\r\n                    <branchID>1</branchID>\r\n                </address>\r\n            </issuer>\r\n            <receiver>\r\n                <type>B</type>\r\n                <id>730913562</id>\r\n                <name>المستلم</name>\r\n                <address>\r\n                    <buildingNumber>عمارة 15</buildingNumber>\r\n                    <room>110</room>\r\n                    <floor>8</floor>\r\n                    <street>16 حوش عيسى</street>\r\n                    <landmark>جامع الرحمة</landmark>\r\n                    <additionalInformation>بجانب جامع الرحمة</additionalInformation>\r\n                    <governate>البحيرة</governate>\r\n                    <regionCity>دمنهور</regionCity>\r\n                    <postalCode>098661</postalCode>\r\n                    <country>EG</country>\r\n                </address>\r\n            </receiver>\r\n            <documentType>C</documentType>\r\n            <documentTypeVersion>0.9</documentTypeVersion>\r\n            <dateTimeIssued>2020-10-29T17:30:22Z</dateTimeIssued>\r\n            <taxpayerActivityCode>4620</taxpayerActivityCode>\r\n            <internalID>IID0</internalID>\r\n            <purchaseOrderReference>1230</purchaseOrderReference>\r\n            <purchaseOrderDescription>وصف طلب الدفع</purchaseOrderDescription>\r\n            <salesOrderReference>1452</salesOrderReference>\r\n            <salesOrderDescription>وصف بيع الطلب</salesOrderDescription>\r\n            <proformaInvoiceNumber>1485</proformaInvoiceNumber>\r\n            <references>\r\n                <reference>439W9MSDRECAS6HXA9W4PXNE10</reference>\r\n            </references>\r\n            <payment>\r\n                <bankName>البنك الاهلى</bankName>\r\n                <bankAddress>15 شارع النصر</bankAddress>\r\n                <bankAccountNo>1234567</bankAccountNo>\r\n                <bankAccountIBAN />\r\n                <swiftCode />\r\n                <terms>لا يمكن التزوير</terms>\r\n            </payment>\r\n            <delivery>\r\n                <approach>جوى</approach>\r\n                <packaging>تغليف</packaging>\r\n                <dateValidity>2020-06-22T17:30:22Z</dateValidity>\r\n                <exportPort>ميناء اسكندرية</exportPort>\r\n                <countryOfOrigin>LS</countryOfOrigin>\r\n                <grossWeight>123.45</grossWeight>\r\n                <netWeight>122.87</netWeight>\r\n                <terms>لا يمكن الفتح</terms>\r\n            </delivery>\r\n            <invoiceLines>\r\n                <invoiceLine>\r\n                    <description>حاسب الى</description>\r\n                    <itemType>GS1</itemType>\r\n                    <itemCode>10003752</itemCode>\r\n                    <unitType>EA</unitType>\r\n                    <quantity>5</quantity>\r\n                    <unitValue>\r\n                        <currencySold>EUR</currencySold>\r\n                        <amountSold>10.00</amountSold>\r\n                        <amountEGP>189.40</amountEGP>\r\n                        <currencyExchangeRate>18.94</currencyExchangeRate>\r\n                    </unitValue>\r\n                    <salesTotal>947.00</salesTotal>\r\n                    <discount>\r\n                        <rate>7</rate>\r\n                        <amount>66.29</amount>\r\n                    </discount>\r\n                    <taxableItems>\r\n                        <taxableItem>\r\n                            <taxType>T1</taxType>\r\n                            <amount>272.07</amount>\r\n                            <subType>V001</subType>\r\n                            <rate>14</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T2</taxType>\r\n                            <amount>208.22</amount>\r\n                            <subType>T2-Sub</subType>\r\n                            <rate>12</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T3</taxType>\r\n                            <amount>30.00</amount>\r\n                            <subType>T3-Sub</subType>\r\n                            <rate>0</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T4</taxType>\r\n                            <amount>43.79</amount>\r\n                            <subType>W001</subType>\r\n                            <rate>5</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T5</taxType>\r\n                            <amount>123.30</amount>\r\n                            <subType>T5-Sub</subType>\r\n                            <rate>14</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T6</taxType>\r\n                            <amount>60.00</amount>\r\n                            <subType>T6-Sub</subType>\r\n                            <rate>0</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T7</taxType>\r\n                            <amount>88.07</amount>\r\n                            <subType>T7-Sub</subType>\r\n                            <rate>10</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T8</taxType>\r\n                            <amount>123.30</amount>\r\n                            <subType>T8-Sub</subType>\r\n                            <rate>14</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T9</taxType>\r\n                            <amount>105.69</amount>\r\n                            <subType>T9-Sub</subType>\r\n                            <rate>12</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T10</taxType>\r\n                            <amount>88.07</amount>\r\n                            <subType>T10-Sub</subType>\r\n                            <rate>10</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T11</taxType>\r\n                            <amount>123.30</amount>\r\n                            <subType>T11-Sub</subType>\r\n                            <rate>14</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T12</taxType>\r\n                            <amount>105.69</amount>\r\n                            <subType>T12-Sub</subType>\r\n                            <rate>12</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T13</taxType>\r\n                            <amount>88.07</amount>\r\n                            <subType>T13-Sub</subType>\r\n                            <rate>10</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T14</taxType>\r\n                            <amount>123.30</amount>\r\n                            <subType>T14-Sub</subType>\r\n                            <rate>14</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T15</taxType>\r\n                            <amount>105.69</amount>\r\n                            <subType>T15-Sub</subType>\r\n                            <rate>12</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T16</taxType>\r\n                            <amount>88.07</amount>\r\n                            <subType>T16-Sub</subType>\r\n                            <rate>10</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T17</taxType>\r\n                            <amount>88.07</amount>\r\n                            <subType>T17-Sub</subType>\r\n                            <rate>10</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T18</taxType>\r\n                            <amount>123.30</amount>\r\n                            <subType>T18-Sub</subType>\r\n                            <rate>14</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T19</taxType>\r\n                            <amount>105.69</amount>\r\n                            <subType>T19-Sub</subType>\r\n                            <rate>12</rate>\r\n                        </taxableItem>\r\n                        <taxableItem>\r\n                            <taxType>T20</taxType>\r\n                            <amount>88.07</amount>\r\n                            <subType>T20-Sub</subType>\r\n                            <rate>10</rate>\r\n                        </taxableItem>\r\n                    </taxableItems>\r\n                    <internalCode>IC0</internalCode>\r\n                    <itemsDiscount>5.00</itemsDiscount>\r\n                    <netTotal>880.71</netTotal>\r\n                    <totalTaxableFees>817.42</totalTaxableFees>\r\n                    <valueDifference>7.00</valueDifference>\r\n                    <total>2969.89</total>\r\n                </invoiceLine>\r\n            </invoiceLines>\r\n            <totalSalesAmount>947.00</totalSalesAmount>\r\n            <totalDiscountAmount>66.29</totalDiscountAmount>\r\n            <netAmount>880.71</netAmount>\r\n            <taxTotals>\r\n                <taxTotal>\r\n                    <taxType>T1</taxType>\r\n                    <amount>272.07</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T2</taxType>\r\n                    <amount>208.22</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T3</taxType>\r\n                    <amount>30.00</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T4</taxType>\r\n                    <amount>43.79</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T5</taxType>\r\n                    <amount>123.30</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T6</taxType>\r\n                    <amount>60.00</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T7</taxType>\r\n                    <amount>88.07</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T8</taxType>\r\n                    <amount>123.30</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T9</taxType>\r\n                    <amount>105.69</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T10</taxType>\r\n                    <amount>88.07</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T11</taxType>\r\n                    <amount>123.30</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T12</taxType>\r\n                    <amount>105.69</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T13</taxType>\r\n                    <amount>88.07</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T14</taxType>\r\n                    <amount>123.30</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T15</taxType>\r\n                    <amount>105.69</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T16</taxType>\r\n                    <amount>88.07</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T17</taxType>\r\n                    <amount>88.07</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T18</taxType>\r\n                    <amount>123.30</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T19</taxType>\r\n                    <amount>105.69</amount>\r\n                </taxTotal>\r\n                <taxTotal>\r\n                    <taxType>T20</taxType>\r\n                    <amount>88.07</amount>\r\n                </taxTotal>\r\n            </taxTotals>\r\n            <totalAmount>2964.89</totalAmount>\r\n            <totalItemsDiscountAmount>5.00</totalItemsDiscountAmount>\r\n            <extraDiscountAmount>5.00</extraDiscountAmount>\r\n            <signatures>\r\n                <signature>\r\n                    <signatureType>I</signatureType>\r\n                    <value>MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq+tIJiVWSkIEEOTIcnG1XNYQOYtf5+Dg9eF5H5x1wkgR2G7dvWVXrTsdNv2Q+gvml9SdfWxlYxaljg2AuBrsHFjYVEAQFI37EW2K7tbMT7bfxwT1M5tbjxnkTTK12cgwxPr2LBNhHpfXp8SNyWCxpk6eyJb87DveVwCLbAGGXO9mhDj62glVTrCFit7mHC6bZ6MOMAp013B8No9c8xnrKQiOb4Tm2GxBYHFwEcfYUGZNltGZNdVUtu6ty+NTrSRRC/dILeGHgz6/2pgQPk5OFYRTRHRNVNo+jG+nurUYkSWxA4I9CmsVt2FdeBeuvRFs/U1I+ieKg1wIDAQABo4HHMIHEMAkGA1UdEwQCMAAwVAYDVR0fBE0wSzBJoEegRYZDaHR0cDovL21wa2ljcmwuZWd5cHR0cnVzdC5jb20vRWd5cHRUcnVzdENvcnBvcmF0ZUNBRzIvTGF0ZXN0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Bfa7+ZwcE6lOBRRVeoQ4rvrwo98q0IXP+G7EBowzXxD8QH74l//HAXk/dgYoS80hh3psMUitMpcTaet2Qlha6gp8RTpzlqpz/oYVJ1u+L2Viw+6/XVSAmrY0wyvkDzuFhFGLF9IgfqGFcgh8Uvgq8103D+0HWp9+4UVE9J08g/eZLyVYxYjstjCZahSggVnCdkkRQ1sN3F4xPuP/XgIb4VaXr4kNHDqXVG4wZIkIusKlPREWL1L/kaLIcJkPG+MvEv7wapniupuVLdksFTsuAlp/+BmtdsjSv3QY4YYZ4Asd2f9NeZgdKBrkY8OJU7RsCGP/ZvZeOBjeRJZHKHBKvS</value>\r\n                </signature>\r\n            </signatures>\r\n        </document>\r\n    </documents>\r\n</submission>"
    },
    "url": {
      "raw": "{{apiBaseUrl}}/api/v1/documentsubmissions",
      "host": [
        "{{apiBaseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "documentsubmissions"
      ]
    }
  },
  "response": [
  ]
}