11.5. Sending documents with Egypt ACI envelope

Before we start with sending documents in Egypt ACI envelopes our test company has to be verified. For this example please contact CargoX support, to manually verify your test companies. In this example we will use our stored blockchain keys we got in creating new companies section.

Please open Egypt ACI envelope folder in Postman Integration Examples. Creating Envelope, adding files, sealing envelope and sending are very similar as in creating new companies section. Everything is set in examples, so you just click through it.

Tip

We don't describe specific calls and responses here - it's easy to see them right in Postman. On every request call you can see what call is being made, what headers, body and parameters we send and what response we fetch. Also check Tests tab - there we check the response and parse some data from it.

11.5.1. Creating Egypt ACI envelope

First we create Egypt ACI envelope. It is very similar as in Sending documents with blockchain support section, with few important changes:

  • specialization_type is acid

  • recipient_id is fixed to MTS-NAFEZA. We get their inbox id in call Collections list in Company and contact creation folder.

  • acid_number is 19-digit ACID number. It is generated in Pre-request Script in postman example.

../_images/acid1.png

If you log-on to web app as Company1 user, you can see that Egypt ACI envelope is generated.

../_images/acid2.png

11.5.2. Adding file and type

Next we add file. For Egypt ACI we use special pdf: nafeza-sample.pdf. Please download it and set it up in body of Add File request.

../_images/acid3.png

When we set doc type, it is important to set create_on_blockchain_override to true, since we have to send all files to Nafeza with blockchain support.

../_images/acid4.png

11.5.3. Sign hash with blockchain key and send envelope

Signing hash and sending are exactly the same as in Sending documents with blockchain support section, so please refer to that documentation. If everything is OK, we are rewarded with successfuly delivered envelope with document to Nalfeza.

../_images/acid5.png