Back to Collection Items
#include <CkHttpW.h>
#include <CkJsonObjectW.h>
#include <CkHttpResponseW.h>
void ChilkatSample(void)
{
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHttpW http;
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": "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/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE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DASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzICEEFkOqRVlVar0F0n3FZOLiIwCwYJYIZIAWUDBAIBoIIBCjAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcFMBwGCSqGSIb3DQEJBTEPFw0yMTAyMDEyMzUwMjFaMC8GCSqGSIb3DQEJBDEiBCD5bGXJu9uJZIPMGXK98UrHzJM/V2U/WAO6BErxpX5wdTCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX\u002BzbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K\u002BisobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq\u002BW/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i\u002BVsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt\u002BabNpja5ZR6KA8JMe4DHes7FDZqHBNHdC\u002BRDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i"
// }
// ]
// }
// ]
// }
CkJsonObjectW json;
json.UpdateString(L"documents[0].issuer.address.branchID",L"0");
json.UpdateString(L"documents[0].issuer.address.country",L"EG");
json.UpdateString(L"documents[0].issuer.address.governate",L"Cairo");
json.UpdateString(L"documents[0].issuer.address.regionCity",L"Nasr City");
json.UpdateString(L"documents[0].issuer.address.street",L"580 Clementina Key");
json.UpdateString(L"documents[0].issuer.address.buildingNumber",L"Bldg. 0");
json.UpdateString(L"documents[0].issuer.address.postalCode",L"68030");
json.UpdateString(L"documents[0].issuer.address.floor",L"1");
json.UpdateString(L"documents[0].issuer.address.room",L"123");
json.UpdateString(L"documents[0].issuer.address.landmark",L"7660 Melody Trail");
json.UpdateString(L"documents[0].issuer.address.additionalInformation",L"beside Townhall");
json.UpdateString(L"documents[0].issuer.type",L"B");
json.UpdateString(L"documents[0].issuer.id",L"674859545");
json.UpdateString(L"documents[0].issuer.name",L"Issuer Company");
json.UpdateString(L"documents[0].receiver.address.country",L"EG");
json.UpdateString(L"documents[0].receiver.address.governate",L"Egypt");
json.UpdateString(L"documents[0].receiver.address.regionCity",L"Mufazat al Ismlyah");
json.UpdateString(L"documents[0].receiver.address.street",L"580 Clementina Key");
json.UpdateString(L"documents[0].receiver.address.buildingNumber",L"Bldg. 0");
json.UpdateString(L"documents[0].receiver.address.postalCode",L"68030");
json.UpdateString(L"documents[0].receiver.address.floor",L"1");
json.UpdateString(L"documents[0].receiver.address.room",L"123");
json.UpdateString(L"documents[0].receiver.address.landmark",L"7660 Melody Trail");
json.UpdateString(L"documents[0].receiver.address.additionalInformation",L"beside Townhall");
json.UpdateString(L"documents[0].receiver.type",L"B");
json.UpdateString(L"documents[0].receiver.id",L"313717919");
json.UpdateString(L"documents[0].receiver.name",L"Receiver");
json.UpdateString(L"documents[0].documentType",L"I");
json.UpdateString(L"documents[0].documentTypeVersion",L"0.9");
json.UpdateString(L"documents[0].dateTimeIssued",L"2021-02-07T02:04:45Z");
json.UpdateString(L"documents[0].taxpayerActivityCode",L"4620");
json.UpdateString(L"documents[0].internalID",L"IID1");
json.UpdateString(L"documents[0].purchaseOrderReference",L"P-233-A6375");
json.UpdateString(L"documents[0].purchaseOrderDescription",L"purchase Order description");
json.UpdateString(L"documents[0].salesOrderReference",L"1231");
json.UpdateString(L"documents[0].salesOrderDescription",L"Sales Order description");
json.UpdateString(L"documents[0].proformaInvoiceNumber",L"SomeValue");
json.UpdateString(L"documents[0].payment.bankName",L"SomeValue");
json.UpdateString(L"documents[0].payment.bankAddress",L"SomeValue");
json.UpdateString(L"documents[0].payment.bankAccountNo",L"SomeValue");
json.UpdateString(L"documents[0].payment.bankAccountIBAN",L"");
json.UpdateString(L"documents[0].payment.swiftCode",L"");
json.UpdateString(L"documents[0].payment.terms",L"SomeValue");
json.UpdateString(L"documents[0].delivery.approach",L"SomeValue");
json.UpdateString(L"documents[0].delivery.packaging",L"SomeValue");
json.UpdateString(L"documents[0].delivery.dateValidity",L"2020-09-28T09:30:10Z");
json.UpdateString(L"documents[0].delivery.exportPort",L"SomeValue");
json.UpdateNumber(L"documents[0].delivery.grossWeight",L"10.50");
json.UpdateNumber(L"documents[0].delivery.netWeight",L"20.50");
json.UpdateString(L"documents[0].delivery.terms",L"SomeValue");
json.UpdateString(L"documents[0].invoiceLines[0].description",L"Computer1");
json.UpdateString(L"documents[0].invoiceLines[0].itemType",L"EGS");
json.UpdateString(L"documents[0].invoiceLines[0].itemCode",L"EG-113317713-123456");
json.UpdateString(L"documents[0].invoiceLines[0].unitType",L"EA");
json.UpdateInt(L"documents[0].invoiceLines[0].quantity",1);
json.UpdateString(L"documents[0].invoiceLines[0].internalCode",L"IC0");
json.UpdateNumber(L"documents[0].invoiceLines[0].salesTotal",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[0].total",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[0].valueDifference",L"0.00");
json.UpdateInt(L"documents[0].invoiceLines[0].totalTaxableFees",0);
json.UpdateInt(L"documents[0].invoiceLines[0].netTotal",123);
json.UpdateInt(L"documents[0].invoiceLines[0].itemsDiscount",0);
json.UpdateString(L"documents[0].invoiceLines[0].unitValue.currencySold",L"EGP");
json.UpdateNumber(L"documents[0].invoiceLines[0].unitValue.amountEGP",L"111111111111.00");
json.UpdateInt(L"documents[0].invoiceLines[0].discount.rate",0);
json.UpdateInt(L"documents[0].invoiceLines[0].discount.amount",0);
json.UpdateString(L"documents[0].invoiceLines[0].taxableItems[0].taxType",L"T1");
json.UpdateInt(L"documents[0].invoiceLines[0].taxableItems[0].amount",0);
json.UpdateString(L"documents[0].invoiceLines[0].taxableItems[0].subType",L"V001");
json.UpdateInt(L"documents[0].invoiceLines[0].taxableItems[0].rate",0);
json.UpdateString(L"documents[0].invoiceLines[1].description",L"Computer1");
json.UpdateString(L"documents[0].invoiceLines[1].itemType",L"EGS");
json.UpdateString(L"documents[0].invoiceLines[1].itemCode",L"EG-113317713-123456");
json.UpdateString(L"documents[0].invoiceLines[1].unitType",L"EA");
json.UpdateInt(L"documents[0].invoiceLines[1].quantity",1);
json.UpdateString(L"documents[0].invoiceLines[1].internalCode",L"IC0");
json.UpdateNumber(L"documents[0].invoiceLines[1].salesTotal",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[1].total",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[1].valueDifference",L"0.00");
json.UpdateInt(L"documents[0].invoiceLines[1].totalTaxableFees",0);
json.UpdateInt(L"documents[0].invoiceLines[1].netTotal",123);
json.UpdateInt(L"documents[0].invoiceLines[1].itemsDiscount",0);
json.UpdateString(L"documents[0].invoiceLines[1].unitValue.currencySold",L"EGP");
json.UpdateNumber(L"documents[0].invoiceLines[1].unitValue.amountEGP",L"111111111111.00");
json.UpdateInt(L"documents[0].invoiceLines[1].discount.rate",0);
json.UpdateInt(L"documents[0].invoiceLines[1].discount.amount",0);
json.UpdateString(L"documents[0].invoiceLines[1].taxableItems[0].taxType",L"T1");
json.UpdateInt(L"documents[0].invoiceLines[1].taxableItems[0].amount",0);
json.UpdateString(L"documents[0].invoiceLines[1].taxableItems[0].subType",L"V001");
json.UpdateInt(L"documents[0].invoiceLines[1].taxableItems[0].rate",0);
json.UpdateString(L"documents[0].invoiceLines[2].description",L"Computer1");
json.UpdateString(L"documents[0].invoiceLines[2].itemType",L"EGS");
json.UpdateString(L"documents[0].invoiceLines[2].itemCode",L"EG-113317713-123456");
json.UpdateString(L"documents[0].invoiceLines[2].unitType",L"EA");
json.UpdateInt(L"documents[0].invoiceLines[2].quantity",1);
json.UpdateString(L"documents[0].invoiceLines[2].internalCode",L"IC0");
json.UpdateNumber(L"documents[0].invoiceLines[2].salesTotal",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[2].total",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[2].valueDifference",L"0.00");
json.UpdateInt(L"documents[0].invoiceLines[2].totalTaxableFees",0);
json.UpdateInt(L"documents[0].invoiceLines[2].netTotal",123);
json.UpdateInt(L"documents[0].invoiceLines[2].itemsDiscount",0);
json.UpdateString(L"documents[0].invoiceLines[2].unitValue.currencySold",L"EGP");
json.UpdateNumber(L"documents[0].invoiceLines[2].unitValue.amountEGP",L"111111111111.00");
json.UpdateInt(L"documents[0].invoiceLines[2].discount.rate",0);
json.UpdateInt(L"documents[0].invoiceLines[2].discount.amount",0);
json.UpdateString(L"documents[0].invoiceLines[2].taxableItems[0].taxType",L"T1");
json.UpdateInt(L"documents[0].invoiceLines[2].taxableItems[0].amount",0);
json.UpdateString(L"documents[0].invoiceLines[2].taxableItems[0].subType",L"V001");
json.UpdateInt(L"documents[0].invoiceLines[2].taxableItems[0].rate",0);
json.UpdateString(L"documents[0].invoiceLines[3].description",L"Computer1");
json.UpdateString(L"documents[0].invoiceLines[3].itemType",L"EGS");
json.UpdateString(L"documents[0].invoiceLines[3].itemCode",L"EG-113317713-123456");
json.UpdateString(L"documents[0].invoiceLines[3].unitType",L"EA");
json.UpdateInt(L"documents[0].invoiceLines[3].quantity",1);
json.UpdateString(L"documents[0].invoiceLines[3].internalCode",L"IC0");
json.UpdateNumber(L"documents[0].invoiceLines[3].salesTotal",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[3].total",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[3].valueDifference",L"0.00");
json.UpdateInt(L"documents[0].invoiceLines[3].totalTaxableFees",0);
json.UpdateInt(L"documents[0].invoiceLines[3].netTotal",123);
json.UpdateInt(L"documents[0].invoiceLines[3].itemsDiscount",0);
json.UpdateString(L"documents[0].invoiceLines[3].unitValue.currencySold",L"EGP");
json.UpdateNumber(L"documents[0].invoiceLines[3].unitValue.amountEGP",L"111111111111.00");
json.UpdateInt(L"documents[0].invoiceLines[3].discount.rate",0);
json.UpdateInt(L"documents[0].invoiceLines[3].discount.amount",0);
json.UpdateString(L"documents[0].invoiceLines[3].taxableItems[0].taxType",L"T1");
json.UpdateInt(L"documents[0].invoiceLines[3].taxableItems[0].amount",0);
json.UpdateString(L"documents[0].invoiceLines[3].taxableItems[0].subType",L"V001");
json.UpdateInt(L"documents[0].invoiceLines[3].taxableItems[0].rate",0);
json.UpdateString(L"documents[0].invoiceLines[4].description",L"Computer1");
json.UpdateString(L"documents[0].invoiceLines[4].itemType",L"EGS");
json.UpdateString(L"documents[0].invoiceLines[4].itemCode",L"EG-113317713-123456");
json.UpdateString(L"documents[0].invoiceLines[4].unitType",L"EA");
json.UpdateInt(L"documents[0].invoiceLines[4].quantity",1);
json.UpdateString(L"documents[0].invoiceLines[4].internalCode",L"IC0");
json.UpdateNumber(L"documents[0].invoiceLines[4].salesTotal",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[4].total",L"111111111111.00");
json.UpdateNumber(L"documents[0].invoiceLines[4].valueDifference",L"0.00");
json.UpdateInt(L"documents[0].invoiceLines[4].totalTaxableFees",0);
json.UpdateInt(L"documents[0].invoiceLines[4].netTotal",123);
json.UpdateInt(L"documents[0].invoiceLines[4].itemsDiscount",0);
json.UpdateString(L"documents[0].invoiceLines[4].unitValue.currencySold",L"EGP");
json.UpdateNumber(L"documents[0].invoiceLines[4].unitValue.amountEGP",L"111111111111.00");
json.UpdateInt(L"documents[0].invoiceLines[4].discount.rate",0);
json.UpdateInt(L"documents[0].invoiceLines[4].discount.amount",0);
json.UpdateString(L"documents[0].invoiceLines[4].taxableItems[0].taxType",L"T1");
json.UpdateInt(L"documents[0].invoiceLines[4].taxableItems[0].amount",0);
json.UpdateString(L"documents[0].invoiceLines[4].taxableItems[0].subType",L"V001");
json.UpdateInt(L"documents[0].invoiceLines[4].taxableItems[0].rate",0);
json.UpdateInt(L"documents[0].totalDiscountAmount",0);
json.UpdateNumber(L"documents[0].totalSalesAmount",L"555555555555.00");
json.UpdateNumber(L"documents[0].netAmount",L"555555555555.00");
json.UpdateString(L"documents[0].taxTotals[0].taxType",L"T1");
json.UpdateInt(L"documents[0].taxTotals[0].amount",0);
json.UpdateNumber(L"documents[0].totalAmount",L"555555555555.00");
json.UpdateInt(L"documents[0].extraDiscountAmount",0);
json.UpdateInt(L"documents[0].totalItemsDiscountAmount",0);
json.UpdateString(L"documents[0].signatures[0].signatureType",L"I");
json.UpdateString(L"documents[0].signatures[0].value",L"MIIGywYJKoZIhvcNAQcCoIIGvDCCBrgCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIID/zCCA/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJKoZIhvcNAQELBQAwSTELMAkGA1UEBhMCRUcxFDASBgNVBAoTC0VneXB0IFRydXN0MSQwIgYDVQQDExtFZ3lwdCBUcnVzdCBDb3Jwb3JhdGUgQ0EgRzIwHhcNMjAwMzMxMDAwMDAwWhcNMjEwMzMwMjM1OTU5WjBgMRUwEwYDVQQKFAxFZ3lwdCBUcnVzdCAxGDAWBgNVBGEUD1ZBVEVHLTExMzMxNzcxMzELMAkGA1UEBhMCRUcxIDAeBgNVBAMMF1Rlc3QgU2VhbGluZyBEZW1vIHVzZXIyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmVGVJtpImeq+tIJiVWSkIEEOTIcnG1XNYQOYtf5+Dg9eF5H5x1wkgR2G7dvWVXrTsdNv2Q+gvml9SdfWxlYxaljg2AuBrsHFjYVEAQFI37EW2K7tbMT7bfxwT1M5tbjxnkTTK12cgwxPr2LBNhHp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yMDEyMzUwMjFaMC8GCSqGSIb3DQEJBDEiBCD5bGXJu9uJZIPMGXK98UrHzJM/V2U/WAO6BErxpX5wdTCBngYLKoZIhvcNAQkQAi8xgY4wgYswgYgwgYUEIAJA8uO/ek3l9i3ZOgRtPhGWwwFYljbeJ7yAgEnyYNCWMGEwTaBLMEkxCzAJBgNVBAYTAkVHMRQwEgYDVQQKEwtFZ3lwdCBUcnVzdDEkMCIGA1UEAxMbRWd5cHQgVHJ1c3QgQ29ycG9yYXRlIENBIEcyAhBBZDqkVZVWq9BdJ9xWTi4iMAsGCSqGSIb3DQEBAQSCAQB13E1WX+zbWppfJi3DBK9MMSB1TXuxcNkGXQ19OcRUUAaAe2K+isobYrUCZbi3ygc2AWOMyafboxjjomzrnvXKrFgspT4wAFPYaAGFzKWq+W/nqMhIqJVIpS/NM7Al4HvuBA5iGuZEQFusElB0yIxOIiYDI4v8Ilkff4/duj/V2CNaN5cqXLOpL5RP6Y5i+VsPGb89t/L0dSIldGN0JqaqarqYo5/RwsUFJJq01DFpPGNbOIX3gSCDmycfhJPS9csnne9Zt+abNpja5ZR6KA8JMe4DHes7FDZqHBNHdC+RDXT4crqmnyiJjizULu6MqDc0Fv3vrMMWDLRlwDecgq7i");
// Adds the "Authorization: Bearer <access_token>" header.
http.put_AuthToken(L"<access_token>");
http.SetRequestHeader(L"Content-Type",L"application/json");
CkHttpResponseW *resp = http.PostJson3(L"https://domain.com/api/v1/documentsubmissions",L"application/json",json);
if (http.get_LastMethodSuccess() == false) {
wprintf(L"%s\n",http.lastErrorText());
return;
}
wprintf(L"%d\n",resp->get_StatusCode());
wprintf(L"%s\n",resp->bodyStr());
delete resp;
}
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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1TXuxcNkGXQ19OcRUUAaAe2K\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/swggLjoAMCAQICEEFkOqRVlVar0F0n3FZOLiIwDQYJ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P6Y5i\\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": [
]
}