By default, the transaction workflow is parallel, which means all participants can perform their actions simultaneously. However, you can set a strict order of action between them, or mix parallel and sequential workflows.
Set an order between participants
To set an order of action between participants, send a request to POST /v1/transactions/{transaction_id}/sequencing
and specify which participants are before the others via the before
and after
arguments:
curl
https://api.universign.com/v1/transactions/tx_AWo949MOq0JE/sequencing \
-d before=john@company.com \
-d before=mary@company.com \
-d after=alice@company.com \
-d after=bob@company.com
In this workflow, John and Mary will be able to sign simultaneously and once they are finished, it will be Alice and Bob’s turn to sign. Bob and Alice will be able to sign simultaneously, too.
If you want Bob to sign after Alice for example, then you must send another request:
curl
https://api.universign.com/v1/transactions/tx_AWo949MOq0JE/sequencing \
-d before=alice@company.com \
-d after=bob@company.com
Remove an order between participants
You can remove a sequencing instruction between participants. To do so, add the delete
boolean to your request and set it to true
.
curl
https://api.universign.com/v1/transactions/tx_AWo949MOq0JE/sequencing \
-d before=alice@company.com \
-d after=bob@company.com \
-d delete=true