Back to Collection Items
#import <CkoHttp.h>
#import <CkoJsonObject.h>
#import <CkoHttpResponse.h>
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkoHttp *http = [[CkoHttp alloc] init];
BOOL success;
// Use this online tool to generate code from sample 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": "D",
// "documentTypeVersion": "0.9",
// "dateTimeIssued": "2021-02-08T23: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/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq\u002BtIJiVWSkIEEOTIcnG1XNYQOYtf5\u002BDg9eF5H5x1wkgR2G7dvWVXrTsdNv2Q\u002Bgvml9SdfWxlYxaljg2AuBrsHFjYVEAQFI37EW2K7tbMT7bfxwT1M5tbjxnkTTK12cgwxPr2LBNhHpfXp8SNyWCxpk6eyJb87DveVwCLbAGGXO9mhDj62glVTrCFit7mHC6bZ6MOMAp013B8No9c8xnrKQiOb4Tm2GxBYHFwEcfYUGZNltGZNdVUtu6ty\u002BNTrSRRC/dILeGHgz6/2pgQPk5OFYRTRHRNVNo\u002BjG\u002BnurUYkSWxA4I9CmsVt2FdeBeuvRFs/U1I\u002BieKg1wIDAQABo4HHMIHEMAkGA1UdEwQCMAAwVAYDVR0fBE0wSzBJoEegRYZDaHR0cDovL21wa2ljcmwuZWd5cHR0cnVzdC5jb20vRWd5cHRUcnVzdENvcnBvcmF0ZUNBRzIvTGF0ZXN0Q1JM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qGSIb3DQEBAQSCAQCDrv7l41A\u002BN625X9UnEYIXENciomWehs4UgFcgQgsTP7eaNoOPk4fQDUyuW4bIArNWnTn5qrTrSCh/hFA4HGNV8942KNQaUDwSIrKImE2aMpsjyrfV6rIP2R9HJnk0Gx7M7lT0dtwV1Yw0GyZ\u002BNQjQZrGrH\u002BI5RXixZPPOm2jxI9SwyX0X9yFIT2BvVkUhb9qqzxP\u002BX/HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk\u002BLNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW"
// }
// ]
// }
// ]
// }
CkoJsonObject *json = [[CkoJsonObject alloc] init];
[json UpdateString: @"documents[0].issuer.address.branchID" value: @"1"];
[json UpdateString: @"documents[0].issuer.address.country" value: @"EG"];
[json UpdateString: @"documents[0].issuer.address.governate" value: @"Cairo"];
[json UpdateString: @"documents[0].issuer.address.regionCity" value: @"Nasr City"];
[json UpdateString: @"documents[0].issuer.address.street" value: @"580 Clementina Key"];
[json UpdateString: @"documents[0].issuer.address.buildingNumber" value: @"Bldg. 0"];
[json UpdateString: @"documents[0].issuer.address.postalCode" value: @"68030"];
[json UpdateString: @"documents[0].issuer.address.floor" value: @"1"];
[json UpdateString: @"documents[0].issuer.address.room" value: @"123"];
[json UpdateString: @"documents[0].issuer.address.landmark" value: @"7660 Melody Trail"];
[json UpdateString: @"documents[0].issuer.address.additionalInformation" value: @"beside Townhall"];
[json UpdateString: @"documents[0].issuer.type" value: @"B"];
[json UpdateString: @"documents[0].issuer.id" value: @"113317713"];
[json UpdateString: @"documents[0].issuer.name" value: @"Issuer Company"];
[json UpdateString: @"documents[0].receiver.address.country" value: @"EG"];
[json UpdateString: @"documents[0].receiver.address.governate" value: @"Egypt"];
[json UpdateString: @"documents[0].receiver.address.regionCity" value: @"Mufazat al Ismlyah"];
[json UpdateString: @"documents[0].receiver.address.street" value: @"580 Clementina Key"];
[json UpdateString: @"documents[0].receiver.address.buildingNumber" value: @"Bldg. 0"];
[json UpdateString: @"documents[0].receiver.address.postalCode" value: @"68030"];
[json UpdateString: @"documents[0].receiver.address.floor" value: @"1"];
[json UpdateString: @"documents[0].receiver.address.room" value: @"123"];
[json UpdateString: @"documents[0].receiver.address.landmark" value: @"7660 Melody Trail"];
[json UpdateString: @"documents[0].receiver.address.additionalInformation" value: @"beside Townhall"];
[json UpdateString: @"documents[0].receiver.type" value: @"B"];
[json UpdateString: @"documents[0].receiver.id" value: @"313717919"];
[json UpdateString: @"documents[0].receiver.name" value: @"Receiver"];
[json UpdateString: @"documents[0].documentType" value: @"D"];
[json UpdateString: @"documents[0].documentTypeVersion" value: @"0.9"];
[json UpdateString: @"documents[0].dateTimeIssued" value: @"2021-02-08T23:59:59Z"];
[json UpdateString: @"documents[0].taxpayerActivityCode" value: @"4620"];
[json UpdateString: @"documents[0].internalID" value: @"IID1"];
[json UpdateString: @"documents[0].purchaseOrderReference" value: @"P-233-A6375"];
[json UpdateString: @"documents[0].purchaseOrderDescription" value: @"purchase Order description"];
[json UpdateString: @"documents[0].salesOrderReference" value: @"1231"];
[json UpdateString: @"documents[0].salesOrderDescription" value: @"Sales Order description"];
[json UpdateString: @"documents[0].proformaInvoiceNumber" value: @"SomeValue"];
[json UpdateString: @"documents[0].references[0]" value: @"5Z40TP7SXAKADVH8WX71PXNE10"];
[json UpdateString: @"documents[0].payment.bankName" value: @"SomeValue"];
[json UpdateString: @"documents[0].payment.bankAddress" value: @"SomeValue"];
[json UpdateString: @"documents[0].payment.bankAccountNo" value: @"SomeValue"];
[json UpdateString: @"documents[0].payment.bankAccountIBAN" value: @""];
[json UpdateString: @"documents[0].payment.swiftCode" value: @""];
[json UpdateString: @"documents[0].payment.terms" value: @"SomeValue"];
[json UpdateString: @"documents[0].delivery.approach" value: @"SomeValue"];
[json UpdateString: @"documents[0].delivery.packaging" value: @"SomeValue"];
[json UpdateString: @"documents[0].delivery.dateValidity" value: @"2020-09-28T09:30:10Z"];
[json UpdateString: @"documents[0].delivery.exportPort" value: @"SomeValue"];
[json UpdateString: @"documents[0].delivery.countryOfOrigin" value: @"EG"];
[json UpdateNumber: @"documents[0].delivery.grossWeight" numericStr: @"10.50"];
[json UpdateNumber: @"documents[0].delivery.netWeight" numericStr: @"20.50"];
[json UpdateString: @"documents[0].delivery.terms" value: @"SomeValue"];
[json UpdateString: @"documents[0].invoiceLines[0].description" value: @"Computer1"];
[json UpdateString: @"documents[0].invoiceLines[0].itemType" value: @"EGS"];
[json UpdateString: @"documents[0].invoiceLines[0].itemCode" value: @"EG-113317713-123456"];
[json UpdateString: @"documents[0].invoiceLines[0].unitType" value: @"EA"];
[json UpdateInt: @"documents[0].invoiceLines[0].quantity" value: [NSNumber numberWithInt: 5]];
[json UpdateString: @"documents[0].invoiceLines[0].internalCode" value: @"IC0"];
[json UpdateNumber: @"documents[0].invoiceLines[0].salesTotal" numericStr: @"947.00"];
[json UpdateNumber: @"documents[0].invoiceLines[0].total" numericStr: @"2969.89"];
[json UpdateNumber: @"documents[0].invoiceLines[0].valueDifference" numericStr: @"7.00"];
[json UpdateNumber: @"documents[0].invoiceLines[0].totalTaxableFees" numericStr: @"817.42"];
[json UpdateNumber: @"documents[0].invoiceLines[0].netTotal" numericStr: @"880.71"];
[json UpdateNumber: @"documents[0].invoiceLines[0].itemsDiscount" numericStr: @"5.00"];
[json UpdateString: @"documents[0].invoiceLines[0].unitValue.currencySold" value: @"EUR"];
[json UpdateNumber: @"documents[0].invoiceLines[0].unitValue.amountEGP" numericStr: @"189.40"];
[json UpdateNumber: @"documents[0].invoiceLines[0].unitValue.amountSold" numericStr: @"10.00"];
[json UpdateNumber: @"documents[0].invoiceLines[0].unitValue.currencyExchangeRate" numericStr: @"18.94"];
[json UpdateInt: @"documents[0].invoiceLines[0].discount.rate" value: [NSNumber numberWithInt: 7]];
[json UpdateNumber: @"documents[0].invoiceLines[0].discount.amount" numericStr: @"66.29"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[0].taxType" value: @"T1"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[0].amount" numericStr: @"272.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[0].subType" value: @"T1"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[0].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[1].taxType" value: @"T2"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[1].amount" numericStr: @"208.22"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[1].subType" value: @"T2"];
[json UpdateInt: @"documents[0].invoiceLines[0].taxableItems[1].rate" value: [NSNumber numberWithInt: 12]];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[2].taxType" value: @"T3"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[2].amount" numericStr: @"30.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[2].subType" value: @"T3"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[2].rate" numericStr: @"0.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[3].taxType" value: @"T4"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[3].amount" numericStr: @"43.79"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[3].subType" value: @"T4"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[3].rate" numericStr: @"5.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[4].taxType" value: @"T5"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[4].amount" numericStr: @"123.30"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[4].subType" value: @"T5"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[4].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[5].taxType" value: @"T6"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[5].amount" numericStr: @"60.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[5].subType" value: @"T6"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[5].rate" numericStr: @"0.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[6].taxType" value: @"T7"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[6].amount" numericStr: @"88.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[6].subType" value: @"T7"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[6].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[7].taxType" value: @"T8"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[7].amount" numericStr: @"123.30"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[7].subType" value: @"T8"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[7].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[8].taxType" value: @"T9"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[8].amount" numericStr: @"105.69"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[8].subType" value: @"T9"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[8].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[9].taxType" value: @"T10"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[9].amount" numericStr: @"88.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[9].subType" value: @"T10"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[9].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[10].taxType" value: @"T11"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[10].amount" numericStr: @"123.30"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[10].subType" value: @"T11"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[10].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[11].taxType" value: @"T12"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[11].amount" numericStr: @"105.69"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[11].subType" value: @"T12"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[11].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[12].taxType" value: @"T13"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[12].amount" numericStr: @"88.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[12].subType" value: @"T13"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[12].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[13].taxType" value: @"T14"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[13].amount" numericStr: @"123.30"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[13].subType" value: @"T14"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[13].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[14].taxType" value: @"T15"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[14].amount" numericStr: @"105.69"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[14].subType" value: @"T15"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[14].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[15].taxType" value: @"T16"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[15].amount" numericStr: @"88.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[15].subType" value: @"T16"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[15].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[16].taxType" value: @"T17"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[16].amount" numericStr: @"88.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[16].subType" value: @"T17"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[16].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[17].taxType" value: @"T18"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[17].amount" numericStr: @"123.30"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[17].subType" value: @"T18"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[17].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[18].taxType" value: @"T19"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[18].amount" numericStr: @"105.69"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[18].subType" value: @"T19"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[18].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[19].taxType" value: @"T20"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[19].amount" numericStr: @"88.07"];
[json UpdateString: @"documents[0].invoiceLines[0].taxableItems[19].subType" value: @"T20"];
[json UpdateNumber: @"documents[0].invoiceLines[0].taxableItems[19].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].description" value: @"Computer2"];
[json UpdateString: @"documents[0].invoiceLines[1].itemType" value: @"GPC"];
[json UpdateString: @"documents[0].invoiceLines[1].itemCode" value: @"10003752"];
[json UpdateString: @"documents[0].invoiceLines[1].unitType" value: @"EA"];
[json UpdateInt: @"documents[0].invoiceLines[1].quantity" value: [NSNumber numberWithInt: 7]];
[json UpdateString: @"documents[0].invoiceLines[1].internalCode" value: @"IC0"];
[json UpdateNumber: @"documents[0].invoiceLines[1].salesTotal" numericStr: @"662.90"];
[json UpdateNumber: @"documents[0].invoiceLines[1].total" numericStr: @"2226.61"];
[json UpdateNumber: @"documents[0].invoiceLines[1].valueDifference" numericStr: @"6.00"];
[json UpdateNumber: @"documents[0].invoiceLines[1].totalTaxableFees" numericStr: @"621.51"];
[json UpdateNumber: @"documents[0].invoiceLines[1].netTotal" numericStr: @"652.90"];
[json UpdateNumber: @"documents[0].invoiceLines[1].itemsDiscount" numericStr: @"9.00"];
[json UpdateString: @"documents[0].invoiceLines[1].unitValue.currencySold" value: @"EUR"];
[json UpdateNumber: @"documents[0].invoiceLines[1].unitValue.amountEGP" numericStr: @"94.70"];
[json UpdateNumber: @"documents[0].invoiceLines[1].unitValue.amountSold" numericStr: @"5.00"];
[json UpdateNumber: @"documents[0].invoiceLines[1].unitValue.currencyExchangeRate" numericStr: @"18.94"];
[json UpdateInt: @"documents[0].invoiceLines[1].discount.rate" value: [NSNumber numberWithInt: 0]];
[json UpdateNumber: @"documents[0].invoiceLines[1].discount.amount" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[0].taxType" value: @"T1"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[0].amount" numericStr: @"205.47"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[0].subType" value: @"T1"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[0].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[1].taxType" value: @"T2"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[1].amount" numericStr: @"157.25"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[1].subType" value: @"T2"];
[json UpdateInt: @"documents[0].invoiceLines[1].taxableItems[1].rate" value: [NSNumber numberWithInt: 12]];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[2].taxType" value: @"T3"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[2].amount" numericStr: @"30.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[2].subType" value: @"T3"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[2].rate" numericStr: @"0.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[3].taxType" value: @"T4"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[3].amount" numericStr: @"32.20"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[3].subType" value: @"T4"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[3].rate" numericStr: @"5.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[4].taxType" value: @"T5"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[4].amount" numericStr: @"91.41"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[4].subType" value: @"T5"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[4].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[5].taxType" value: @"T6"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[5].amount" numericStr: @"60.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[5].subType" value: @"T6"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[5].rate" numericStr: @"0.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[6].taxType" value: @"T7"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[6].amount" numericStr: @"65.29"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[6].subType" value: @"T7"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[6].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[7].taxType" value: @"T8"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[7].amount" numericStr: @"91.41"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[7].subType" value: @"T8"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[7].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[8].taxType" value: @"T9"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[8].amount" numericStr: @"78.35"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[8].subType" value: @"T9"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[8].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[9].taxType" value: @"T10"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[9].amount" numericStr: @"65.29"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[9].subType" value: @"T10"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[9].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[10].taxType" value: @"T11"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[10].amount" numericStr: @"91.41"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[10].subType" value: @"T11"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[10].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[11].taxType" value: @"T12"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[11].amount" numericStr: @"78.35"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[11].subType" value: @"T12"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[11].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[12].taxType" value: @"T13"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[12].amount" numericStr: @"65.29"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[12].subType" value: @"T13"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[12].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[13].taxType" value: @"T14"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[13].amount" numericStr: @"91.41"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[13].subType" value: @"T14"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[13].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[14].taxType" value: @"T15"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[14].amount" numericStr: @"78.35"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[14].subType" value: @"T15"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[14].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[15].taxType" value: @"T16"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[15].amount" numericStr: @"65.29"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[15].subType" value: @"T16"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[15].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[16].taxType" value: @"T17"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[16].amount" numericStr: @"65.29"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[16].subType" value: @"T17"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[16].rate" numericStr: @"10.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[17].taxType" value: @"T18"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[17].amount" numericStr: @"91.41"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[17].subType" value: @"T18"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[17].rate" numericStr: @"14.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[18].taxType" value: @"T19"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[18].amount" numericStr: @"78.35"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[18].subType" value: @"T19"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[18].rate" numericStr: @"12.00"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[19].taxType" value: @"T20"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[19].amount" numericStr: @"65.29"];
[json UpdateString: @"documents[0].invoiceLines[1].taxableItems[19].subType" value: @"T20"];
[json UpdateNumber: @"documents[0].invoiceLines[1].taxableItems[19].rate" numericStr: @"10.00"];
[json UpdateNumber: @"documents[0].totalDiscountAmount" numericStr: @"76.29"];
[json UpdateNumber: @"documents[0].totalSalesAmount" numericStr: @"1609.90"];
[json UpdateNumber: @"documents[0].netAmount" numericStr: @"1533.61"];
[json UpdateString: @"documents[0].taxTotals[0].taxType" value: @"T1"];
[json UpdateNumber: @"documents[0].taxTotals[0].amount" numericStr: @"477.54"];
[json UpdateString: @"documents[0].taxTotals[1].taxType" value: @"T2"];
[json UpdateNumber: @"documents[0].taxTotals[1].amount" numericStr: @"365.47"];
[json UpdateString: @"documents[0].taxTotals[2].taxType" value: @"T3"];
[json UpdateNumber: @"documents[0].taxTotals[2].amount" numericStr: @"60.00"];
[json UpdateString: @"documents[0].taxTotals[3].taxType" value: @"T4"];
[json UpdateNumber: @"documents[0].taxTotals[3].amount" numericStr: @"75.99"];
[json UpdateString: @"documents[0].taxTotals[4].taxType" value: @"T5"];
[json UpdateNumber: @"documents[0].taxTotals[4].amount" numericStr: @"214.71"];
[json UpdateString: @"documents[0].taxTotals[5].taxType" value: @"T6"];
[json UpdateNumber: @"documents[0].taxTotals[5].amount" numericStr: @"120.00"];
[json UpdateString: @"documents[0].taxTotals[6].taxType" value: @"T7"];
[json UpdateNumber: @"documents[0].taxTotals[6].amount" numericStr: @"153.36"];
[json UpdateString: @"documents[0].taxTotals[7].taxType" value: @"T8"];
[json UpdateNumber: @"documents[0].taxTotals[7].amount" numericStr: @"214.71"];
[json UpdateString: @"documents[0].taxTotals[8].taxType" value: @"T9"];
[json UpdateNumber: @"documents[0].taxTotals[8].amount" numericStr: @"184.04"];
[json UpdateString: @"documents[0].taxTotals[9].taxType" value: @"T10"];
[json UpdateNumber: @"documents[0].taxTotals[9].amount" numericStr: @"153.36"];
[json UpdateString: @"documents[0].taxTotals[10].taxType" value: @"T11"];
[json UpdateNumber: @"documents[0].taxTotals[10].amount" numericStr: @"214.71"];
[json UpdateString: @"documents[0].taxTotals[11].taxType" value: @"T12"];
[json UpdateNumber: @"documents[0].taxTotals[11].amount" numericStr: @"184.04"];
[json UpdateString: @"documents[0].taxTotals[12].taxType" value: @"T13"];
[json UpdateNumber: @"documents[0].taxTotals[12].amount" numericStr: @"153.36"];
[json UpdateString: @"documents[0].taxTotals[13].taxType" value: @"T14"];
[json UpdateNumber: @"documents[0].taxTotals[13].amount" numericStr: @"214.71"];
[json UpdateString: @"documents[0].taxTotals[14].taxType" value: @"T15"];
[json UpdateNumber: @"documents[0].taxTotals[14].amount" numericStr: @"184.04"];
[json UpdateString: @"documents[0].taxTotals[15].taxType" value: @"T16"];
[json UpdateNumber: @"documents[0].taxTotals[15].amount" numericStr: @"153.36"];
[json UpdateString: @"documents[0].taxTotals[16].taxType" value: @"T17"];
[json UpdateNumber: @"documents[0].taxTotals[16].amount" numericStr: @"153.36"];
[json UpdateString: @"documents[0].taxTotals[17].taxType" value: @"T18"];
[json UpdateNumber: @"documents[0].taxTotals[17].amount" numericStr: @"214.71"];
[json UpdateString: @"documents[0].taxTotals[18].taxType" value: @"T19"];
[json UpdateNumber: @"documents[0].taxTotals[18].amount" numericStr: @"184.04"];
[json UpdateString: @"documents[0].taxTotals[19].taxType" value: @"T20"];
[json UpdateNumber: @"documents[0].taxTotals[19].amount" numericStr: @"153.36"];
[json UpdateNumber: @"documents[0].totalAmount" numericStr: @"5191.50"];
[json UpdateNumber: @"documents[0].extraDiscountAmount" numericStr: @"5.00"];
[json UpdateNumber: @"documents[0].totalItemsDiscountAmount" numericStr: @"14.00"];
[json UpdateString: @"documents[0].signatures[0].signatureType" value: @"I"];
[json UpdateString: @"documents[0].signatures[0].value" value: @"MIIGywYJKoZIhvcNAQcCo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jQZrGrH+I5RXixZPPOm2jxI9SwyX0X9yFIT2BvVkUhb9qqzxP+X/HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk+LNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW"];
// Adds the "Authorization: Bearer <access_token>" header.
http.AuthToken = @"<access_token>";
CkoHttpResponse *resp = [http PostJson3: @"https://domain.com/api/v1/documentsubmissions" contentType: @"application/json" json: json];
if (http.LastMethodSuccess == NO) {
NSLog(@"%@",http.LastErrorText);
return;
}
NSLog(@"%d",[resp.StatusCode intValue]);
NSLog(@"%@",resp.BodyStr);
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-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": "D",
"documentTypeVersion": "0.9",
"dateTimeIssued": "2021-02-08T23: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/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcN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HL3yI3LlIHcITgckKzucjjCiG61EsasCR/gHhGjUbacJXJvC3IQbk\u002BLNUi7tqGM2rCWZZaFcaKTUCU6vLfXgwcbIdWidOIf6xVFE4Gy6Zx/k3S/7/4KprPyKeCm5hZVll19SIcOKNGRSzW"
}
]
}
]
}'
https://domain.com/api/v1/documentsubmissions
Postman Collection Item JSON
{
"name": "1.1 Submit Documents (JSON) Debit",
"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\": \"D\",\r\n \"documentTypeVersion\": \"0.9\",\r\n \"dateTimeIssued\": \"2021-02-08T23: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 \"extraDiscountAmount\": 5.00,\r\n \"totalItemsDiscountAmount\": 14.00,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IXENciomWehs4UgFcgQgsTP7eaNoOPk4fQDUyuW4bIArNWnTn5qrTrSCh/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": [
]
}