Back to Collection Items
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.
' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.Http")
set http = CreateObject("Chilkat.Http")
' 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": "0",
' "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": "674859545",
' "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": "I",
' "documentTypeVersion": "0.9",
' "dateTimeIssued": "2021-02-07T02:04:45Z",
' "taxpayerActivityCode": "4620",
' "internalID": "IID1",
' "purchaseOrderReference": "P-233-A6375",
' "purchaseOrderDescription": "purchase Order description",
' "salesOrderReference": "1231",
' "salesOrderDescription": "Sales Order description",
' "proformaInvoiceNumber": "SomeValue",
' "payment": {
' "bankName": "SomeValue",
' "bankAddress": "SomeValue",
' "bankAccountNo": "SomeValue",
' "bankAccountIBAN": "",
' "swiftCode": "",
' "terms": "SomeValue"
' },
' "delivery": {
' "approach": "SomeValue",
' "packaging": "SomeValue",
' "dateValidity": "2020-09-28T09:30:10Z",
' "exportPort": "SomeValue",
' "grossWeight": 10.50,
' "netWeight": 20.50,
' "terms": "SomeValue"
' },
' "invoiceLines": [
' {
' "description": "Computer1",
' "itemType": "EGS",
' "itemCode": "EG-113317713-123456",
' "unitType": "EA",
' "quantity": 1,
' "internalCode": "IC0",
' "salesTotal": 111111111111.00,
' "total": 111111111111.00,
' "valueDifference": 0.00,
' "totalTaxableFees": 0,
' "netTotal": 111111111111,
' "itemsDiscount": 0,
' "unitValue": {
' "currencySold": "EGP",
' "amountEGP": 111111111111.00
' },
' "discount": {
' "rate": 0,
' "amount": 0
' },
' "taxableItems": [
' {
' "taxType": "T1",
' "amount": 0,
' "subType": "V001",
' "rate": 0
' }
' ]
' },
' {
' "description": "Computer1",
' "itemType": "EGS",
' "itemCode": "EG-113317713-123456",
' "unitType": "EA",
' "quantity": 1,
' "internalCode": "IC0",
' "salesTotal": 111111111111.00,
' "total": 111111111111.00,
' "valueDifference": 0.00,
' "totalTaxableFees": 0,
' "netTotal": 111111111111,
' "itemsDiscount": 0,
' "unitValue": {
' "currencySold": "EGP",
' "amountEGP": 111111111111.00
' },
' "discount": {
' "rate": 0,
' "amount": 0
' },
' "taxableItems": [
' {
' "taxType": "T1",
' "amount": 0,
' "subType": "V001",
' "rate": 0
' }
' ]
' },
' {
' "description": "Computer1",
' "itemType": "EGS",
' "itemCode": "EG-113317713-123456",
' "unitType": "EA",
' "quantity": 1,
' "internalCode": "IC0",
' "salesTotal": 111111111111.00,
' "total": 111111111111.00,
' "valueDifference": 0.00,
' "totalTaxableFees": 0,
' "netTotal": 111111111111,
' "itemsDiscount": 0,
' "unitValue": {
' "currencySold": "EGP",
' "amountEGP": 111111111111.00
' },
' "discount": {
' "rate": 0,
' "amount": 0
' },
' "taxableItems": [
' {
' "taxType": "T1",
' "amount": 0,
' "subType": "V001",
' "rate": 0
' }
' ]
' },
' {
' "description": "Computer1",
' "itemType": "EGS",
' "itemCode": "EG-113317713-123456",
' "unitType": "EA",
' "quantity": 1,
' "internalCode": "IC0",
' "salesTotal": 111111111111.00,
' "total": 111111111111.00,
' "valueDifference": 0.00,
' "totalTaxableFees": 0,
' "netTotal": 111111111111,
' "itemsDiscount": 0,
' "unitValue": {
' "currencySold": "EGP",
' "amountEGP": 111111111111.00
' },
' "discount": {
' "rate": 0,
' "amount": 0
' },
' "taxableItems": [
' {
' "taxType": "T1",
' "amount": 0,
' "subType": "V001",
' "rate": 0
' }
' ]
' },
' {
' "description": "Computer1",
' "itemType": "EGS",
' "itemCode": "EG-113317713-123456",
' "unitType": "EA",
' "quantity": 1,
' "internalCode": "IC0",
' "salesTotal": 111111111111.00,
' "total": 111111111111.00,
' "valueDifference": 0.00,
' "totalTaxableFees": 0,
' "netTotal": 111111111111,
' "itemsDiscount": 0,
' "unitValue": {
' "currencySold": "EGP",
' "amountEGP": 111111111111.00
' },
' "discount": {
' "rate": 0,
' "amount": 0
' },
' "taxableItems": [
' {
' "taxType": "T1",
' "amount": 0,
' "subType": "V001",
' "rate": 0
' }
' ]
' }
' ],
' "totalDiscountAmount": 0,
' "totalSalesAmount": 555555555555.00,
' "netAmount": 555555555555.00,
' "taxTotals": [
' {
' "taxType": "T1",
' "amount": 0
' }
' ],
' "totalAmount": 555555555555.00,
' "extraDiscountAmount": 0,
' "totalItemsDiscountAmount": 0,
' "signatures": [
' {
' "signatureType": "I",
' "value": "MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3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PPza7RbGqSx9pfyav5\u002BAxO9sXnXXc5jGCApIwggKOAgEBMF0wSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzICEEFkOqRVlVar0F0n3FZOLiIwCwYJYIZIAWUDBAIBoIIBCjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcFMBwGCSqGSIb3DQEJBTEPFw0yMTAyMDEyMzUwMjFaMC8GCSqGSIb3DQEJBDEiBCD5bGXJu9uJZIPMGXK98UrHzJM/V2U/WAO6BErxpX5wdTCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX\u002BzbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K\u002BisobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq\u002BW/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i\u002BVsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt\u002BabNpja5ZR6KA8JMe4DHes7FDZqHBNHdC\u002BRDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i"
' }
' ]
' }
' ]
' }
' For versions of Chilkat < 10.0.0, use CreateObject("Chilkat_9_5_0.JsonObject")
set json = CreateObject("Chilkat.JsonObject")
success = json.UpdateString("documents[0].issuer.address.branchID","0")
success = json.UpdateString("documents[0].issuer.address.country","EG")
success = json.UpdateString("documents[0].issuer.address.governate","Cairo")
success = json.UpdateString("documents[0].issuer.address.regionCity","Nasr City")
success = json.UpdateString("documents[0].issuer.address.street","580 Clementina Key")
success = json.UpdateString("documents[0].issuer.address.buildingNumber","Bldg. 0")
success = json.UpdateString("documents[0].issuer.address.postalCode","68030")
success = json.UpdateString("documents[0].issuer.address.floor","1")
success = json.UpdateString("documents[0].issuer.address.room","123")
success = json.UpdateString("documents[0].issuer.address.landmark","7660 Melody Trail")
success = json.UpdateString("documents[0].issuer.address.additionalInformation","beside Townhall")
success = json.UpdateString("documents[0].issuer.type","B")
success = json.UpdateString("documents[0].issuer.id","674859545")
success = json.UpdateString("documents[0].issuer.name","Issuer Company")
success = json.UpdateString("documents[0].receiver.address.country","EG")
success = json.UpdateString("documents[0].receiver.address.governate","Egypt")
success = json.UpdateString("documents[0].receiver.address.regionCity","Mufazat al Ismlyah")
success = json.UpdateString("documents[0].receiver.address.street","580 Clementina Key")
success = json.UpdateString("documents[0].receiver.address.buildingNumber","Bldg. 0")
success = json.UpdateString("documents[0].receiver.address.postalCode","68030")
success = json.UpdateString("documents[0].receiver.address.floor","1")
success = json.UpdateString("documents[0].receiver.address.room","123")
success = json.UpdateString("documents[0].receiver.address.landmark","7660 Melody Trail")
success = json.UpdateString("documents[0].receiver.address.additionalInformation","beside Townhall")
success = json.UpdateString("documents[0].receiver.type","B")
success = json.UpdateString("documents[0].receiver.id","313717919")
success = json.UpdateString("documents[0].receiver.name","Receiver")
success = json.UpdateString("documents[0].documentType","I")
success = json.UpdateString("documents[0].documentTypeVersion","0.9")
success = json.UpdateString("documents[0].dateTimeIssued","2021-02-07T02:04:45Z")
success = json.UpdateString("documents[0].taxpayerActivityCode","4620")
success = json.UpdateString("documents[0].internalID","IID1")
success = json.UpdateString("documents[0].purchaseOrderReference","P-233-A6375")
success = json.UpdateString("documents[0].purchaseOrderDescription","purchase Order description")
success = json.UpdateString("documents[0].salesOrderReference","1231")
success = json.UpdateString("documents[0].salesOrderDescription","Sales Order description")
success = json.UpdateString("documents[0].proformaInvoiceNumber","SomeValue")
success = json.UpdateString("documents[0].payment.bankName","SomeValue")
success = json.UpdateString("documents[0].payment.bankAddress","SomeValue")
success = json.UpdateString("documents[0].payment.bankAccountNo","SomeValue")
success = json.UpdateString("documents[0].payment.bankAccountIBAN","")
success = json.UpdateString("documents[0].payment.swiftCode","")
success = json.UpdateString("documents[0].payment.terms","SomeValue")
success = json.UpdateString("documents[0].delivery.approach","SomeValue")
success = json.UpdateString("documents[0].delivery.packaging","SomeValue")
success = json.UpdateString("documents[0].delivery.dateValidity","2020-09-28T09:30:10Z")
success = json.UpdateString("documents[0].delivery.exportPort","SomeValue")
success = json.UpdateNumber("documents[0].delivery.grossWeight","10.50")
success = json.UpdateNumber("documents[0].delivery.netWeight","20.50")
success = json.UpdateString("documents[0].delivery.terms","SomeValue")
success = json.UpdateString("documents[0].invoiceLines[0].description","Computer1")
success = json.UpdateString("documents[0].invoiceLines[0].itemType","EGS")
success = json.UpdateString("documents[0].invoiceLines[0].itemCode","EG-113317713-123456")
success = json.UpdateString("documents[0].invoiceLines[0].unitType","EA")
success = json.UpdateInt("documents[0].invoiceLines[0].quantity",1)
success = json.UpdateString("documents[0].invoiceLines[0].internalCode","IC0")
success = json.UpdateNumber("documents[0].invoiceLines[0].salesTotal","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[0].total","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[0].valueDifference","0.00")
success = json.UpdateInt("documents[0].invoiceLines[0].totalTaxableFees",0)
success = json.UpdateInt("documents[0].invoiceLines[0].netTotal",123)
success = json.UpdateInt("documents[0].invoiceLines[0].itemsDiscount",0)
success = json.UpdateString("documents[0].invoiceLines[0].unitValue.currencySold","EGP")
success = json.UpdateNumber("documents[0].invoiceLines[0].unitValue.amountEGP","111111111111.00")
success = json.UpdateInt("documents[0].invoiceLines[0].discount.rate",0)
success = json.UpdateInt("documents[0].invoiceLines[0].discount.amount",0)
success = json.UpdateString("documents[0].invoiceLines[0].taxableItems[0].taxType","T1")
success = json.UpdateInt("documents[0].invoiceLines[0].taxableItems[0].amount",0)
success = json.UpdateString("documents[0].invoiceLines[0].taxableItems[0].subType","V001")
success = json.UpdateInt("documents[0].invoiceLines[0].taxableItems[0].rate",0)
success = json.UpdateString("documents[0].invoiceLines[1].description","Computer1")
success = json.UpdateString("documents[0].invoiceLines[1].itemType","EGS")
success = json.UpdateString("documents[0].invoiceLines[1].itemCode","EG-113317713-123456")
success = json.UpdateString("documents[0].invoiceLines[1].unitType","EA")
success = json.UpdateInt("documents[0].invoiceLines[1].quantity",1)
success = json.UpdateString("documents[0].invoiceLines[1].internalCode","IC0")
success = json.UpdateNumber("documents[0].invoiceLines[1].salesTotal","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[1].total","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[1].valueDifference","0.00")
success = json.UpdateInt("documents[0].invoiceLines[1].totalTaxableFees",0)
success = json.UpdateInt("documents[0].invoiceLines[1].netTotal",123)
success = json.UpdateInt("documents[0].invoiceLines[1].itemsDiscount",0)
success = json.UpdateString("documents[0].invoiceLines[1].unitValue.currencySold","EGP")
success = json.UpdateNumber("documents[0].invoiceLines[1].unitValue.amountEGP","111111111111.00")
success = json.UpdateInt("documents[0].invoiceLines[1].discount.rate",0)
success = json.UpdateInt("documents[0].invoiceLines[1].discount.amount",0)
success = json.UpdateString("documents[0].invoiceLines[1].taxableItems[0].taxType","T1")
success = json.UpdateInt("documents[0].invoiceLines[1].taxableItems[0].amount",0)
success = json.UpdateString("documents[0].invoiceLines[1].taxableItems[0].subType","V001")
success = json.UpdateInt("documents[0].invoiceLines[1].taxableItems[0].rate",0)
success = json.UpdateString("documents[0].invoiceLines[2].description","Computer1")
success = json.UpdateString("documents[0].invoiceLines[2].itemType","EGS")
success = json.UpdateString("documents[0].invoiceLines[2].itemCode","EG-113317713-123456")
success = json.UpdateString("documents[0].invoiceLines[2].unitType","EA")
success = json.UpdateInt("documents[0].invoiceLines[2].quantity",1)
success = json.UpdateString("documents[0].invoiceLines[2].internalCode","IC0")
success = json.UpdateNumber("documents[0].invoiceLines[2].salesTotal","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[2].total","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[2].valueDifference","0.00")
success = json.UpdateInt("documents[0].invoiceLines[2].totalTaxableFees",0)
success = json.UpdateInt("documents[0].invoiceLines[2].netTotal",123)
success = json.UpdateInt("documents[0].invoiceLines[2].itemsDiscount",0)
success = json.UpdateString("documents[0].invoiceLines[2].unitValue.currencySold","EGP")
success = json.UpdateNumber("documents[0].invoiceLines[2].unitValue.amountEGP","111111111111.00")
success = json.UpdateInt("documents[0].invoiceLines[2].discount.rate",0)
success = json.UpdateInt("documents[0].invoiceLines[2].discount.amount",0)
success = json.UpdateString("documents[0].invoiceLines[2].taxableItems[0].taxType","T1")
success = json.UpdateInt("documents[0].invoiceLines[2].taxableItems[0].amount",0)
success = json.UpdateString("documents[0].invoiceLines[2].taxableItems[0].subType","V001")
success = json.UpdateInt("documents[0].invoiceLines[2].taxableItems[0].rate",0)
success = json.UpdateString("documents[0].invoiceLines[3].description","Computer1")
success = json.UpdateString("documents[0].invoiceLines[3].itemType","EGS")
success = json.UpdateString("documents[0].invoiceLines[3].itemCode","EG-113317713-123456")
success = json.UpdateString("documents[0].invoiceLines[3].unitType","EA")
success = json.UpdateInt("documents[0].invoiceLines[3].quantity",1)
success = json.UpdateString("documents[0].invoiceLines[3].internalCode","IC0")
success = json.UpdateNumber("documents[0].invoiceLines[3].salesTotal","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[3].total","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[3].valueDifference","0.00")
success = json.UpdateInt("documents[0].invoiceLines[3].totalTaxableFees",0)
success = json.UpdateInt("documents[0].invoiceLines[3].netTotal",123)
success = json.UpdateInt("documents[0].invoiceLines[3].itemsDiscount",0)
success = json.UpdateString("documents[0].invoiceLines[3].unitValue.currencySold","EGP")
success = json.UpdateNumber("documents[0].invoiceLines[3].unitValue.amountEGP","111111111111.00")
success = json.UpdateInt("documents[0].invoiceLines[3].discount.rate",0)
success = json.UpdateInt("documents[0].invoiceLines[3].discount.amount",0)
success = json.UpdateString("documents[0].invoiceLines[3].taxableItems[0].taxType","T1")
success = json.UpdateInt("documents[0].invoiceLines[3].taxableItems[0].amount",0)
success = json.UpdateString("documents[0].invoiceLines[3].taxableItems[0].subType","V001")
success = json.UpdateInt("documents[0].invoiceLines[3].taxableItems[0].rate",0)
success = json.UpdateString("documents[0].invoiceLines[4].description","Computer1")
success = json.UpdateString("documents[0].invoiceLines[4].itemType","EGS")
success = json.UpdateString("documents[0].invoiceLines[4].itemCode","EG-113317713-123456")
success = json.UpdateString("documents[0].invoiceLines[4].unitType","EA")
success = json.UpdateInt("documents[0].invoiceLines[4].quantity",1)
success = json.UpdateString("documents[0].invoiceLines[4].internalCode","IC0")
success = json.UpdateNumber("documents[0].invoiceLines[4].salesTotal","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[4].total","111111111111.00")
success = json.UpdateNumber("documents[0].invoiceLines[4].valueDifference","0.00")
success = json.UpdateInt("documents[0].invoiceLines[4].totalTaxableFees",0)
success = json.UpdateInt("documents[0].invoiceLines[4].netTotal",123)
success = json.UpdateInt("documents[0].invoiceLines[4].itemsDiscount",0)
success = json.UpdateString("documents[0].invoiceLines[4].unitValue.currencySold","EGP")
success = json.UpdateNumber("documents[0].invoiceLines[4].unitValue.amountEGP","111111111111.00")
success = json.UpdateInt("documents[0].invoiceLines[4].discount.rate",0)
success = json.UpdateInt("documents[0].invoiceLines[4].discount.amount",0)
success = json.UpdateString("documents[0].invoiceLines[4].taxableItems[0].taxType","T1")
success = json.UpdateInt("documents[0].invoiceLines[4].taxableItems[0].amount",0)
success = json.UpdateString("documents[0].invoiceLines[4].taxableItems[0].subType","V001")
success = json.UpdateInt("documents[0].invoiceLines[4].taxableItems[0].rate",0)
success = json.UpdateInt("documents[0].totalDiscountAmount",0)
success = json.UpdateNumber("documents[0].totalSalesAmount","555555555555.00")
success = json.UpdateNumber("documents[0].netAmount","555555555555.00")
success = json.UpdateString("documents[0].taxTotals[0].taxType","T1")
success = json.UpdateInt("documents[0].taxTotals[0].amount",0)
success = json.UpdateNumber("documents[0].totalAmount","555555555555.00")
success = json.UpdateInt("documents[0].extraDiscountAmount",0)
success = json.UpdateInt("documents[0].totalItemsDiscountAmount",0)
success = json.UpdateString("documents[0].signatures[0].signatureType","I")
success = json.UpdateString("documents[0].signatures[0].value","MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq+tIJiVWSkIEEOTIcnG1XNYQOYtf5+Dg9eF5H5x1wkgR2G7dvWVXrTsdNv2Q+gvml9SdfWxlYxaljg2AuBrsHFjYVEAQFI37EW2K7tbMT7bfxwT1M5tbjxnkTTK12cgwxPr2LBNhHpfXp8SNyWCxpk6eyJb87DveVwCLbAGGXO9mhDj62glVTrCFit7mHC6bZ6MOMAp013B8No9c8xnrKQiOb4Tm2GxBYHFwEcfYUGZNltGZNdVUtu6ty+NTrSR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YUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX+zbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K+isobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq+W/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i+VsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt+abNpja5ZR6KA8JMe4DHes7FDZqHBNHdC+RDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i")
' Adds the "Authorization: Bearer <access_token>" header.
http.AuthToken = "<access_token>"
http.SetRequestHeader "Content-Type","application/json"
' resp is a Chilkat.HttpResponse
Set resp = http.PostJson3("https://domain.com/api/v1/documentsubmissions","application/json",json)
If (http.LastMethodSuccess = 0) Then
outFile.WriteLine(http.LastErrorText)
WScript.Quit
End If
outFile.WriteLine(resp.StatusCode)
outFile.WriteLine(resp.BodyStr)
outFile.Close
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-H "Content-Type: application/json"
-d '{
"documents": [
{
"issuer": {
"address": {
"branchID": "0",
"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": "674859545",
"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": "I",
"documentTypeVersion": "0.9",
"dateTimeIssued": "2021-02-07T02:04:45Z",
"taxpayerActivityCode": "4620",
"internalID": "IID1",
"purchaseOrderReference": "P-233-A6375",
"purchaseOrderDescription": "purchase Order description",
"salesOrderReference": "1231",
"salesOrderDescription": "Sales Order description",
"proformaInvoiceNumber": "SomeValue",
"payment": {
"bankName": "SomeValue",
"bankAddress": "SomeValue",
"bankAccountNo": "SomeValue",
"bankAccountIBAN": "",
"swiftCode": "",
"terms": "SomeValue"
},
"delivery": {
"approach": "SomeValue",
"packaging": "SomeValue",
"dateValidity": "2020-09-28T09:30:10Z",
"exportPort": "SomeValue",
"grossWeight": 10.50,
"netWeight": 20.50,
"terms": "SomeValue"
},
"invoiceLines": [
{
"description": "Computer1",
"itemType": "EGS",
"itemCode": "EG-113317713-123456",
"unitType": "EA",
"quantity": 1,
"internalCode": "IC0",
"salesTotal": 111111111111.00,
"total": 111111111111.00,
"valueDifference": 0.00,
"totalTaxableFees": 0,
"netTotal": 111111111111,
"itemsDiscount": 0,
"unitValue": {
"currencySold": "EGP",
"amountEGP": 111111111111.00
},
"discount": {
"rate": 0,
"amount": 0
},
"taxableItems": [
{
"taxType": "T1",
"amount": 0,
"subType": "V001",
"rate": 0
}
]
},
{
"description": "Computer1",
"itemType": "EGS",
"itemCode": "EG-113317713-123456",
"unitType": "EA",
"quantity": 1,
"internalCode": "IC0",
"salesTotal": 111111111111.00,
"total": 111111111111.00,
"valueDifference": 0.00,
"totalTaxableFees": 0,
"netTotal": 111111111111,
"itemsDiscount": 0,
"unitValue": {
"currencySold": "EGP",
"amountEGP": 111111111111.00
},
"discount": {
"rate": 0,
"amount": 0
},
"taxableItems": [
{
"taxType": "T1",
"amount": 0,
"subType": "V001",
"rate": 0
}
]
},
{
"description": "Computer1",
"itemType": "EGS",
"itemCode": "EG-113317713-123456",
"unitType": "EA",
"quantity": 1,
"internalCode": "IC0",
"salesTotal": 111111111111.00,
"total": 111111111111.00,
"valueDifference": 0.00,
"totalTaxableFees": 0,
"netTotal": 111111111111,
"itemsDiscount": 0,
"unitValue": {
"currencySold": "EGP",
"amountEGP": 111111111111.00
},
"discount": {
"rate": 0,
"amount": 0
},
"taxableItems": [
{
"taxType": "T1",
"amount": 0,
"subType": "V001",
"rate": 0
}
]
},
{
"description": "Computer1",
"itemType": "EGS",
"itemCode": "EG-113317713-123456",
"unitType": "EA",
"quantity": 1,
"internalCode": "IC0",
"salesTotal": 111111111111.00,
"total": 111111111111.00,
"valueDifference": 0.00,
"totalTaxableFees": 0,
"netTotal": 111111111111,
"itemsDiscount": 0,
"unitValue": {
"currencySold": "EGP",
"amountEGP": 111111111111.00
},
"discount": {
"rate": 0,
"amount": 0
},
"taxableItems": [
{
"taxType": "T1",
"amount": 0,
"subType": "V001",
"rate": 0
}
]
},
{
"description": "Computer1",
"itemType": "EGS",
"itemCode": "EG-113317713-123456",
"unitType": "EA",
"quantity": 1,
"internalCode": "IC0",
"salesTotal": 111111111111.00,
"total": 111111111111.00,
"valueDifference": 0.00,
"totalTaxableFees": 0,
"netTotal": 111111111111,
"itemsDiscount": 0,
"unitValue": {
"currencySold": "EGP",
"amountEGP": 111111111111.00
},
"discount": {
"rate": 0,
"amount": 0
},
"taxableItems": [
{
"taxType": "T1",
"amount": 0,
"subType": "V001",
"rate": 0
}
]
}
],
"totalDiscountAmount": 0,
"totalSalesAmount": 555555555555.00,
"netAmount": 555555555555.00,
"taxTotals": [
{
"taxType": "T1",
"amount": 0
}
],
"totalAmount": 555555555555.00,
"extraDiscountAmount": 0,
"totalItemsDiscountAmount": 0,
"signatures": [
{
"signatureType": "I",
"value": "MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJK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usElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i\u002BVsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt\u002BabNpja5ZR6KA8JMe4DHes7FDZqHBNHdC\u002BRDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i"
}
]
}
]
}'
https://domain.com/api/v1/documentsubmissions
Postman Collection Item JSON
{
"name": "1.1 Submit Documents (JSON)",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{generatedAccessToken}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"documents\": [\r\n {\r\n \"issuer\": {\r\n \"address\": {\r\n \"branchID\": \"0\",\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\": \"674859545\",\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\": \"I\",\r\n \"documentTypeVersion\": \"0.9\",\r\n \"dateTimeIssued\": \"2021-02-07T02:04:45Z\",\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 \"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 \"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\": 1,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 111111111111.00,\r\n \"total\": 111111111111.00,\r\n \"valueDifference\": 0.00,\r\n \"totalTaxableFees\": 0,\r\n \"netTotal\": 111111111111,\r\n \"itemsDiscount\": 0,\r\n \"unitValue\": {\r\n \"currencySold\": \"EGP\",\r\n \"amountEGP\": 111111111111.00\r\n },\r\n \"discount\": {\r\n \"rate\": 0,\r\n \"amount\": 0\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 0,\r\n \"subType\": \"V001\",\r\n \"rate\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"description\": \"Computer1\",\r\n \"itemType\": \"EGS\",\r\n \"itemCode\": \"EG-113317713-123456\",\r\n \"unitType\": \"EA\",\r\n \"quantity\": 1,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 111111111111.00,\r\n \"total\": 111111111111.00,\r\n \"valueDifference\": 0.00,\r\n \"totalTaxableFees\": 0,\r\n \"netTotal\": 111111111111,\r\n \"itemsDiscount\": 0,\r\n \"unitValue\": {\r\n \"currencySold\": \"EGP\",\r\n \"amountEGP\": 111111111111.00\r\n },\r\n \"discount\": {\r\n \"rate\": 0,\r\n \"amount\": 0\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 0,\r\n \"subType\": \"V001\",\r\n \"rate\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"description\": \"Computer1\",\r\n \"itemType\": \"EGS\",\r\n \"itemCode\": \"EG-113317713-123456\",\r\n \"unitType\": \"EA\",\r\n \"quantity\": 1,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 111111111111.00,\r\n \"total\": 111111111111.00,\r\n \"valueDifference\": 0.00,\r\n \"totalTaxableFees\": 0,\r\n \"netTotal\": 111111111111,\r\n \"itemsDiscount\": 0,\r\n \"unitValue\": {\r\n \"currencySold\": \"EGP\",\r\n \"amountEGP\": 111111111111.00\r\n },\r\n \"discount\": {\r\n \"rate\": 0,\r\n \"amount\": 0\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 0,\r\n \"subType\": \"V001\",\r\n \"rate\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"description\": \"Computer1\",\r\n \"itemType\": \"EGS\",\r\n \"itemCode\": \"EG-113317713-123456\",\r\n \"unitType\": \"EA\",\r\n \"quantity\": 1,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 111111111111.00,\r\n \"total\": 111111111111.00,\r\n \"valueDifference\": 0.00,\r\n \"totalTaxableFees\": 0,\r\n \"netTotal\": 111111111111,\r\n \"itemsDiscount\": 0,\r\n \"unitValue\": {\r\n \"currencySold\": \"EGP\",\r\n \"amountEGP\": 111111111111.00\r\n },\r\n \"discount\": {\r\n \"rate\": 0,\r\n \"amount\": 0\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 0,\r\n \"subType\": \"V001\",\r\n \"rate\": 0\r\n }\r\n ]\r\n },\r\n {\r\n \"description\": \"Computer1\",\r\n \"itemType\": \"EGS\",\r\n \"itemCode\": \"EG-113317713-123456\",\r\n \"unitType\": \"EA\",\r\n \"quantity\": 1,\r\n \"internalCode\": \"IC0\",\r\n \"salesTotal\": 111111111111.00,\r\n \"total\": 111111111111.00,\r\n \"valueDifference\": 0.00,\r\n \"totalTaxableFees\": 0,\r\n \"netTotal\": 111111111111,\r\n \"itemsDiscount\": 0,\r\n \"unitValue\": {\r\n \"currencySold\": \"EGP\",\r\n \"amountEGP\": 111111111111.00\r\n },\r\n \"discount\": {\r\n \"rate\": 0,\r\n \"amount\": 0\r\n },\r\n \"taxableItems\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 0,\r\n \"subType\": \"V001\",\r\n \"rate\": 0\r\n }\r\n ]\r\n }\r\n ],\r\n \"totalDiscountAmount\": 0,\r\n \"totalSalesAmount\": 555555555555.00,\r\n \"netAmount\": 555555555555.00,\r\n \"taxTotals\": [\r\n {\r\n \"taxType\": \"T1\",\r\n \"amount\": 0\r\n }\r\n ],\r\n \"totalAmount\": 555555555555.00,\r\n \"extraDiscountAmount\": 0,\r\n \"totalItemsDiscountAmount\": 0,\r\n \"signatures\": [\r\n {\r\n \"signatureType\": \"I\",\r\n \"value\": \"MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHh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002BRDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i\"\r\n }\r\n ]\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{apiBaseUrl}}/api/v1/documentsubmissions",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"api",
"v1",
"documentsubmissions"
]
}
},
"response": [
]
}