11.3. Create Envelopes and send them

Now we have created and confirm contact between test companies we can continue with creating envelopes with documents we want to send.

11.3.1. Egypt ACI envelope

If you want to read more info about egypt-aci, please go to: https://help.cargox.digital/en/egypt-aci/.

Now we will create Egypt ACI envelope. Just click on ACI Egypt Envelope -> Create ACI Egypt Envelope. The only thing we have to add is some pdf document.

Tip

For testing purpose, we use test ACID numbers - already inserted in Postman collection variables. If this is missing or does not work, please contact CargoX support.

../_images/aci_env1.png

Tip

Since we want to send blockchain supported document, we need to have some credits in our company, else we get an 407 - Unknown status with body:

{
   "status": "Not enough credits."
}

If you are working in sandbox environment please contact CargoX support, to top up you test company with some credits.

After we click send, we can immediately see on web app that envelope has been created. Click on the Drafts tab and open envelope. As we can see, recipient is MTS-NAFEZA. We can also try and Transfer this new envelope.

../_images/envelope2.png

Next we sign relayed transaction hash we got from previous call with comp1 private key. We will use docker image we installed in getting postman ready. Everything is set up, we just need to click send button. all the data will be automatically retrieved and saved to collection variables!

../_images/aci_env2.png

The only thing left to do is to actually send the envelope. We head to ACI Egypt Envelope -> Send Envelope.`

../_images/aci_env3.png

As we can see in our web app, the envelope was delivered to Nafeza.

../_images/aci_env4.png

11.3.2. Blockchain envelope

Adding and sending blockchain envelope is similar to ACI envelope. The only difference is that we do not have to insert ACI number, but we have to add recipient. in postman example everything is already set up, the only thing to add is some pdf document.

Just click on Blockchain Envelope -> Create Blockchain Envelope. The only thing we have to add is some pdf document.

../_images/blockchian_env.png

Tip

Since we want to send blockchain supported document, we need to have some credits in our company, else we get an 407 - Unknown status with body:

{
   "status": "Not enough credits."
}

If you are working in sandbox environment please contact CargoX support, to top up you test company with some credits.

After we click send, we can immediately see on web app that envelope has been created. We continue to click on Send Envelope and Sign Document Hash

As we can see in our web app, the envelope was delivered to our contact test company 2.

../_images/blockchian_env2.png

11.3.3. Standard Envelope

Next we will create Standard envelope. Just click on Create Envelope -> Standard Envelope. Again, the only thing we have to add is some pdf document.

../_images/standard_env.png

Tip

Standard envelope cen be send with or without blockchain support. Difference is in the document type. Some have full blockchain support, some partial and some none. When we create envelopes through API calls, we set up document type in the documents_metadata parameter - just check postman examples!

After we click send, we can immediately see on wep app that envelope has been created. Click on the Drafts tab and open envelope. As we can see, the recipient now is Comp2 from our Company and contact creation. We can also try and Transfer this new envelope.

../_images/envelope4.png