Last updated on
Apr 27, 2021
Objective
How to add the sender of the agreement as a First or Last signer in the agreement while creating agreement using REST API?
Environment
REST Swagger App V5
https://secure.echosign.com/public/docs/restapi/v5
Steps
In POST /agreements call, for signatureflow parameter you can Pass SENDER_SIGNS_FIRST or SENDER_SIGNS_LAST value to add the Sender as First or Last Signer Respectively.
Here is an example of the call in JSON format.
{ "documentCreationInfo": { "fileInfos": [ { "transientDocumentId":"3AAABLblqZhDiOdwNm22kkh3HHiYtfs14rC56vfc2p_znypT1u42h2vEHN7G72SNXZsFb4XIANMA6K4j_ytAkxdZjosm7EUx31RufZSRlpx2RnY5E0opqLNph5JlbCddfM1UaHXOcfuvnPTqypGH8Kdx0_Y5V85_L3bCSPEUxj7VWWvDxL4YK11EHU8_pEykbzl2_a-zwegJE1GqfG0cpeP_etSVbKHT66muv1fbVariVotl8yyZfk3i0N2DCJubCN8rwfK8tH_rA9hsxA9v38rnWr1WcEgi_d0ZCIi7HoQ-I9T3n9dm6hIEsTXdi0on7vEX_ZoLavQg*" } ], "name": "Test", "recipientSetInfos": [ { "recipientSetMemberInfos": [ { "email": "test@email.com" } ], "recipientSetRole": "SIGNER" } ], "signatureType": "ESIGN", "signatureFlow": "SENDER_SIGNS_FIRST" } }
Additional information
Following are few more values that you can use to pass into this Parameter depending on what signature flow you need.
'SENDER_SIGNATURE_NOT_REQUIRED' 'SEQUENTIAL' 'PARALLEL' 'SENDER_SIGNS_ONLY'