Egypt ETA E-Invoice and E-Receipt API

API ID 15624

Egypt ETA e-invoice and e-receipt API: build documents with all totals, CAdES-BES signing (key or USB token), receipt UUID and QR, submit, cancel and track with ETA.

367 ms avg response

API Documentation

Endpoints

Request
Canonical ETA serialization and SHA-256 of a document or receipt.
Endpoint ID: 42178
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42178/serialize+document
INPUT PARAMETERS

Serialize Document — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "serialized": "\"INTERNALID\"\"INV-1\"\"TOTALAMOUNT\"\"114\"",
        "sha256_hex": "c42da7a72532e8e740c255012e63ca557d3bdf19d588020441fcfa86f8010a68",
        "length": 37
    },
    "meta": {
        "request_id": "req_355fa74f71d3b75f",
        "version": "v1"
    }
}
Serialize Document — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42178/serialize+document' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "document": {
  "internalID": "INV-1",
  "totalAmount": 114
 }
}'

    
Request
Sign an ETA document CAdES-BES, issuer signature I. Returns the document with "signatures" added. Submit document_json exactly as returned.
Endpoint ID: 42179
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42179/sign+document
INPUT PARAMETERS

Sign Document — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "signature": "MIIEfgYJKoZIhvcNAQcCoIIEbzCCBGsCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIICUDCCAkwwggG1oAMCAQICFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUAMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQ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wHRXhhbXBsZTELMAkGA1UEBhMCRUcCFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUABIGANCCBK+cJaByJ6Kjajx0+bb9lHq4YmRrhU0YqNRX15n9ymLrJhczMd5jjg+8BJEExCFnNHieDVVgjuyD4ZKu/oFhBYh5UARtcWAkZ6+l2/It2+eXux+NJmuxp0L5VSqG7ZaSn...",
        "document": {
            "internalID": "INV-1",
            "totalAmount": 114,
            "signatures": [
                {
                    "signatureType": "I",
                    "value": "MIIEfgYJKoZIhvcNAQcCoIIEbzCCBGsCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIICUDCCAkwwggG1oAMCAQICFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUAMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRzAeFw0yNjExMjUyMDE0MTFaFw0zNjExMjIyMDE0MTFaMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAx6huM8KANrzVOXwkYitM2btsabeSu0N0GYngxa7L6qAtjVwHnCYL0jnzGHEmhQJlXyxj5ifHQJUTbtS05TRbRM/kWuZtARLtBfcl1jG4qS4SE65REK1znBSx50iKj51SE84jVwSOfAcg6zsrvmeNbJ2kUvdPB8qAS/hjiQyy77sCAwEAAaNTMFEwHQYDVR0OBBYEFNdKNbI2bD0tQmZARa+kSGG0a7/DMB8GA1UdIwQYMBaAFNdKNbI2bD0tQmZARa+kSGG0a7/DMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADgYEAPbOca23wif848rWzlShCKdi07iCxUOvlRkPHz2+ANW+LHyuHCM9SL3A75pdL21tqGh4OdoW/e99a5sn/mpgzKtNQEMuaJ48k+Bx6IPwJe9g6Lq0CEZyc8ZSdU4JKQX2GhWJKo0X3kpIKZf99xJHV11TYhejRnwpj3P/3j2/kfeExggH0MIIB8AIBATBQMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRwIUdsqe3/ZvWQF80MlnR/3lXPiMZfEwCwYJYIZIAWUDBAIBoIH5MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwUwHAYJKoZIhvcNAQkFMQ8XDTI2MTEyNTIwMTcwNFowLwYJKoZIhvcNAQkEMSIEIMQtp6clMujnQMJVAS5jylV9O98Z1YgCBEH8+ob4AQpoMIGNBgsqhkiG9w0BCRACLzF+MHwwejB4BCANRW03B0DJ1RxYsugnrWD/HEG+c+WQnw6TD700Amxi/zBUMDykOjA4MRcwFQYDVQQDDA5FeGFtcGxlIFNpZ25lcjEQMA4GA1UECgwHRXhhbXBsZTELMAkGA1UEBhMCRUcCFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUABIGANCCBK+cJaByJ6Kjajx0+bb9lHq4YmRrhU0YqNRX15n9ymLrJhczMd5jjg+8BJEExCFnNHieDVVgjuyD4ZKu/oFhBYh5UARtcWAkZ6+l2/It2+eXux+NJmuxp0L5VSqG7ZaSn..."
                }
            ]
        },
        "document_json": "{\"internalID\":\"INV-1\",\"totalAmount\":114,\"signatures\":[{\"signatureType\":\"I\",\"value\":\"MIIEfgYJKoZIhvcNAQcCoIIEbzCCBGsCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIICUDCCAkwwggG1oAMCAQICFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUAMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRzAeFw0yNjExMjUyMDE0MTFaFw0zNjExMjIyMDE0MTFaMDgxF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4jGXxMA0GCSqGSIb3DQEBCwUABIGANCCBK+cJaByJ6Kjajx0+bb9lHq4YmRrhU..."
    },
    "meta": {
        "request_id": "req_3e86535f15bfaf07",
        "version": "v1"
    }
}
Sign Document — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42179/sign+document' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "document": {
  "internalID": "INV-1",
  "totalAmount": 114
 },
 "signing": {
  "private_key": "-----BEGIN PRIVATE KEY-----\nMIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAMeobjPCgDa81Tl8\nJGIrTNm7bGm3krtDdBmJ4MWuy+qgLY1cB5wmC9I58xhxJoUCZV8sY+Ynx0CVE27U\ntOU0W0TP5FrmbQES7QX3JdYxuKkuEhOuURCtc5wUsedIio+dUhPOI1cEjnwHIOs7\nK75njWydpFL3TwfKgEv4Y4kMsu+7AgMBAAECgYA7ULCcs/X/TQ5Tq6vrdk24idPl\nfGIdPCbrx2h9kjaGl9uwmVyxaSQt6oVsB4GYFmQjaD6ti7fIWgGR9aNgTLOoMLFS\n3hwihwH4SM4jpPE2VlAdvSV8O46rKTEJtqzPjtQ7NSJ59LaRyCkLcCOYW1BtzceC\na+T1DgEj2As+g9HagQJBAPwg9csm+BNs+GmRjSPWrBAixNMElH4MRhLDlzDcZMV+\nWvRJnkM42mcccQbmboATaZF5Y68g3ZGTb4Lg57vadeECQQDKuTlNq+ac7tnX3MDt\na9Hxl6Ize3xbBK/do3yC/a+e5afzT1wLCac3egDa2QqZmevuCmBkgp40h/ZLFEE9\nRqEbAkBS3+qrOkX07K7C1KsWCqxIKYWU7z54KESoSk5aKzeciyoOflxdMETp+7lT\nUU8lHjxnKwWPPThXb6UJ2i+R2f9BAkAhzNY4FBREUDK0IhNswpBjlqOtr8YhKtvj\nuXF2KbQRazsgfzfag0aFImtoEc4JpDdJHiPKPlkAazbud7cU72THAkAD7hq75jx2\ncwOnw5s482so64m5LvOLdQQRzt2tlYrvwgZe4N0c/oAOZuVloX4EG8AdXnZxAGx+\n+ub3bKq4qrSD\n-----END PRIVATE KEY-----",
  "certificate": "-----BEGIN CERTIFICATE-----\nMIICTDCCAbWgAwIBAgIUdsqe3/ZvWQF80MlnR/3lXPiMZfEwDQYJKoZIhvcNAQEL\nBQAwODEXMBUGA1UEAwwORXhhbXBsZSBTaWduZXIxEDAOBgNVBAoMB0V4YW1wbGUx\nCzAJBgNVBAYTAkVHMB4XDTI2MTEyNTIwMTQxMVoXDTM2MTEyMjIwMTQxMVowODEX\nMBUGA1UEAwwORXhhbXBsZSBTaWduZXIxEDAOBgNVBAoMB0V4YW1wbGUxCzAJBgNV\nBAYTAkVHMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHqG4zwoA2vNU5fCRi\nK0zZu2xpt5K7Q3QZieDFrsvqoC2NXAecJgvSOfMYcSaFAmVfLGPmJ8dAlRNu1LTl\nNFtEz+Ra5m0BEu0F9yXWMbipLhITrlEQrXOcFLHnSIqPnVITziNXBI58ByDrOyu+\nZ41snaRS908HyoBL+GOJDLLvuwIDAQABo1MwUTAdBgNVHQ4EFgQU10o1sjZsPS1C\nZkBFr6RIYbRrv8MwHwYDVR0jBBgwFoAU10o1sjZsPS1CZkBFr6RIYbRrv8MwDwYD\nVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQA9s5xrbfCJ/zjytbOVKEIp\n2LTuILFQ6+VGQ8fPb4A1b4sfK4cIz1IvcDvml0vbW2oaHg52hb9731rmyf+amDMq\n01AQy5onjyT4HHog/Al72DourQIRnJzxlJ1TgkpBfYaFYkqjRfeSkgpl/33EkdXX\nVNiF6NGfCmPc//ePb+R94Q==\n-----END CERTIFICATE-----"
 }
}'

    
Request
Step 1 for USB tokens or HSMs: get the bytes your token must sign. Sign signed_attributes (base64) with your token as RSA SHA-256 (PKCS#1 v1.5), then call /signatures/complete. signed_attributes_sha256 is the digest if your token signs a pre-computed hash.
Endpoint ID: 42180
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42180/prepare+token+signature
INPUT PARAMETERS

Prepare Token Signature — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "signed_attributes": "MYH5MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwUwHAYJKoZIhvcNAQkFMQ8XDTI2MTEyNTIwMTgwMFowLwYJKoZIhvcNAQkEMSIEIMQtp6clMujnQMJVAS5jylV9O98Z1YgCBEH8+ob4AQpoMIGNBgsqhkiG9w0BCRACLzF+MHwwejB4BCANRW03B0DJ1RxYsugnrWD/HEG+c+WQnw6TD700Amxi/zBUMDykOjA4MRcwFQYDVQQDDA5FeGFtcGxlIFNpZ25lcjEQMA4GA1UECgwHRXhhbXBsZTELMAkGA1UEBhMCRUcCFHbKnt/2b1kBfNDJZ0f95Vz4jGXx",
        "signed_attributes_sha256": "5kn2g1/XX/cFYU3liFt9SG6A6xNRSakq7BXJ29wArA8=",
        "document_sha256": "c42da7a72532e8e740c255012e63ca557d3bdf19d588020441fcfa86f8010a68"
    },
    "meta": {
        "request_id": "req_3cda4bc1f263902d",
        "version": "v1"
    }
}
Prepare Token Signature — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42180/prepare+token+signature' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "document": {
  "internalID": "INV-1",
  "totalAmount": 114
 },
 "certificate": "-----BEGIN CERTIFICATE-----\nMIICTDCCAbWgAwIBAgIUdsqe3/ZvWQF80MlnR/3lXPiMZfEwDQYJKoZIhvcNAQEL\nBQAwODEXMBUGA1UEAwwORXhhbXBsZSBTaWduZXIxEDAOBgNVBAoMB0V4YW1wbGUx\nCzAJBgNVBAYTAkVHMB4XDTI2MTEyNTIwMTQxMVoXDTM2MTEyMjIwMTQxMVowODEX\nMBUGA1UEAwwORXhhbXBsZSBTaWduZXIxEDAOBgNVBAoMB0V4YW1wbGUxCzAJBgNV\nBAYTAkVHMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHqG4zwoA2vNU5fCRi\nK0zZu2xpt5K7Q3QZieDFrsvqoC2NXAecJgvSOfMYcSaFAmVfLGPmJ8dAlRNu1LTl\nNFtEz+Ra5m0BEu0F9yXWMbipLhITrlEQrXOcFLHnSIqPnVITziNXBI58ByDrOyu+\nZ41snaRS908HyoBL+GOJDLLvuwIDAQABo1MwUTAdBgNVHQ4EFgQU10o1sjZsPS1C\nZkBFr6RIYbRrv8MwHwYDVR0jBBgwFoAU10o1sjZsPS1CZkBFr6RIYbRrv8MwDwYD\nVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQA9s5xrbfCJ/zjytbOVKEIp\n2LTuILFQ6+VGQ8fPb4A1b4sfK4cIz1IvcDvml0vbW2oaHg52hb9731rmyf+amDMq\n01AQy5onjyT4HHog/Al72DourQIRnJzxlJ1TgkpBfYaFYkqjRfeSkgpl/33EkdXX\nVNiF6NGfCmPc//ePb+R94Q==\n-----END CERTIFICATE-----"
}'

    
Request
Step 2 for USB tokens or HSMs: build the CAdES-BES and attach it.
Endpoint ID: 42181
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42181/complete+token+signature
INPUT PARAMETERS

Complete Token Signature — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "signature": "MIIEfgYJKoZIhvcNAQcCoIIEbzCCBGsCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIICUDCCAkwwggG1oAMCAQICFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUAMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFt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cjEQMA4GA1UECgwHRXhhbXBsZTELMAkGA1UEBhMCRUcCFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUABIGAKdf9b9AzRgj6s1d4JrIuL3bM/8R4usEkGtlDuD8kBMQW1shoZSyF5aHM85zknRsw1PAAMyWM1uQHUazqCjubzNKiHEDMdAFgrhCJvY1NUDPXCn6K3j23IhrhJQjy9EP9ixYy...",
        "document": {
            "internalID": "INV-1",
            "totalAmount": 114,
            "signatures": [
                {
                    "signatureType": "I",
                    "value": "MIIEfgYJKoZIhvcNAQcCoIIEbzCCBGsCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIICUDCCAkwwggG1oAMCAQICFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUAMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRzAeFw0yNjExMjUyMDE0MTFaFw0zNjExMjIyMDE0MTFaMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRzCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAx6huM8KANrzVOXwkYitM2btsabeSu0N0GYngxa7L6qAtjVwHnCYL0jnzGHEmhQJlXyxj5ifHQJUTbtS05TRbRM/kWuZtARLtBfcl1jG4qS4SE65REK1znBSx50iKj51SE84jVwSOfAcg6zsrvmeNbJ2kUvdPB8qAS/hjiQyy77sCAwEAAaNTMFEwHQYDVR0OBBYEFNdKNbI2bD0tQmZARa+kSGG0a7/DMB8GA1UdIwQYMBaAFNdKNbI2bD0tQmZARa+kSGG0a7/DMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADgYEAPbOca23wif848rWzlShCKdi07iCxUOvlRkPHz2+ANW+LHyuHCM9SL3A75pdL21tqGh4OdoW/e99a5sn/mpgzKtNQEMuaJ48k+Bx6IPwJe9g6Lq0CEZyc8ZSdU4JKQX2GhWJKo0X3kpIKZf99xJHV11TYhejRnwpj3P/3j2/kfeExggH0MIIB8AIBATBQMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRwIUdsqe3/ZvWQF80MlnR/3lXPiMZfEwCwYJYIZIAWUDBAIBoIH5MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwUwHAYJKoZIhvcNAQkFMQ8XDTI2MTEyNTIwMTQxMlowLwYJKoZIhvcNAQkEMSIEIMQtp6clMujnQMJVAS5jylV9O98Z1YgCBEH8+ob4AQpoMIGNBgsqhkiG9w0BCRACLzF+MHwwejB4BCANRW03B0DJ1RxYsugnrWD/HEG+c+WQnw6TD700Amxi/zBUMDykOjA4MRcwFQYDVQQDDA5FeGFtcGxlIFNpZ25lcjEQMA4GA1UECgwHRXhhbXBsZTELMAkGA1UEBhMCRUcCFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUABIGAKdf9b9AzRgj6s1d4JrIuL3bM/8R4usEkGtlDuD8kBMQW1shoZSyF5aHM85zknRsw1PAAMyWM1uQHUazqCjubzNKiHEDMdAFgrhCJvY1NUDPXCn6K3j23IhrhJQjy9EP9ixYy..."
                }
            ]
        },
        "document_json": "{\"internalID\":\"INV-1\",\"totalAmount\":114,\"signatures\":[{\"signatureType\":\"I\",\"value\":\"MIIEfgYJKoZIhvcNAQcCoIIEbzCCBGsCAQMxDTALBglghkgBZQMEAgEwCwYJKoZIhvcNAQcFoIICUDCCAkwwggG1oAMCAQICFHbKnt/2b1kBfNDJZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUAMDgxFzAVBgNVBAMMDkV4YW1wbGUgU2lnbmVyMRAwDgYDVQQKDAdFeGFtcGxlMQswCQYDVQQGEwJFRzAeFw0yNjExMjUyMDE0MTFaFw0zNjExMjIyMDE0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JZ0f95Vz4jGXxMA0GCSqGSIb3DQEBCwUABIGAKdf9b9AzRgj6s1d4JrIuL3bM/8R4usEkG..."
    },
    "meta": {
        "request_id": "req_24eb42a4d9ddc0c4",
        "version": "v1"
    }
}
Complete Token Signature — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42181/complete+token+signature' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "document": {
  "internalID": "INV-1",
  "totalAmount": 114
 },
 "certificate": "-----BEGIN CERTIFICATE-----\nMIICTDCCAbWgAwIBAgIUdsqe3/ZvWQF80MlnR/3lXPiMZfEwDQYJKoZIhvcNAQEL\nBQAwODEXMBUGA1UEAwwORXhhbXBsZSBTaWduZXIxEDAOBgNVBAoMB0V4YW1wbGUx\nCzAJBgNVBAYTAkVHMB4XDTI2MTEyNTIwMTQxMVoXDTM2MTEyMjIwMTQxMVowODEX\nMBUGA1UEAwwORXhhbXBsZSBTaWduZXIxEDAOBgNVBAoMB0V4YW1wbGUxCzAJBgNV\nBAYTAkVHMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHqG4zwoA2vNU5fCRi\nK0zZu2xpt5K7Q3QZieDFrsvqoC2NXAecJgvSOfMYcSaFAmVfLGPmJ8dAlRNu1LTl\nNFtEz+Ra5m0BEu0F9yXWMbipLhITrlEQrXOcFLHnSIqPnVITziNXBI58ByDrOyu+\nZ41snaRS908HyoBL+GOJDLLvuwIDAQABo1MwUTAdBgNVHQ4EFgQU10o1sjZsPS1C\nZkBFr6RIYbRrv8MwHwYDVR0jBBgwFoAU10o1sjZsPS1CZkBFr6RIYbRrv8MwDwYD\nVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQA9s5xrbfCJ/zjytbOVKEIp\n2LTuILFQ6+VGQ8fPb4A1b4sfK4cIz1IvcDvml0vbW2oaHg52hb9731rmyf+amDMq\n01AQy5onjyT4HHog/Al72DourQIRnJzxlJ1TgkpBfYaFYkqjRfeSkgpl/33EkdXX\nVNiF6NGfCmPc//ePb+R94Q==\n-----END CERTIFICATE-----",
 "signed_attributes": "MYH5MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwUwHAYJKoZIhvcNAQkFMQ8XDTI2MTEyNTIwMTQxMlowLwYJKoZIhvcNAQkEMSIEIMQtp6clMujnQMJVAS5jylV9O98Z1YgCBEH8+ob4AQpoMIGNBgsqhkiG9w0BCRACLzF+MHwwejB4BCANRW03B0DJ1RxYsugnrWD/HEG+c+WQnw6TD700Amxi/zBUMDykOjA4MRcwFQYDVQQDDA5FeGFtcGxlIFNpZ25lcjEQMA4GA1UECgwHRXhhbXBsZTELMAkGA1UEBhMCRUcCFHbKnt/2b1kBfNDJZ0f95Vz4jGXx",
 "signature_value": "Kdf9b9AzRgj6s1d4JrIuL3bM/8R4usEkGtlDuD8kBMQW1shoZSyF5aHM85zknRsw1PAAMyWM1uQHUazqCjubzNKiHEDMdAFgrhCJvY1NUDPXCn6K3j23IhrhJQjy9EP9ixYy/c4ZyiDORCKGTr5/iK1Dsx20rClcBq+/MzJG35E="
}'

    
Request
Build an ETA invoice, credit or debit note with all totals calculated; signs it . Calculates salesTotal, discounts, netTotal, taxable fees, T1-T20 taxes, line totals and document totals the way ETA validates them.
Endpoint ID: 42182
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42182/build+invoice
INPUT PARAMETERS

Build Invoice — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "signed": false,
        "sha256_hex": "f1df6bda75b6157f4869b373fc58cb393dd78f5434d22ec11ca1a1839b69d9aa",
        "document": {
            "issuer": {
                "address": {
                    "branchID": "0",
                    "country": "EG",
                    "governate": "Cairo",
                    "regionCity": "Nasr City",
                    "street": "1 Abbas St",
                    "buildingNumber": "10"
                },
                "type": "B",
                "id": "100324932",
                "name": "Seller Co"
            },
            "receiver": {
                "address": {
                    "country": "EG",
                    "governate": "Cairo",
                    "regionCity": "Nasr City",
                    "street": "1 Abbas St",
                    "buildingNumber": "10"
                },
                "type": "B",
                "id": "313717919",
                "name": "Buyer Co"
            },
            "documentType": "i",
            "documentTypeVersion": "1.0",
            "dateTimeIssued": "2026-11-25T10:00:00Z",
            "taxpayerActivityCode": "4620",
            "internalID": "INV-1",
            "invoiceLines": [
                {
                    "description": "Laptop",
                    "itemType": "EGS",
                    "itemCode": "EG-100324932-1",
                    "unitType": "EA",
                    "quantity": 2,
                    "salesTotal": 2000,
                    "total": 2166,
                    "valueDifference": 0,
                    "totalTaxableFees": 0,
                    "netTotal": 1900,
                    "itemsDiscount": 0,
                    "unitValue": {
                        "currencySold": "EGP",
                        "amountEGP": 1000
                    },
                    "discount": {
                        "rate": 0,
                        "amount": 100
                    },
                    "taxableItems": [
                        {
                            "taxType": "T1",
                            "amount": 266,
                            "subType": "V009",
                            "rate": 14
                        }
                    ]
                }
            ],
            "totalDiscountAmount": 100,
            "totalSalesAmount": 2000,
            "netAmount": 1900,
            "taxTotals": [
                {
                    "taxType": "T1",
                    "amount": 266
                }
            ],
            "totalAmount": 2166,
            "extraDiscountAmount": 0,
            "totalItemsDiscountAmount": 0
        },
        "document_json": "{\"issuer\":{\"address\":{\"branchID\":\"0\",\"country\":\"EG\",\"governate\":\"Cairo\",\"regionCity\":\"Nasr City\",\"street\":\"1 Abbas St\",\"buildingNumber\":\"10\"},\"type\":\"B\",\"id\":\"100324932\",\"name\":\"Seller Co\"},\"receiver\":{\"address\":{\"country\":\"EG\",\"governate\":\"Cairo\",\"regionCity\":\"Nasr City\",\"street\":\"1 Abbas St\",\"buildingNumber\":\"10\"},\"type\":\"B\",\"id\":\"313717919\",\"name\":\"Buyer Co\"},\"documentType\":\"i\",\"documentTypeVersion\":\"1.0\",\"dateTimeIssued\":\"2026-11-25T10:00:00Z\",\"taxpayerActivityCode\":\"4620\",\"internalID\":\"INV-1\",\"invoiceLines\":[{\"description\":\"Laptop\",\"itemType\":\"EGS\",\"itemCode\":\"EG-100324932-1\",\"unitType\":\"EA\",\"quantity\":2,\"salesTotal\":2000,\"total\":2166,\"valueDifference\":0,\"totalTaxableFees\":0,\"netTotal\":1900,\"itemsDiscount\":0,\"unitValue\":{\"currencySold\":\"EGP\",\"amountEGP\":1000},\"discount\":{\"rate\":0,\"amount\":100},\"taxableItems\":[{\"taxType\":\"T1\",\"amount\":266,\"subType\":\"V009\",\"rate\":14}]}],\"totalDiscountAmount\":100,\"totalSalesAmount\":2000,\"netAmount\":1900,\"taxTotals\":[{\"taxType\":\"T1\",\"amount\":266}],\"totalAmount\":2166,\"extraDiscountAmount\":0,\"totalItemsDiscountAmount\":0}"
    },
    "meta": {
        "request_id": "req_14f498ed46be2202",
        "version": "v1"
    }
}
Build Invoice — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42182/build+invoice' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "document_type": "invoice",
 "issuer": {
  "type": "B",
  "id": "100324932",
  "name": "Seller Co",
  "address": {
   "country": "EG",
   "governate": "Cairo",
   "region_city": "Nasr City",
   "street": "1 Abbas St",
   "building_number": "10",
   "branch_id": "0"
  }
 },
 "receiver": {
  "type": "B",
  "id": "313717919",
  "name": "Buyer Co",
  "address": {
   "country": "EG",
   "governate": "Cairo",
   "region_city": "Nasr City",
   "street": "1 Abbas St",
   "building_number": "10"
  }
 },
 "date_time_issued": "2026-11-25T10:00:00Z",
 "activity_code": "4620",
 "internal_id": "INV-1",
 "lines": [
  {
   "description": "Laptop",
   "item_type": "EGS",
   "item_code": "EG-100324932-1",
   "unit_type": "EA",
   "quantity": 2,
   "unit_price": 1000,
   "discount_amount": 100,
   "taxes": [
    {
     "type": "T1",
     "sub_type": "V009",
     "rate": 14
    }
   ]
  }
 ]
}'

    
Request
Build an e-receipt v1.2 with totals, its UUID and the QR text.
Endpoint ID: 42183
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42183/build+receipt
INPUT PARAMETERS

Build Receipt — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "uuid": "78db57a166eb2ed3631b14ef2de585000c9d88c3ab31f894a72f002b98b94b66",
        "receipt": {
            "header": {
                "dateTimeIssued": "2026-11-25T10:00:00Z",
                "receiptNumber": "R-1",
                "uuid": "78db57a166eb2ed3631b14ef2de585000c9d88c3ab31f894a72f002b98b94b66",
                "previousUUID": "",
                "currency": "EGP",
                "exchangeRate": 0
            },
            "documentType": {
                "receiptType": "s",
                "typeVersion": "1.2"
            },
            "seller": {
                "rin": "100324932",
                "companyTradeName": "My Shop",
                "branchCode": "0",
                "branchAddress": {
                    "country": "EG",
                    "governate": "Cairo",
                    "regionCity": "Nasr City",
                    "street": "1 Abbas St",
                    "buildingNumber": "10"
                },
                "deviceSerialNumber": "POS-1",
                "activityCode": "4620"
            },
            "buyer": {
                "type": "P"
            },
            "itemData": [
                {
                    "internalCode": "A1",
                    "description": "Tea",
                    "itemType": "EGS",
                    "itemCode": "EG-100324932-2",
                    "unitType": "EA",
                    "quantity": 3,
                    "unitPrice": 10,
                    "netSale": 30,
                    "totalSale": 30,
                    "total": 34.2,
                    "taxableItems": [
                        {
                            "taxType": "T1",
                            "amount": 4.2,
                            "subType": "V009",
                            "rate": 14
                        }
                    ]
                }
            ],
            "totalSales": 30,
            "totalCommercialDiscount": 0,
            "totalItemsDiscount": 0,
            "netAmount": 30,
            "feesAmount": 0,
            "totalAmount": 34.2,
            "taxTotals": [
                {
                    "taxType": "T1",
                    "amount": 4.2
                }
            ],
            "paymentMethod": "C"
        },
        "qr": "https://preprod.invoicing.eta.gov.eg/receipts/search/78db57a166eb2ed3631b14ef2de585000c9d88c3ab31f894a72f002b98b94b66/share/2026-11-25T10:00:00Z#Total:34.2,IssuerRIN:100324932"
    },
    "meta": {
        "request_id": "req_82b253d7dd45254f",
        "version": "v1"
    }
}
Build Receipt — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42183/build+receipt' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "date_time_issued": "2026-11-25T10:00:00Z",
 "receipt_number": "R-1",
 "previous_uuid": "",
 "seller": {
  "rin": "100324932",
  "company_trade_name": "My Shop",
  "branch_code": "0",
  "branch_address": {
   "country": "EG",
   "governate": "Cairo",
   "region_city": "Nasr City",
   "street": "1 Abbas St",
   "building_number": "10"
  },
  "device_serial_number": "POS-1",
  "activity_code": "4620"
 },
 "buyer": {
  "type": "P"
 },
 "payment_method": "C",
 "lines": [
  {
   "internal_code": "A1",
   "description": "Tea",
   "item_type": "EGS",
   "item_code": "EG-100324932-2",
   "unit_type": "EA",
   "quantity": 3,
   "unit_price": 10,
   "taxes": [
    {
     "type": "T1",
     "sub_type": "V009",
     "rate": 14
    }
   ]
  }
 ]
}'

    
Request
Compute the UUID of an e-receipt you built yourself.
Endpoint ID: 42184
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42184/receipt+uuid
INPUT PARAMETERS

Receipt UUID — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "uuid": "3625fc411d75fd711d1e84ec6454c7cbc8234f42297403101e984739d1a285bd"
    },
    "meta": {
        "request_id": "req_3e9a72664256f725",
        "version": "v1"
    }
}
Receipt UUID — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42184/receipt+uuid' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "receipt": {
  "header": {
   "dateTimeIssued": "2026-11-25T10:00:00Z",
   "receiptNumber": "R-1",
   "uuid": "",
   "previousUUID": ""
  },
  "totalAmount": 34.2
 }
}'

    
Request
Log in to ETA as an ERP system client credentials; token lasts 1 hour.
Endpoint ID: 42185
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42185/erp+login
INPUT PARAMETERS

ERP Login — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "access_token": "demo.JS07ENW3AHRZ6DMV29GQY5CKT18FPX4BJS07ENW3",
        "expires_in": 3600,
        "token_type": "Bearer"
    },
    "meta": {
        "request_id": "req_7a7b90ba8d6ede91",
        "version": "v1"
    }
}
ERP Login — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42185/erp+login' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "client_id": "YOUR_CLIENT_ID",
 "client_secret": "YOUR_CLIENT_SECRET"
}'

    
Request
Log in a POS device for e-receipts. Works with the ETA preprod, production and demo environments.
Endpoint ID: 42186
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42186/pos+login
INPUT PARAMETERS

POS Login — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "access_token": "demo.JS07ENW3AHRZ6DMV29GQY5CKT18FPX4BJS07ENW3",
        "expires_in": 3600,
        "token_type": "Bearer"
    },
    "meta": {
        "request_id": "req_aec458290e296edd",
        "version": "v1"
    }
}
POS Login — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42186/pos+login' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "client_id": "YOUR_CLIENT_ID",
 "client_secret": "YOUR_CLIENT_SECRET",
 "pos_serial": "POS-1",
 "pos_os_version": "android-14"
}'

    
Request
Submit signed documents to ETA up to 100 per call. Send documents_json (array of the document_json strings we returned) to keep signatures valid byte-for-byte, or documents as objects.
Endpoint ID: 42187
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42187/submit+documents
INPUT PARAMETERS

Submit Documents — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 202,
        "data": {
            "submissionUUID": "4BJS07ENW3AHRZ6DMV29GQY5CK",
            "acceptedDocuments": [
                {
                    "uuid": "4BJS07ENW3AHRZ6DMV29GQY5CK",
                    "longId": "MV29GQY5CKT18FPX4BJS07ENW3AHRZ6DMV29GQY5CK",
                    "internalId": "INV-1"
                }
            ],
            "rejectedDocuments": [],
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_14a61af93f89810b",
        "version": "v1"
    }
}
Submit Documents — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42187/submit+documents' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "auth": {
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
 },
 "documents_json": [
  "{\"internalID\":\"INV-1\"}"
 ]
}'

    
Request
Status of a document submission. Works with the ETA preprod, production and demo environments.
Endpoint ID: 42188
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42188/submission+status
INPUT PARAMETERS

Submission Status — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 200,
        "data": {
            "uuid": "4BJS07ENW3AHRZ6DMV29GQY5CK",
            "documentCount": 1,
            "dateTimeReceived": "2026-11-25T20:23:48.251Z",
            "overallStatus": "valid",
            "documentSummary": [
                {
                    "uuid": "4BJS07ENW3AHRZ6DMV29GQY5CK",
                    "internalId": "INV-1",
                    "status": "valid",
                    "total": 2147
                }
            ],
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_76343cffec179ebf",
        "version": "v1"
    }
}
Submission Status — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42188/submission+status' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "auth": {
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
 },
 "submission_uuid": "SUBMISSION_UUID"
}'

    
Request
Full details and validation results of one document.
Endpoint ID: 42189
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42189/document+details
INPUT PARAMETERS

Document Details — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 200,
        "data": {
            "status": "valid",
            "validationResults": {
                "status": "Valid",
                "validationSteps": []
            },
            "document": [],
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_68575335926d31bd",
        "version": "v1"
    }
}
Document Details — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42189/document+details' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "auth": {
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
 },
 "uuid": "DOCUMENT_UUID"
}'

    
Request
Recent sent or received documents last 30 days.
Endpoint ID: 42190
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42190/recent+documents
INPUT PARAMETERS

Recent Documents — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 200,
        "data": {
            "result": [],
            "metadata": {
                "totalPages": 0,
                "totalCount": 0
            },
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_f25919c17217502f",
        "version": "v1"
    }
}
Recent Documents — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42190/recent+documents' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "auth": {
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
 },
 "direction": "Sent"
}'

    
Request
Cancel a document you issued. Works with the ETA preprod, production and demo environments.
Endpoint ID: 42191
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42191/cancel+document
INPUT PARAMETERS

Cancel Document — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 200,
        "data": {
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_0482a0d0bb23a367",
        "version": "v1"
    }
}
Cancel Document — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42191/cancel+document' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "auth": {
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
 },
 "uuid": "DOCUMENT_UUID",
 "reason": "Wrong buyer details"
}'

    
Request
Reject a document you received. Works with the ETA preprod, production and demo environments.
Endpoint ID: 42192
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42192/reject+document
INPUT PARAMETERS

Reject Document — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 200,
        "data": {
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_11929856efb7c7da",
        "version": "v1"
    }
}
Reject Document — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42192/reject+document' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "auth": {
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
 },
 "uuid": "DOCUMENT_UUID",
 "reason": "Wrong invoice details"
}'

    
Request
Submit e-receipts up to 500 per call with a POS token.
Endpoint ID: 42193
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42193/submit+receipts
INPUT PARAMETERS

Submit Receipts — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 202,
        "data": {
            "submissionUUID": "8FPX4BJS07ENW3AHRZ6DMV29GQY5CK",
            "acceptedDocuments": [
                {
                    "uuid": "ahrz6dmv29gqy5ckt18fpx4bjs07enw3ahrz6dmv29gqy5ckt18fpx4bjs07enw3",
                    "longId": "JS07ENW3AHRZ6DMV29GQY5CKT18FPX4BJS07ENW3",
                    "receiptNumber": "R-1"
                }
            ],
            "rejectedDocuments": [],
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_feaa1403659b56ee",
        "version": "v1"
    }
}
Submit Receipts — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42193/submit+receipts' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "access_token": "POS_ACCESS_TOKEN",
 "receipts": [
  {
   "header": {
    "receiptNumber": "R-1"
   }
  }
 ]
}'

    
Request
Status of an e-receipt submission. Works with the ETA preprod, production and demo environments.
Endpoint ID: 42194
POST https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42194/receipt+submission+status
INPUT PARAMETERS

Receipt Submission Status — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "data": {
        "ok": true,
        "eta_http_status": 200,
        "data": {
            "submissionuuid": "8FPX4BJS07ENW3AHRZ6DMV29GQY5CK",
            "status": "Valid",
            "receiptsCount": 1,
            "invalidReceiptCount": 0,
            "receipts": [],
            "demo": true
        }
    },
    "meta": {
        "request_id": "req_a4e5b3ba1af4993e",
        "version": "v1"
    }
}
Receipt Submission Status — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/15624/egypt+eta+e-invoice+and+e-receipt+api/42194/receipt+submission+status' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{
 "environment": "demo",
 "access_token": "POS_ACCESS_TOKEN",
 "submission_uuid": "SUBMISSION_UUID"
}'

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Egypt ETA E-Invoice and E-Receipt API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

Egypt ETA e-invoice and e-receipt API: build documents with all totals, CAdES-BES signing (key or USB token), receipt UUID and QR, submit, cancel and track with ETA.

Egypt ETA E-Invoice and E-Receipt API FAQs

It returns the ETA-canonical serialized document string, its SHA-256 digest in `sha256_hex`, and the serialized string’s character length in `length`. Use the digest to verify the exact content being prepared for signing.

Pass the exact `document_json` returned after signing. For batch submissions, use `documents_json` containing those returned strings; changing the serialized content can invalidate the signature. The API also accepts document objects, but the returned strings are intended to preserve the signed representation byte-for-byte.

The invoice builder calculates line and document totals, including sales total, discounts, net total, taxable fees, and taxes identified by codes T1–T20. Its response includes the built document and a SHA-256 digest; `signed` indicates whether the returned document is signed.

The response includes the built receipt, its UUID, and QR text. The receipt contains structured header, document-type, seller, and transaction data; for example, the header includes the receipt number, issue date, currency, and UUID.

Submission Status summarizes a batch, including its overall status and per-document status. Document Details returns one document’s status, validation results, and document content. Use the batch response to identify documents to inspect individually.

Submission responses separate `acceptedDocuments` from `rejectedDocuments`. Accepted entries include identifiers such as UUID and internal ID for invoices, or UUID and receipt number for receipts. Check the relevant submission-status endpoint for processing results; an accepted submission is not itself a final validity result.

It returns a result list of recent sent or received documents, plus metadata such as `totalCount` and `totalPages`. An empty `result` with zero counts means no matching documents were returned for the request.

Use ERP Login to obtain a bearer token for ERP-client document workflows. Use POS Login for e-receipt workflows. Both responses provide an `access_token`, `token_type`, and `expires_in`; the example shows a Bearer token with a 3,600-second lifetime.

Yes. You register your ERP system on the ETA portal to get a client ID and secret, and you need an e-seal or signing certificate from an Egyptian certificate authority. The API does the serialization, signing, totals and the calls to ETA for you.

Yes. Call Prepare Token Signature to get the exact bytes your token must sign (RSA SHA-256), sign them on your machine, then call Complete Token Signature. Your private key never leaves the token.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs