Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
// Use this online tool to generate code from sample JSON: Generate Code to Create JSON
// The following JSON is sent in the request body.
// {
// "documents": [
// {
// "issuer": {
// "address": {
// "branchID": "1",
// "country": "EG",
// "governate": "Cairo",
// "regionCity": "Nasr City",
// "street": "580 Clementina Key",
// "buildingNumber": "Bldg. 0",
// "postalCode": "68030",
// "floor": "1",
// "room": "123",
// "landmark": "7660 Melody Trail",
// "additionalInformation": "beside Townhall"
// },
// "type": "B",
// "id": "113317713",
// "name": "Issuer Company"
// },
// "receiver": {
// "address": {
// "country": "EG",
// "governate": "Egypt",
// "regionCity": "Mufazat al Ismlyah",
// "street": "580 Clementina Key",
// "buildingNumber": "Bldg. 0",
// "postalCode": "68030",
// "floor": "1",
// "room": "123",
// "landmark": "7660 Melody Trail",
// "additionalInformation": "beside Townhall"
// },
// "type": "B",
// "id": "313717919",
// "name": "Receiver"
// },
// "documentType": "C",
// "documentTypeVersion": "0.9",
// "dateTimeIssued": "2020-10-29T23:59:59Z",
// "taxpayerActivityCode": "4620",
// "internalID": "IID1",
// "purchaseOrderReference": "P-233-A6375",
// "purchaseOrderDescription": "purchase Order description",
// "salesOrderReference": "1231",
// "salesOrderDescription": "Sales Order description",
// "proformaInvoiceNumber": "SomeValue",
// "references": [
// "5Z40TP7SXAKADVH8WX71PXNE10"
// ],
// "payment": {
// "bankName": "SomeValue",
// "bankAddress": "SomeValue",
// "bankAccountNo": "SomeValue",
// "bankAccountIBAN": "",
// "swiftCode": "",
// "terms": "SomeValue"
// },
// "delivery": {
// "approach": "SomeValue",
// "packaging": "SomeValue",
// "dateValidity": "2020-09-28T09:30:10Z",
// "exportPort": "SomeValue",
// "countryOfOrigin": "EG",
// "grossWeight": 10.50,
// "netWeight": 20.50,
// "terms": "SomeValue"
// },
// "invoiceLines": [
// {
// "description": "Computer1",
// "itemType": "EGS",
// "itemCode": "EG-113317713-123456",
// "unitType": "EA",
// "quantity": 5,
// "internalCode": "IC0",
// "salesTotal": 947.00,
// "total": 2969.89,
// "valueDifference": 7.00,
// "totalTaxableFees": 817.42,
// "netTotal": 880.71,
// "itemsDiscount": 5.00,
// "unitValue": {
// "currencySold": "EUR",
// "amountEGP": 189.40,
// "amountSold": 10.00,
// "currencyExchangeRate": 18.94
// },
// "discount": {
// "rate": 7,
// "amount": 66.29
// },
// "taxableItems": [
// {
// "taxType": "T1",
// "amount": 272.07,
// "subType": "T1",
// "rate": 14.00
// },
// {
// "taxType": "T2",
// "amount": 208.22,
// "subType": "T2",
// "rate": 12
// },
// {
// "taxType": "T3",
// "amount": 30.00,
// "subType": "T3",
// "rate": 0.00
// },
// {
// "taxType": "T4",
// "amount": 43.79,
// "subType": "T4",
// "rate": 5.00
// },
// {
// "taxType": "T5",
// "amount": 123.30,
// "subType": "T5",
// "rate": 14.00
// },
// {
// "taxType": "T6",
// "amount": 60.00,
// "subType": "T6",
// "rate": 0.00
// },
// {
// "taxType": "T7",
// "amount": 88.07,
// "subType": "T7",
// "rate": 10.00
// },
// {
// "taxType": "T8",
// "amount": 123.30,
// "subType": "T8",
// "rate": 14.00
// },
// {
// "taxType": "T9",
// "amount": 105.69,
// "subType": "T9",
// "rate": 12.00
// },
// {
// "taxType": "T10",
// "amount": 88.07,
// "subType": "T10",
// "rate": 10.00
// },
// {
// "taxType": "T11",
// "amount": 123.30,
// "subType": "T11",
// "rate": 14.00
// },
// {
// "taxType": "T12",
// "amount": 105.69,
// "subType": "T12",
// "rate": 12.00
// },
// {
// "taxType": "T13",
// "amount": 88.07,
// "subType": "T13",
// "rate": 10.00
// },
// {
// "taxType": "T14",
// "amount": 123.30,
// "subType": "T14",
// "rate": 14.00
// },
// {
// "taxType": "T15",
// "amount": 105.69,
// "subType": "T15",
// "rate": 12.00
// },
// {
// "taxType": "T16",
// "amount": 88.07,
// "subType": "T16",
// "rate": 10.00
// },
// {
// "taxType": "T17",
// "amount": 88.07,
// "subType": "T17",
// "rate": 10.00
// },
// {
// "taxType": "T18",
// "amount": 123.30,
// "subType": "T18",
// "rate": 14.00
// },
// {
// "taxType": "T19",
// "amount": 105.69,
// "subType": "T19",
// "rate": 12.00
// },
// {
// "taxType": "T20",
// "amount": 88.07,
// "subType": "T20",
// "rate": 10.00
// }
// ]
// },
// {
// "description": "Computer2",
// "itemType": "GPC",
// "itemCode": "10003752",
// "unitType": "EA",
// "quantity": 7,
// "internalCode": "IC0",
// "salesTotal": 662.90,
// "total": 2226.61,
// "valueDifference": 6.00,
// "totalTaxableFees": 621.51,
// "netTotal": 652.90,
// "itemsDiscount": 9.00,
// "unitValue": {
// "currencySold": "EUR",
// "amountEGP": 94.70,
// "amountSold": 5.00,
// "currencyExchangeRate": 18.94
// },
// "discount": {
// "rate": 0,
// "amount": 10.00
// },
// "taxableItems": [
// {
// "taxType": "T1",
// "amount": 205.47,
// "subType": "T1",
// "rate": 14.00
// },
// {
// "taxType": "T2",
// "amount": 157.25,
// "subType": "T2",
// "rate": 12
// },
// {
// "taxType": "T3",
// "amount": 30.00,
// "subType": "T3",
// "rate": 0.00
// },
// {
// "taxType": "T4",
// "amount": 32.20,
// "subType": "T4",
// "rate": 5.00
// },
// {
// "taxType": "T5",
// "amount": 91.41,
// "subType": "T5",
// "rate": 14.00
// },
// {
// "taxType": "T6",
// "amount": 60.00,
// "subType": "T6",
// "rate": 0.00
// },
// {
// "taxType": "T7",
// "amount": 65.29,
// "subType": "T7",
// "rate": 10.00
// },
// {
// "taxType": "T8",
// "amount": 91.41,
// "subType": "T8",
// "rate": 14.00
// },
// {
// "taxType": "T9",
// "amount": 78.35,
// "subType": "T9",
// "rate": 12.00
// },
// {
// "taxType": "T10",
// "amount": 65.29,
// "subType": "T10",
// "rate": 10.00
// },
// {
// "taxType": "T11",
// "amount": 91.41,
// "subType": "T11",
// "rate": 14.00
// },
// {
// "taxType": "T12",
// "amount": 78.35,
// "subType": "T12",
// "rate": 12.00
// },
// {
// "taxType": "T13",
// "amount": 65.29,
// "subType": "T13",
// "rate": 10.00
// },
// {
// "taxType": "T14",
// "amount": 91.41,
// "subType": "T14",
// "rate": 14.00
// },
// {
// "taxType": "T15",
// "amount": 78.35,
// "subType": "T15",
// "rate": 12.00
// },
// {
// "taxType": "T16",
// "amount": 65.29,
// "subType": "T16",
// "rate": 10.00
// },
// {
// "taxType": "T17",
// "amount": 65.29,
// "subType": "T17",
// "rate": 10.00
// },
// {
// "taxType": "T18",
// "amount": 91.41,
// "subType": "T18",
// "rate": 14.00
// },
// {
// "taxType": "T19",
// "amount": 78.35,
// "subType": "T19",
// "rate": 12.00
// },
// {
// "taxType": "T20",
// "amount": 65.29,
// "subType": "T20",
// "rate": 10.00
// }
// ]
// }
// ],
// "totalDiscountAmount": 76.29,
// "totalSalesAmount": 1609.90,
// "netAmount": 1533.61,
// "taxTotals": [
// {
// "taxType": "T1",
// "amount": 477.54
// },
// {
// "taxType": "T2",
// "amount": 365.47
// },
// {
// "taxType": "T3",
// "amount": 60.00
// },
// {
// "taxType": "T4",
// "amount": 75.99
// },
// {
// "taxType": "T5",
// "amount": 214.71
// },
// {
// "taxType": "T6",
// "amount": 120.00
// },
// {
// "taxType": "T7",
// "amount": 153.36
// },
// {
// "taxType": "T8",
// "amount": 214.71
// },
// {
// "taxType": "T9",
// "amount": 184.04
// },
// {
// "taxType": "T10",
// "amount": 153.36
// },
// {
// "taxType": "T11",
// "amount": 214.71
// },
// {
// "taxType": "T12",
// "amount": 184.04
// },
// {
// "taxType": "T13",
// "amount": 153.36
// },
// {
// "taxType": "T14",
// "amount": 214.71
// },
// {
// "taxType": "T15",
// "amount": 184.04
// },
// {
// "taxType": "T16",
// "amount": 153.36
// },
// {
// "taxType": "T17",
// "amount": 153.36
// },
// {
// "taxType": "T18",
// "amount": 214.71
// },
// {
// "taxType": "T19",
// "amount": 184.04
// },
// {
// "taxType": "T20",
// "amount": 153.36
// }
// ],
// "totalAmount": 5191.50,
// "extraDiscountAmount": 5.00,
// "totalItemsDiscount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oOPk4fQDUyuW4bIArNWnTn5qrTrSCh/hFA4HGNV8942KNQaUDwSIrKImE2aMpsjyrfV6rIP2R9HJnk0Gx7M7lT0dtwV1Yw0GyZ\u002BNQjQZrGrH\u002BI5RXixZPPOm2jxI9SwyX0X9yFIT2BvVkUhb9qqzxP\u002BX/HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk\u002BLNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW"
// }
// ]
// }
// ]
// }
loJson = createobject("CkJsonObject")
loJson.UpdateString("documents[0].issuer.address.branchID","1")
loJson.UpdateString("documents[0].issuer.address.country","EG")
loJson.UpdateString("documents[0].issuer.address.governate","Cairo")
loJson.UpdateString("documents[0].issuer.address.regionCity","Nasr City")
loJson.UpdateString("documents[0].issuer.address.street","580 Clementina Key")
loJson.UpdateString("documents[0].issuer.address.buildingNumber","Bldg. 0")
loJson.UpdateString("documents[0].issuer.address.postalCode","68030")
loJson.UpdateString("documents[0].issuer.address.floor","1")
loJson.UpdateString("documents[0].issuer.address.room","123")
loJson.UpdateString("documents[0].issuer.address.landmark","7660 Melody Trail")
loJson.UpdateString("documents[0].issuer.address.additionalInformation","beside Townhall")
loJson.UpdateString("documents[0].issuer.type","B")
loJson.UpdateString("documents[0].issuer.id","113317713")
loJson.UpdateString("documents[0].issuer.name","Issuer Company")
loJson.UpdateString("documents[0].receiver.address.country","EG")
loJson.UpdateString("documents[0].receiver.address.governate","Egypt")
loJson.UpdateString("documents[0].receiver.address.regionCity","Mufazat al Ismlyah")
loJson.UpdateString("documents[0].receiver.address.street","580 Clementina Key")
loJson.UpdateString("documents[0].receiver.address.buildingNumber","Bldg. 0")
loJson.UpdateString("documents[0].receiver.address.postalCode","68030")
loJson.UpdateString("documents[0].receiver.address.floor","1")
loJson.UpdateString("documents[0].receiver.address.room","123")
loJson.UpdateString("documents[0].receiver.address.landmark","7660 Melody Trail")
loJson.UpdateString("documents[0].receiver.address.additionalInformation","beside Townhall")
loJson.UpdateString("documents[0].receiver.type","B")
loJson.UpdateString("documents[0].receiver.id","313717919")
loJson.UpdateString("documents[0].receiver.name","Receiver")
loJson.UpdateString("documents[0].documentType","C")
loJson.UpdateString("documents[0].documentTypeVersion","0.9")
loJson.UpdateString("documents[0].dateTimeIssued","2020-10-29T23:59:59Z")
loJson.UpdateString("documents[0].taxpayerActivityCode","4620")
loJson.UpdateString("documents[0].internalID","IID1")
loJson.UpdateString("documents[0].purchaseOrderReference","P-233-A6375")
loJson.UpdateString("documents[0].purchaseOrderDescription","purchase Order description")
loJson.UpdateString("documents[0].salesOrderReference","1231")
loJson.UpdateString("documents[0].salesOrderDescription","Sales Order description")
loJson.UpdateString("documents[0].proformaInvoiceNumber","SomeValue")
loJson.UpdateString("documents[0].references[0]","5Z40TP7SXAKADVH8WX71PXNE10")
loJson.UpdateString("documents[0].payment.bankName","SomeValue")
loJson.UpdateString("documents[0].payment.bankAddress","SomeValue")
loJson.UpdateString("documents[0].payment.bankAccountNo","SomeValue")
loJson.UpdateString("documents[0].payment.bankAccountIBAN","")
loJson.UpdateString("documents[0].payment.swiftCode","")
loJson.UpdateString("documents[0].payment.terms","SomeValue")
loJson.UpdateString("documents[0].delivery.approach","SomeValue")
loJson.UpdateString("documents[0].delivery.packaging","SomeValue")
loJson.UpdateString("documents[0].delivery.dateValidity","2020-09-28T09:30:10Z")
loJson.UpdateString("documents[0].delivery.exportPort","SomeValue")
loJson.UpdateString("documents[0].delivery.countryOfOrigin","EG")
loJson.UpdateNumber("documents[0].delivery.grossWeight","10.50")
loJson.UpdateNumber("documents[0].delivery.netWeight","20.50")
loJson.UpdateString("documents[0].delivery.terms","SomeValue")
loJson.UpdateString("documents[0].invoiceLines[0].description","Computer1")
loJson.UpdateString("documents[0].invoiceLines[0].itemType","EGS")
loJson.UpdateString("documents[0].invoiceLines[0].itemCode","EG-113317713-123456")
loJson.UpdateString("documents[0].invoiceLines[0].unitType","EA")
loJson.UpdateInt("documents[0].invoiceLines[0].quantity",5)
loJson.UpdateString("documents[0].invoiceLines[0].internalCode","IC0")
loJson.UpdateNumber("documents[0].invoiceLines[0].salesTotal","947.00")
loJson.UpdateNumber("documents[0].invoiceLines[0].total","2969.89")
loJson.UpdateNumber("documents[0].invoiceLines[0].valueDifference","7.00")
loJson.UpdateNumber("documents[0].invoiceLines[0].totalTaxableFees","817.42")
loJson.UpdateNumber("documents[0].invoiceLines[0].netTotal","880.71")
loJson.UpdateNumber("documents[0].invoiceLines[0].itemsDiscount","5.00")
loJson.UpdateString("documents[0].invoiceLines[0].unitValue.currencySold","EUR")
loJson.UpdateNumber("documents[0].invoiceLines[0].unitValue.amountEGP","189.40")
loJson.UpdateNumber("documents[0].invoiceLines[0].unitValue.amountSold","10.00")
loJson.UpdateNumber("documents[0].invoiceLines[0].unitValue.currencyExchangeRate","18.94")
loJson.UpdateInt("documents[0].invoiceLines[0].discount.rate",7)
loJson.UpdateNumber("documents[0].invoiceLines[0].discount.amount","66.29")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[0].taxType","T1")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[0].amount","272.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[0].subType","T1")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[0].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[1].taxType","T2")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[1].amount","208.22")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[1].subType","T2")
loJson.UpdateInt("documents[0].invoiceLines[0].taxableItems[1].rate",12)
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[2].taxType","T3")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[2].amount","30.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[2].subType","T3")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[2].rate","0.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[3].taxType","T4")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[3].amount","43.79")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[3].subType","T4")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[3].rate","5.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[4].taxType","T5")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[4].amount","123.30")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[4].subType","T5")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[4].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[5].taxType","T6")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[5].amount","60.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[5].subType","T6")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[5].rate","0.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[6].taxType","T7")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[6].amount","88.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[6].subType","T7")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[6].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[7].taxType","T8")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[7].amount","123.30")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[7].subType","T8")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[7].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[8].taxType","T9")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[8].amount","105.69")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[8].subType","T9")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[8].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[9].taxType","T10")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[9].amount","88.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[9].subType","T10")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[9].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[10].taxType","T11")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[10].amount","123.30")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[10].subType","T11")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[10].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[11].taxType","T12")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[11].amount","105.69")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[11].subType","T12")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[11].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[12].taxType","T13")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[12].amount","88.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[12].subType","T13")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[12].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[13].taxType","T14")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[13].amount","123.30")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[13].subType","T14")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[13].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[14].taxType","T15")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[14].amount","105.69")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[14].subType","T15")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[14].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[15].taxType","T16")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[15].amount","88.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[15].subType","T16")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[15].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[16].taxType","T17")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[16].amount","88.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[16].subType","T17")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[16].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[17].taxType","T18")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[17].amount","123.30")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[17].subType","T18")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[17].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[18].taxType","T19")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[18].amount","105.69")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[18].subType","T19")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[18].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[19].taxType","T20")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[19].amount","88.07")
loJson.UpdateString("documents[0].invoiceLines[0].taxableItems[19].subType","T20")
loJson.UpdateNumber("documents[0].invoiceLines[0].taxableItems[19].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].description","Computer2")
loJson.UpdateString("documents[0].invoiceLines[1].itemType","GPC")
loJson.UpdateString("documents[0].invoiceLines[1].itemCode","10003752")
loJson.UpdateString("documents[0].invoiceLines[1].unitType","EA")
loJson.UpdateInt("documents[0].invoiceLines[1].quantity",7)
loJson.UpdateString("documents[0].invoiceLines[1].internalCode","IC0")
loJson.UpdateNumber("documents[0].invoiceLines[1].salesTotal","662.90")
loJson.UpdateNumber("documents[0].invoiceLines[1].total","2226.61")
loJson.UpdateNumber("documents[0].invoiceLines[1].valueDifference","6.00")
loJson.UpdateNumber("documents[0].invoiceLines[1].totalTaxableFees","621.51")
loJson.UpdateNumber("documents[0].invoiceLines[1].netTotal","652.90")
loJson.UpdateNumber("documents[0].invoiceLines[1].itemsDiscount","9.00")
loJson.UpdateString("documents[0].invoiceLines[1].unitValue.currencySold","EUR")
loJson.UpdateNumber("documents[0].invoiceLines[1].unitValue.amountEGP","94.70")
loJson.UpdateNumber("documents[0].invoiceLines[1].unitValue.amountSold","5.00")
loJson.UpdateNumber("documents[0].invoiceLines[1].unitValue.currencyExchangeRate","18.94")
loJson.UpdateInt("documents[0].invoiceLines[1].discount.rate",0)
loJson.UpdateNumber("documents[0].invoiceLines[1].discount.amount","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[0].taxType","T1")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[0].amount","205.47")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[0].subType","T1")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[0].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[1].taxType","T2")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[1].amount","157.25")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[1].subType","T2")
loJson.UpdateInt("documents[0].invoiceLines[1].taxableItems[1].rate",12)
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[2].taxType","T3")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[2].amount","30.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[2].subType","T3")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[2].rate","0.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[3].taxType","T4")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[3].amount","32.20")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[3].subType","T4")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[3].rate","5.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[4].taxType","T5")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[4].amount","91.41")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[4].subType","T5")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[4].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[5].taxType","T6")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[5].amount","60.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[5].subType","T6")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[5].rate","0.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[6].taxType","T7")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[6].amount","65.29")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[6].subType","T7")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[6].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[7].taxType","T8")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[7].amount","91.41")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[7].subType","T8")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[7].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[8].taxType","T9")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[8].amount","78.35")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[8].subType","T9")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[8].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[9].taxType","T10")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[9].amount","65.29")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[9].subType","T10")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[9].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[10].taxType","T11")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[10].amount","91.41")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[10].subType","T11")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[10].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[11].taxType","T12")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[11].amount","78.35")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[11].subType","T12")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[11].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[12].taxType","T13")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[12].amount","65.29")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[12].subType","T13")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[12].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[13].taxType","T14")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[13].amount","91.41")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[13].subType","T14")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[13].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[14].taxType","T15")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[14].amount","78.35")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[14].subType","T15")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[14].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[15].taxType","T16")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[15].amount","65.29")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[15].subType","T16")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[15].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[16].taxType","T17")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[16].amount","65.29")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[16].subType","T17")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[16].rate","10.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[17].taxType","T18")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[17].amount","91.41")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[17].subType","T18")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[17].rate","14.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[18].taxType","T19")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[18].amount","78.35")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[18].subType","T19")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[18].rate","12.00")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[19].taxType","T20")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[19].amount","65.29")
loJson.UpdateString("documents[0].invoiceLines[1].taxableItems[19].subType","T20")
loJson.UpdateNumber("documents[0].invoiceLines[1].taxableItems[19].rate","10.00")
loJson.UpdateNumber("documents[0].totalDiscountAmount","76.29")
loJson.UpdateNumber("documents[0].totalSalesAmount","1609.90")
loJson.UpdateNumber("documents[0].netAmount","1533.61")
loJson.UpdateString("documents[0].taxTotals[0].taxType","T1")
loJson.UpdateNumber("documents[0].taxTotals[0].amount","477.54")
loJson.UpdateString("documents[0].taxTotals[1].taxType","T2")
loJson.UpdateNumber("documents[0].taxTotals[1].amount","365.47")
loJson.UpdateString("documents[0].taxTotals[2].taxType","T3")
loJson.UpdateNumber("documents[0].taxTotals[2].amount","60.00")
loJson.UpdateString("documents[0].taxTotals[3].taxType","T4")
loJson.UpdateNumber("documents[0].taxTotals[3].amount","75.99")
loJson.UpdateString("documents[0].taxTotals[4].taxType","T5")
loJson.UpdateNumber("documents[0].taxTotals[4].amount","214.71")
loJson.UpdateString("documents[0].taxTotals[5].taxType","T6")
loJson.UpdateNumber("documents[0].taxTotals[5].amount","120.00")
loJson.UpdateString("documents[0].taxTotals[6].taxType","T7")
loJson.UpdateNumber("documents[0].taxTotals[6].amount","153.36")
loJson.UpdateString("documents[0].taxTotals[7].taxType","T8")
loJson.UpdateNumber("documents[0].taxTotals[7].amount","214.71")
loJson.UpdateString("documents[0].taxTotals[8].taxType","T9")
loJson.UpdateNumber("documents[0].taxTotals[8].amount","184.04")
loJson.UpdateString("documents[0].taxTotals[9].taxType","T10")
loJson.UpdateNumber("documents[0].taxTotals[9].amount","153.36")
loJson.UpdateString("documents[0].taxTotals[10].taxType","T11")
loJson.UpdateNumber("documents[0].taxTotals[10].amount","214.71")
loJson.UpdateString("documents[0].taxTotals[11].taxType","T12")
loJson.UpdateNumber("documents[0].taxTotals[11].amount","184.04")
loJson.UpdateString("documents[0].taxTotals[12].taxType","T13")
loJson.UpdateNumber("documents[0].taxTotals[12].amount","153.36")
loJson.UpdateString("documents[0].taxTotals[13].taxType","T14")
loJson.UpdateNumber("documents[0].taxTotals[13].amount","214.71")
loJson.UpdateString("documents[0].taxTotals[14].taxType","T15")
loJson.UpdateNumber("documents[0].taxTotals[14].amount","184.04")
loJson.UpdateString("documents[0].taxTotals[15].taxType","T16")
loJson.UpdateNumber("documents[0].taxTotals[15].amount","153.36")
loJson.UpdateString("documents[0].taxTotals[16].taxType","T17")
loJson.UpdateNumber("documents[0].taxTotals[16].amount","153.36")
loJson.UpdateString("documents[0].taxTotals[17].taxType","T18")
loJson.UpdateNumber("documents[0].taxTotals[17].amount","214.71")
loJson.UpdateString("documents[0].taxTotals[18].taxType","T19")
loJson.UpdateNumber("documents[0].taxTotals[18].amount","184.04")
loJson.UpdateString("documents[0].taxTotals[19].taxType","T20")
loJson.UpdateNumber("documents[0].taxTotals[19].amount","153.36")
loJson.UpdateNumber("documents[0].totalAmount","5191.50")
loJson.UpdateNumber("documents[0].extraDiscountAmount","5.00")
loJson.UpdateNumber("documents[0].totalItemsDiscountAmount","14.00")
loJson.UpdateString("documents[0].signatures[0].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rKImE2aMpsjyrfV6rIP2R9HJnk0Gx7M7lT0dtwV1Yw0GyZ+NQjQZrGrH+I5RXixZPPOm2jxI9SwyX0X9yFIT2BvVkUhb9qqzxP+X/HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk+LNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW")
// Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"
loResp = loHttp.PostJson3("https://domain.com/api/v1/documentsubmissions","application/json",loJson)
if (loHttp.LastMethodSuccess = .F.) then
? loHttp.LastErrorText
release loHttp
release loJson
return
endif
? str(loResp.StatusCode)
? loResp.BodyStr
release loResp
release loHttp
release loJson
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-d '{
"documents": [
{
"issuer": {
"address": {
"branchID": "1",
"country": "EG",
"governate": "Cairo",
"regionCity": "Nasr City",
"street": "580 Clementina Key",
"buildingNumber": "Bldg. 0",
"postalCode": "68030",
"floor": "1",
"room": "123",
"landmark": "7660 Melody Trail",
"additionalInformation": "beside Townhall"
},
"type": "B",
"id": "113317713",
"name": "Issuer Company"
},
"receiver": {
"address": {
"country": "EG",
"governate": "Egypt",
"regionCity": "Mufazat al Ismlyah",
"street": "580 Clementina Key",
"buildingNumber": "Bldg. 0",
"postalCode": "68030",
"floor": "1",
"room": "123",
"landmark": "7660 Melody Trail",
"additionalInformation": "beside Townhall"
},
"type": "B",
"id": "313717919",
"name": "Receiver"
},
"documentType": "C",
"documentTypeVersion": "0.9",
"dateTimeIssued": "2020-10-29T23:59:59Z",
"taxpayerActivityCode": "4620",
"internalID": "IID1",
"purchaseOrderReference": "P-233-A6375",
"purchaseOrderDescription": "purchase Order description",
"salesOrderReference": "1231",
"salesOrderDescription": "Sales Order description",
"proformaInvoiceNumber": "SomeValue",
"references": [
"5Z40TP7SXAKADVH8WX71PXNE10"
],
"payment": {
"bankName": "SomeValue",
"bankAddress": "SomeValue",
"bankAccountNo": "SomeValue",
"bankAccountIBAN": "",
"swiftCode": "",
"terms": "SomeValue"
},
"delivery": {
"approach": "SomeValue",
"packaging": "SomeValue",
"dateValidity": "2020-09-28T09:30:10Z",
"exportPort": "SomeValue",
"countryOfOrigin": "EG",
"grossWeight": 10.50,
"netWeight": 20.50,
"terms": "SomeValue"
},
"invoiceLines": [
{
"description": "Computer1",
"itemType": "EGS",
"itemCode": "EG-113317713-123456",
"unitType": "EA",
"quantity": 5,
"internalCode": "IC0",
"salesTotal": 947.00,
"total": 2969.89,
"valueDifference": 7.00,
"totalTaxableFees": 817.42,
"netTotal": 880.71,
"itemsDiscount": 5.00,
"unitValue": {
"currencySold": "EUR",
"amountEGP": 189.40,
"amountSold": 10.00,
"currencyExchangeRate": 18.94
},
"discount": {
"rate": 7,
"amount": 66.29
},
"taxableItems": [
{
"taxType": "T1",
"amount": 272.07,
"subType": "T1",
"rate": 14.00
},
{
"taxType": "T2",
"amount": 208.22,
"subType": "T2",
"rate": 12
},
{
"taxType": "T3",
"amount": 30.00,
"subType": "T3",
"rate": 0.00
},
{
"taxType": "T4",
"amount": 43.79,
"subType": "T4",
"rate": 5.00
},
{
"taxType": "T5",
"amount": 123.30,
"subType": "T5",
"rate": 14.00
},
{
"taxType": "T6",
"amount": 60.00,
"subType": "T6",
"rate": 0.00
},
{
"taxType": "T7",
"amount": 88.07,
"subType": "T7",
"rate": 10.00
},
{
"taxType": "T8",
"amount": 123.30,
"subType": "T8",
"rate": 14.00
},
{
"taxType": "T9",
"amount": 105.69,
"subType": "T9",
"rate": 12.00
},
{
"taxType": "T10",
"amount": 88.07,
"subType": "T10",
"rate": 10.00
},
{
"taxType": "T11",
"amount": 123.30,
"subType": "T11",
"rate": 14.00
},
{
"taxType": "T12",
"amount": 105.69,
"subType": "T12",
"rate": 12.00
},
{
"taxType": "T13",
"amount": 88.07,
"subType": "T13",
"rate": 10.00
},
{
"taxType": "T14",
"amount": 123.30,
"subType": "T14",
"rate": 14.00
},
{
"taxType": "T15",
"amount": 105.69,
"subType": "T15",
"rate": 12.00
},
{
"taxType": "T16",
"amount": 88.07,
"subType": "T16",
"rate": 10.00
},
{
"taxType": "T17",
"amount": 88.07,
"subType": "T17",
"rate": 10.00
},
{
"taxType": "T18",
"amount": 123.30,
"subType": "T18",
"rate": 14.00
},
{
"taxType": "T19",
"amount": 105.69,
"subType": "T19",
"rate": 12.00
},
{
"taxType": "T20",
"amount": 88.07,
"subType": "T20",
"rate": 10.00
}
]
},
{
"description": "Computer2",
"itemType": "GPC",
"itemCode": "10003752",
"unitType": "EA",
"quantity": 7,
"internalCode": "IC0",
"salesTotal": 662.90,
"total": 2226.61,
"valueDifference": 6.00,
"totalTaxableFees": 621.51,
"netTotal": 652.90,
"itemsDiscount": 9.00,
"unitValue": {
"currencySold": "EUR",
"amountEGP": 94.70,
"amountSold": 5.00,
"currencyExchangeRate": 18.94
},
"discount": {
"rate": 0,
"amount": 10.00
},
"taxableItems": [
{
"taxType": "T1",
"amount": 205.47,
"subType": "T1",
"rate": 14.00
},
{
"taxType": "T2",
"amount": 157.25,
"subType": "T2",
"rate": 12
},
{
"taxType": "T3",
"amount": 30.00,
"subType": "T3",
"rate": 0.00
},
{
"taxType": "T4",
"amount": 32.20,
"subType": "T4",
"rate": 5.00
},
{
"taxType": "T5",
"amount": 91.41,
"subType": "T5",
"rate": 14.00
},
{
"taxType": "T6",
"amount": 60.00,
"subType": "T6",
"rate": 0.00
},
{
"taxType": "T7",
"amount": 65.29,
"subType": "T7",
"rate": 10.00
},
{
"taxType": "T8",
"amount": 91.41,
"subType": "T8",
"rate": 14.00
},
{
"taxType": "T9",
"amount": 78.35,
"subType": "T9",
"rate": 12.00
},
{
"taxType": "T10",
"amount": 65.29,
"subType": "T10",
"rate": 10.00
},
{
"taxType": "T11",
"amount": 91.41,
"subType": "T11",
"rate": 14.00
},
{
"taxType": "T12",
"amount": 78.35,
"subType": "T12",
"rate": 12.00
},
{
"taxType": "T13",
"amount": 65.29,
"subType": "T13",
"rate": 10.00
},
{
"taxType": "T14",
"amount": 91.41,
"subType": "T14",
"rate": 14.00
},
{
"taxType": "T15",
"amount": 78.35,
"subType": "T15",
"rate": 12.00
},
{
"taxType": "T16",
"amount": 65.29,
"subType": "T16",
"rate": 10.00
},
{
"taxType": "T17",
"amount": 65.29,
"subType": "T17",
"rate": 10.00
},
{
"taxType": "T18",
"amount": 91.41,
"subType": "T18",
"rate": 14.00
},
{
"taxType": "T19",
"amount": 78.35,
"subType": "T19",
"rate": 12.00
},
{
"taxType": "T20",
"amount": 65.29,
"subType": "T20",
"rate": 10.00
}
]
}
],
"totalDiscountAmount": 76.29,
"totalSalesAmount": 1609.90,
"netAmount": 1533.61,
"taxTotals": [
{
"taxType": "T1",
"amount": 477.54
},
{
"taxType": "T2",
"amount": 365.47
},
{
"taxType": "T3",
"amount": 60.00
},
{
"taxType": "T4",
"amount": 75.99
},
{
"taxType": "T5",
"amount": 214.71
},
{
"taxType": "T6",
"amount": 120.00
},
{
"taxType": "T7",
"amount": 153.36
},
{
"taxType": "T8",
"amount": 214.71
},
{
"taxType": "T9",
"amount": 184.04
},
{
"taxType": "T10",
"amount": 153.36
},
{
"taxType": "T11",
"amount": 214.71
},
{
"taxType": "T12",
"amount": 184.04
},
{
"taxType": "T13",
"amount": 153.36
},
{
"taxType": "T14",
"amount": 214.71
},
{
"taxType": "T15",
"amount": 184.04
},
{
"taxType": "T16",
"amount": 153.36
},
{
"taxType": "T17",
"amount": 153.36
},
{
"taxType": "T18",
"amount": 214.71
},
{
"taxType": "T19",
"amount": 184.04
},
{
"taxType": "T20",
"amount": 153.36
}
],
"totalAmount": 5191.50,
"extraDiscountAmount": 5.00,
"totalItemsDiscountAmount": 14.00,
"signatures": [
{
"signatureType": "I",
"value": "MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLj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ixZPPOm2jxI9SwyX0X9yFIT2BvVkUhb9qqzxP\u002BX/HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk\u002BLNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW"
}
]
}
]
}'
https://domain.com/api/v1/documentsubmissions
Postman Collection Item JSON
{
"name": "1.1 Submit Documents (JSON) Credit",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{generatedAccessToken}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\r\n \"documents\": [\r\n {\r\n \"issuer\": {\r\n \"address\": {\r\n \"branchID\": \"1\",\r\n \"country\": \"EG\",\r\n \"governate\": \"Cairo\",\r\n \"regionCity\": \"Nasr City\",\r\n \"street\": \"580 Clementina Key\",\r\n \"buildingNumber\": \"Bldg. 0\",\r\n \"postalCode\": \"68030\",\r\n \"floor\": \"1\",\r\n \"room\": \"123\",\r\n \"landmark\": \"7660 Melody Trail\",\r\n \"additionalInformation\": \"beside Townhall\"\r\n },\r\n \"type\": \"B\",\r\n \"id\": \"113317713\",\r\n \"name\": \"Issuer Company\"\r\n },\r\n \"receiver\": {\r\n \"address\": {\r\n \"country\": \"EG\",\r\n \"governate\": \"Egypt\",\r\n \"regionCity\": \"Mufazat al Ismlyah\",\r\n \"street\": \"580 Clementina Key\",\r\n \"buildingNumber\": \"Bldg. 0\",\r\n \"postalCode\": \"68030\",\r\n \"floor\": \"1\",\r\n \"room\": \"123\",\r\n \"landmark\": \"7660 Melody Trail\",\r\n \"additionalInformation\": \"beside Townhall\"\r\n },\r\n \"type\": \"B\",\r\n \"id\": \"313717919\",\r\n \"name\": \"Receiver\"\r\n },\r\n \"documentType\": \"C\",\r\n \"documentTypeVersion\": \"0.9\",\r\n \"dateTimeIssued\": \"2020-10-29T23:59:59Z\",\r\n \"taxpayerActivityCode\": \"4620\",\r\n \"internalID\": \"IID1\",\r\n \"purchaseOrderReference\": \"P-233-A6375\",\r\n \"purchaseOrderDescription\": \"purchase Order description\",\r\n \"salesOrderReference\": \"1231\",\r\n \"salesOrderDescription\": \"Sales Order description\",\r\n \"proformaInvoiceNumber\": \"SomeValue\",\r\n \"references\": [\r\n \"5Z40TP7SXAKADVH8WX71PXNE10\"\r\n ],\r\n \"payment\": {\r\n \"bankName\": \"SomeValue\",\r\n \"bankAddress\": \"SomeValue\",\r\n \"bankAccountNo\": \"SomeValue\",\r\n \"bankAccountIBAN\": \"\",\r\n \"swiftCode\": \"\",\r\n \"terms\": \"SomeValue\"\r\n },\r\n \"delivery\": {\r\n \"approach\": \"SomeValue\",\r\n \"packaging\": \"SomeValue\",\r\n \"dateValidity\": \"2020-09-28T09:30:10Z\",\r\n \"exportPort\": \"SomeValue\",\r\n \"countryOfOrigin\": \"EG\",\r\n \"grossWeight\": 10.50,\r\n \"netWeight\": 20.50,\r\n \"terms\": \"SomeValue\"\r\n },\r\n \"invoiceLines\": [\r\n {\r\n \"description\": \"Computer1\",\r\n \"itemType\": \"EGS\",\r\n \"itemCode\": \"EG-113317713-123456\",\r\n \"unitType\": \"EA\",\r\n \"quantity\": 5,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 947.00,\r\n \"total\": 2969.89,\r\n \"valueDifference\": 7.00,\r\n \"totalTaxableFees\": 817.42,\r\n \"netTotal\": 880.71,\r\n \"itemsDiscount\": 5.00,\r\n \"unitValue\": {\r\n \"currencySold\": \"EUR\",\r\n \"amountEGP\": 189.40,\r\n \"amountSold\": 10.00,\r\n \"currencyExchangeRate\": 18.94\r\n },\r\n \"discount\": {\r\n \"rate\": 7,\r\n \"amount\": 66.29\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 272.07,\r\n \"subType\": \"T1\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T2\",\r\n \"amount\": 208.22,\r\n \"subType\": \"T2\",\r\n \"rate\": 12\r\n },\r\n {\r\n \"taxType\": \"T3\",\r\n \"amount\": 30.00,\r\n \"subType\": \"T3\",\r\n \"rate\": 0.00\r\n },\r\n {\r\n \"taxType\": \"T4\",\r\n \"amount\": 43.79,\r\n \"subType\": \"T4\",\r\n \"rate\": 5.00\r\n },\r\n {\r\n \"taxType\": \"T5\",\r\n \"amount\": 123.30,\r\n \"subType\": \"T5\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T6\",\r\n \"amount\": 60.00,\r\n \"subType\": \"T6\",\r\n \"rate\": 0.00\r\n },\r\n {\r\n \"taxType\": \"T7\",\r\n \"amount\": 88.07,\r\n \"subType\": \"T7\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T8\",\r\n \"amount\": 123.30,\r\n \"subType\": \"T8\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T9\",\r\n \"amount\": 105.69,\r\n \"subType\": \"T9\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T10\",\r\n \"amount\": 88.07,\r\n \"subType\": \"T10\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T11\",\r\n \"amount\": 123.30,\r\n \"subType\": \"T11\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T12\",\r\n \"amount\": 105.69,\r\n \"subType\": \"T12\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T13\",\r\n \"amount\": 88.07,\r\n \"subType\": \"T13\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T14\",\r\n \"amount\": 123.30,\r\n \"subType\": \"T14\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T15\",\r\n \"amount\": 105.69,\r\n \"subType\": \"T15\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T16\",\r\n \"amount\": 88.07,\r\n \"subType\": \"T16\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T17\",\r\n \"amount\": 88.07,\r\n \"subType\": \"T17\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T18\",\r\n \"amount\": 123.30,\r\n \"subType\": \"T18\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T19\",\r\n \"amount\": 105.69,\r\n \"subType\": \"T19\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T20\",\r\n \"amount\": 88.07,\r\n \"subType\": \"T20\",\r\n \"rate\": 10.00\r\n }\r\n ]\r\n },\r\n {\r\n \"description\": \"Computer2\",\r\n \"itemType\": \"GPC\",\r\n \"itemCode\": \"10003752\",\r\n \"unitType\": \"EA\",\r\n \"quantity\": 7,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 662.90,\r\n \"total\": 2226.61,\r\n \"valueDifference\": 6.00,\r\n \"totalTaxableFees\": 621.51,\r\n \"netTotal\": 652.90,\r\n \"itemsDiscount\": 9.00,\r\n \"unitValue\": {\r\n \"currencySold\": \"EUR\",\r\n \"amountEGP\": 94.70,\r\n \"amountSold\": 5.00,\r\n \"currencyExchangeRate\": 18.94\r\n },\r\n \"discount\": {\r\n \"rate\": 0,\r\n \"amount\": 10.00\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 205.47,\r\n \"subType\": \"T1\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T2\",\r\n \"amount\": 157.25,\r\n \"subType\": \"T2\",\r\n \"rate\": 12\r\n },\r\n {\r\n \"taxType\": \"T3\",\r\n \"amount\": 30.00,\r\n \"subType\": \"T3\",\r\n \"rate\": 0.00\r\n },\r\n {\r\n \"taxType\": \"T4\",\r\n \"amount\": 32.20,\r\n \"subType\": \"T4\",\r\n \"rate\": 5.00\r\n },\r\n {\r\n \"taxType\": \"T5\",\r\n \"amount\": 91.41,\r\n \"subType\": \"T5\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T6\",\r\n \"amount\": 60.00,\r\n \"subType\": \"T6\",\r\n \"rate\": 0.00\r\n },\r\n {\r\n \"taxType\": \"T7\",\r\n \"amount\": 65.29,\r\n \"subType\": \"T7\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T8\",\r\n \"amount\": 91.41,\r\n \"subType\": \"T8\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T9\",\r\n \"amount\": 78.35,\r\n \"subType\": \"T9\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T10\",\r\n \"amount\": 65.29,\r\n \"subType\": \"T10\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T11\",\r\n \"amount\": 91.41,\r\n \"subType\": \"T11\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T12\",\r\n \"amount\": 78.35,\r\n \"subType\": \"T12\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T13\",\r\n \"amount\": 65.29,\r\n \"subType\": \"T13\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T14\",\r\n \"amount\": 91.41,\r\n \"subType\": \"T14\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T15\",\r\n \"amount\": 78.35,\r\n \"subType\": \"T15\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T16\",\r\n \"amount\": 65.29,\r\n \"subType\": \"T16\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T17\",\r\n \"amount\": 65.29,\r\n \"subType\": \"T17\",\r\n \"rate\": 10.00\r\n },\r\n {\r\n \"taxType\": \"T18\",\r\n \"amount\": 91.41,\r\n \"subType\": \"T18\",\r\n \"rate\": 14.00\r\n },\r\n {\r\n \"taxType\": \"T19\",\r\n \"amount\": 78.35,\r\n \"subType\": \"T19\",\r\n \"rate\": 12.00\r\n },\r\n {\r\n \"taxType\": \"T20\",\r\n \"amount\": 65.29,\r\n \"subType\": \"T20\",\r\n \"rate\": 10.00\r\n }\r\n ]\r\n }\r\n ],\r\n \"totalDiscountAmount\": 76.29,\r\n \"totalSalesAmount\": 1609.90,\r\n \"netAmount\": 1533.61,\r\n \"taxTotals\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 477.54\r\n },\r\n {\r\n \"taxType\": \"T2\",\r\n \"amount\": 365.47\r\n },\r\n {\r\n \"taxType\": \"T3\",\r\n \"amount\": 60.00\r\n },\r\n {\r\n \"taxType\": \"T4\",\r\n \"amount\": 75.99\r\n },\r\n {\r\n \"taxType\": \"T5\",\r\n \"amount\": 214.71\r\n },\r\n {\r\n \"taxType\": \"T6\",\r\n \"amount\": 120.00\r\n },\r\n {\r\n \"taxType\": \"T7\",\r\n \"amount\": 153.36\r\n },\r\n {\r\n \"taxType\": \"T8\",\r\n \"amount\": 214.71\r\n },\r\n {\r\n \"taxType\": \"T9\",\r\n \"amount\": 184.04\r\n },\r\n {\r\n \"taxType\": \"T10\",\r\n \"amount\": 153.36\r\n },\r\n {\r\n \"taxType\": \"T11\",\r\n \"amount\": 214.71\r\n },\r\n {\r\n \"taxType\": \"T12\",\r\n \"amount\": 184.04\r\n },\r\n {\r\n \"taxType\": \"T13\",\r\n \"amount\": 153.36\r\n },\r\n {\r\n \"taxType\": \"T14\",\r\n \"amount\": 214.71\r\n },\r\n {\r\n \"taxType\": \"T15\",\r\n \"amount\": 184.04\r\n },\r\n {\r\n \"taxType\": \"T16\",\r\n \"amount\": 153.36\r\n },\r\n {\r\n \"taxType\": \"T17\",\r\n \"amount\": 153.36\r\n },\r\n {\r\n \"taxType\": \"T18\",\r\n \"amount\": 214.71\r\n },\r\n {\r\n \"taxType\": \"T19\",\r\n \"amount\": 184.04\r\n },\r\n {\r\n \"taxType\": \"T20\",\r\n \"amount\": 153.36\r\n }\r\n ],\r\n \"totalAmount\": 5191.50,\r\n \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AsGCSqGSIb3DQEBAQSCAQCDrv7l41A\\u002BN625X9UnEYIXENciomWehs4UgFcgQgsTP7eaNoOPk4fQDUyuW4bIArNWnTn5qrTrSCh/hFA4HGNV8942KNQaUDwSIrKImE2aMpsjyrfV6rIP2R9HJnk0Gx7M7lT0dtwV1Yw0GyZ\\u002BNQjQZrGrH\\u002BI5RXixZPPOm2jxI9SwyX0X9yFIT2BvVkUhb9qqzxP\\u002BX/HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk\\u002BLNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW\"\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{apiBaseUrl}}/api/v1/documentsubmissions",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"api",
"v1",
"documentsubmissions"
]
}
},
"response": [
]
}