Back to Collection Items
func chilkatTest() {
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
let http = CkoHttp()!
var success: Bool
// 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/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq\u002BtIJiVWSkIEEOTIcnG1XNYQOYtf5\u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dCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzICEEFkOqRVlVar0F0n3FZOLiIwCwYJYIZIAWUDBAIBoIIBCjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcFMBwGCSqGSIb3DQEJBTEPFw0yMTAyMDEyMzUwMjFaMC8GCSqGSIb3DQEJBDEiBCD5bGXJu9uJZIPMGXK98UrHzJM/V2U/WAO6BErxpX5wdTCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX\u002BzbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K\u002BisobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq\u002BW/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i\u002BVsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt\u002BabNpja5ZR6KA8JMe4DHes7FDZqHBNHdC\u002BRDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i"
// }
// ]
// }
// ]
// }
let json = CkoJsonObject()!
json.update("documents[0].issuer.address.branchID", value: "0")
json.update("documents[0].issuer.address.country", value: "EG")
json.update("documents[0].issuer.address.governate", value: "Cairo")
json.update("documents[0].issuer.address.regionCity", value: "Nasr City")
json.update("documents[0].issuer.address.street", value: "580 Clementina Key")
json.update("documents[0].issuer.address.buildingNumber", value: "Bldg. 0")
json.update("documents[0].issuer.address.postalCode", value: "68030")
json.update("documents[0].issuer.address.floor", value: "1")
json.update("documents[0].issuer.address.room", value: "123")
json.update("documents[0].issuer.address.landmark", value: "7660 Melody Trail")
json.update("documents[0].issuer.address.additionalInformation", value: "beside Townhall")
json.update("documents[0].issuer.type", value: "B")
json.update("documents[0].issuer.id", value: "674859545")
json.update("documents[0].issuer.name", value: "Issuer Company")
json.update("documents[0].receiver.address.country", value: "EG")
json.update("documents[0].receiver.address.governate", value: "Egypt")
json.update("documents[0].receiver.address.regionCity", value: "Mufazat al Ismlyah")
json.update("documents[0].receiver.address.street", value: "580 Clementina Key")
json.update("documents[0].receiver.address.buildingNumber", value: "Bldg. 0")
json.update("documents[0].receiver.address.postalCode", value: "68030")
json.update("documents[0].receiver.address.floor", value: "1")
json.update("documents[0].receiver.address.room", value: "123")
json.update("documents[0].receiver.address.landmark", value: "7660 Melody Trail")
json.update("documents[0].receiver.address.additionalInformation", value: "beside Townhall")
json.update("documents[0].receiver.type", value: "B")
json.update("documents[0].receiver.id", value: "313717919")
json.update("documents[0].receiver.name", value: "Receiver")
json.update("documents[0].documentType", value: "I")
json.update("documents[0].documentTypeVersion", value: "0.9")
json.update("documents[0].dateTimeIssued", value: "2021-02-07T02:04:45Z")
json.update("documents[0].taxpayerActivityCode", value: "4620")
json.update("documents[0].internalID", value: "IID1")
json.update("documents[0].purchaseOrderReference", value: "P-233-A6375")
json.update("documents[0].purchaseOrderDescription", value: "purchase Order description")
json.update("documents[0].salesOrderReference", value: "1231")
json.update("documents[0].salesOrderDescription", value: "Sales Order description")
json.update("documents[0].proformaInvoiceNumber", value: "SomeValue")
json.update("documents[0].payment.bankName", value: "SomeValue")
json.update("documents[0].payment.bankAddress", value: "SomeValue")
json.update("documents[0].payment.bankAccountNo", value: "SomeValue")
json.update("documents[0].payment.bankAccountIBAN", value: "")
json.update("documents[0].payment.swiftCode", value: "")
json.update("documents[0].payment.terms", value: "SomeValue")
json.update("documents[0].delivery.approach", value: "SomeValue")
json.update("documents[0].delivery.packaging", value: "SomeValue")
json.update("documents[0].delivery.dateValidity", value: "2020-09-28T09:30:10Z")
json.update("documents[0].delivery.exportPort", value: "SomeValue")
json.updateNumber("documents[0].delivery.grossWeight", numericStr: "10.50")
json.updateNumber("documents[0].delivery.netWeight", numericStr: "20.50")
json.update("documents[0].delivery.terms", value: "SomeValue")
json.update("documents[0].invoiceLines[0].description", value: "Computer1")
json.update("documents[0].invoiceLines[0].itemType", value: "EGS")
json.update("documents[0].invoiceLines[0].itemCode", value: "EG-113317713-123456")
json.update("documents[0].invoiceLines[0].unitType", value: "EA")
json.updateInt("documents[0].invoiceLines[0].quantity", value: 1)
json.update("documents[0].invoiceLines[0].internalCode", value: "IC0")
json.updateNumber("documents[0].invoiceLines[0].salesTotal", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[0].total", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[0].valueDifference", numericStr: "0.00")
json.updateInt("documents[0].invoiceLines[0].totalTaxableFees", value: 0)
json.updateInt("documents[0].invoiceLines[0].netTotal", value: 123)
json.updateInt("documents[0].invoiceLines[0].itemsDiscount", value: 0)
json.update("documents[0].invoiceLines[0].unitValue.currencySold", value: "EGP")
json.updateNumber("documents[0].invoiceLines[0].unitValue.amountEGP", numericStr: "111111111111.00")
json.updateInt("documents[0].invoiceLines[0].discount.rate", value: 0)
json.updateInt("documents[0].invoiceLines[0].discount.amount", value: 0)
json.update("documents[0].invoiceLines[0].taxableItems[0].taxType", value: "T1")
json.updateInt("documents[0].invoiceLines[0].taxableItems[0].amount", value: 0)
json.update("documents[0].invoiceLines[0].taxableItems[0].subType", value: "V001")
json.updateInt("documents[0].invoiceLines[0].taxableItems[0].rate", value: 0)
json.update("documents[0].invoiceLines[1].description", value: "Computer1")
json.update("documents[0].invoiceLines[1].itemType", value: "EGS")
json.update("documents[0].invoiceLines[1].itemCode", value: "EG-113317713-123456")
json.update("documents[0].invoiceLines[1].unitType", value: "EA")
json.updateInt("documents[0].invoiceLines[1].quantity", value: 1)
json.update("documents[0].invoiceLines[1].internalCode", value: "IC0")
json.updateNumber("documents[0].invoiceLines[1].salesTotal", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[1].total", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[1].valueDifference", numericStr: "0.00")
json.updateInt("documents[0].invoiceLines[1].totalTaxableFees", value: 0)
json.updateInt("documents[0].invoiceLines[1].netTotal", value: 123)
json.updateInt("documents[0].invoiceLines[1].itemsDiscount", value: 0)
json.update("documents[0].invoiceLines[1].unitValue.currencySold", value: "EGP")
json.updateNumber("documents[0].invoiceLines[1].unitValue.amountEGP", numericStr: "111111111111.00")
json.updateInt("documents[0].invoiceLines[1].discount.rate", value: 0)
json.updateInt("documents[0].invoiceLines[1].discount.amount", value: 0)
json.update("documents[0].invoiceLines[1].taxableItems[0].taxType", value: "T1")
json.updateInt("documents[0].invoiceLines[1].taxableItems[0].amount", value: 0)
json.update("documents[0].invoiceLines[1].taxableItems[0].subType", value: "V001")
json.updateInt("documents[0].invoiceLines[1].taxableItems[0].rate", value: 0)
json.update("documents[0].invoiceLines[2].description", value: "Computer1")
json.update("documents[0].invoiceLines[2].itemType", value: "EGS")
json.update("documents[0].invoiceLines[2].itemCode", value: "EG-113317713-123456")
json.update("documents[0].invoiceLines[2].unitType", value: "EA")
json.updateInt("documents[0].invoiceLines[2].quantity", value: 1)
json.update("documents[0].invoiceLines[2].internalCode", value: "IC0")
json.updateNumber("documents[0].invoiceLines[2].salesTotal", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[2].total", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[2].valueDifference", numericStr: "0.00")
json.updateInt("documents[0].invoiceLines[2].totalTaxableFees", value: 0)
json.updateInt("documents[0].invoiceLines[2].netTotal", value: 123)
json.updateInt("documents[0].invoiceLines[2].itemsDiscount", value: 0)
json.update("documents[0].invoiceLines[2].unitValue.currencySold", value: "EGP")
json.updateNumber("documents[0].invoiceLines[2].unitValue.amountEGP", numericStr: "111111111111.00")
json.updateInt("documents[0].invoiceLines[2].discount.rate", value: 0)
json.updateInt("documents[0].invoiceLines[2].discount.amount", value: 0)
json.update("documents[0].invoiceLines[2].taxableItems[0].taxType", value: "T1")
json.updateInt("documents[0].invoiceLines[2].taxableItems[0].amount", value: 0)
json.update("documents[0].invoiceLines[2].taxableItems[0].subType", value: "V001")
json.updateInt("documents[0].invoiceLines[2].taxableItems[0].rate", value: 0)
json.update("documents[0].invoiceLines[3].description", value: "Computer1")
json.update("documents[0].invoiceLines[3].itemType", value: "EGS")
json.update("documents[0].invoiceLines[3].itemCode", value: "EG-113317713-123456")
json.update("documents[0].invoiceLines[3].unitType", value: "EA")
json.updateInt("documents[0].invoiceLines[3].quantity", value: 1)
json.update("documents[0].invoiceLines[3].internalCode", value: "IC0")
json.updateNumber("documents[0].invoiceLines[3].salesTotal", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[3].total", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[3].valueDifference", numericStr: "0.00")
json.updateInt("documents[0].invoiceLines[3].totalTaxableFees", value: 0)
json.updateInt("documents[0].invoiceLines[3].netTotal", value: 123)
json.updateInt("documents[0].invoiceLines[3].itemsDiscount", value: 0)
json.update("documents[0].invoiceLines[3].unitValue.currencySold", value: "EGP")
json.updateNumber("documents[0].invoiceLines[3].unitValue.amountEGP", numericStr: "111111111111.00")
json.updateInt("documents[0].invoiceLines[3].discount.rate", value: 0)
json.updateInt("documents[0].invoiceLines[3].discount.amount", value: 0)
json.update("documents[0].invoiceLines[3].taxableItems[0].taxType", value: "T1")
json.updateInt("documents[0].invoiceLines[3].taxableItems[0].amount", value: 0)
json.update("documents[0].invoiceLines[3].taxableItems[0].subType", value: "V001")
json.updateInt("documents[0].invoiceLines[3].taxableItems[0].rate", value: 0)
json.update("documents[0].invoiceLines[4].description", value: "Computer1")
json.update("documents[0].invoiceLines[4].itemType", value: "EGS")
json.update("documents[0].invoiceLines[4].itemCode", value: "EG-113317713-123456")
json.update("documents[0].invoiceLines[4].unitType", value: "EA")
json.updateInt("documents[0].invoiceLines[4].quantity", value: 1)
json.update("documents[0].invoiceLines[4].internalCode", value: "IC0")
json.updateNumber("documents[0].invoiceLines[4].salesTotal", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[4].total", numericStr: "111111111111.00")
json.updateNumber("documents[0].invoiceLines[4].valueDifference", numericStr: "0.00")
json.updateInt("documents[0].invoiceLines[4].totalTaxableFees", value: 0)
json.updateInt("documents[0].invoiceLines[4].netTotal", value: 123)
json.updateInt("documents[0].invoiceLines[4].itemsDiscount", value: 0)
json.update("documents[0].invoiceLines[4].unitValue.currencySold", value: "EGP")
json.updateNumber("documents[0].invoiceLines[4].unitValue.amountEGP", numericStr: "111111111111.00")
json.updateInt("documents[0].invoiceLines[4].discount.rate", value: 0)
json.updateInt("documents[0].invoiceLines[4].discount.amount", value: 0)
json.update("documents[0].invoiceLines[4].taxableItems[0].taxType", value: "T1")
json.updateInt("documents[0].invoiceLines[4].taxableItems[0].amount", value: 0)
json.update("documents[0].invoiceLines[4].taxableItems[0].subType", value: "V001")
json.updateInt("documents[0].invoiceLines[4].taxableItems[0].rate", value: 0)
json.updateInt("documents[0].totalDiscountAmount", value: 0)
json.updateNumber("documents[0].totalSalesAmount", numericStr: "555555555555.00")
json.updateNumber("documents[0].netAmount", numericStr: "555555555555.00")
json.update("documents[0].taxTotals[0].taxType", value: "T1")
json.updateInt("documents[0].taxTotals[0].amount", value: 0)
json.updateNumber("documents[0].totalAmount", numericStr: "555555555555.00")
json.updateInt("documents[0].extraDiscountAmount", value: 0)
json.updateInt("documents[0].totalItemsDiscountAmount", value: 0)
json.update("documents[0].signatures[0].signatureType", value: "I")
json.update("documents[0].signatures[0].value", value: "MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZ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3gSCDmycfhJPS9csnne9Zt+abNpja5ZR6KA8JMe4DHes7FDZqHBNHdC+RDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i")
// Adds the "Authorization: Bearer <access_token>" header.
http.authToken = "<access_token>"
http.setRequestHeader("Content-Type", value: "application/json")
var resp: CkoHttpResponse? = http.postJson3("https://domain.com/api/v1/documentsubmissions", contentType: "application/json", json: json)
if http.lastMethodSuccess == false {
print("\(http.lastErrorText!)")
return
}
print("\(resp!.statusCode.intValue)")
print("\(resp!.bodyStr!)")
resp = nil
}
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": "MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq\u002BtIJiVWSkIEEOTIcnG1XNYQOYtf5\u002BDg9eF5H5x1wkgR2G7dv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dGUgQ0EgRzICEEFkOqRVlVar0F0n3FZOLiIwCwYJYIZIAWUDBAIBoIIBCjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcFMBwGCSqGSIb3DQEJBTEPFw0yMTAyMDEyMzUwMjFaMC8GCSqGSIb3DQEJBDEiBCD5bGXJu9uJZIPMGXK98UrHzJM/V2U/WAO6BErxpX5wdTCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX\u002BzbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K\u002BisobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq\u002BW/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/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/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq\\u002BtIJiVWSkIEEOTIcnG1XNYQOYtf5\\u002BDg9eF5H5x1wkgR2G7dvWVXrTsdNv2Q\\u002Bgvml9SdfWxlYxaljg2AuBrsHFjYVEAQFI37EW2K7tbMT7bfxwT1M5tbjxnkTTK12cgwxPr2LBNhHpfXp8SNyWCxpk6eyJb87DveVwCLbAGGXO9mhDj62glVTrCFit7mHC6bZ6MOMAp013B8No9c8xnrKQiOb4Tm2GxB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9uJZIPMGXK98UrHzJM/V2U/WAO6BErxpX5wdTCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX\\u002BzbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K\\u002BisobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq\\u002BW/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i\\u002BVsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt\\u002BabNpja5ZR6KA8JMe4DHes7FDZqHBNHdC\\u002BRDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i\"\r\n }\r\n ]\r\n }\r\n ]\r\n}"
},
"url": {
"raw": "{{apiBaseUrl}}/api/v1/documentsubmissions",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"api",
"v1",
"documentsubmissions"
]
}
},
"response": [
]
}