GOAL: I would like to retrieve the document URL from the box-sign api request and have the e-signature email sent out.
Option 1:
Option 1 sends a e-signature request email but no URL in the request
payload = {
“template_id”: template_id,
“email_message”: ‘message’,
“email_subject”: subject,
“days_valid”: 5,
“parent_folder”: {
“id”: folder_id,
“type”: “folder”
},
“signers”: [
{
“email”: email,
“role”: “signer”,
},
],
“prefill_tags”: prefill_tags
}
Option 2:
Option 2 DOES NOT send a e-signature request email but there IS* a URL in the request
payload = {
“template_id”: template_id,
“email_message”: ‘message’,
“email_subject”: subject,
“days_valid”: 5,
“parent_folder”: {
“id”: folder_id,
“type”: “folder”
},
“signers”: [
{
“email”: email,
“role”: “signer”,
“embed_url_external_user_id”: ‘1234’,
},
],
“prefill_tags”: prefill_tags
}
response = client.make_request(
‘POST’,
endpoint,
data=json.dumps(payload),
headers={‘Content-Type’: ‘application/json’}
)
response_data = response.json()
iframeable_embed_url = response_data[‘signers’][1][‘embed_url’]
NOTE: embed_url_external_user_id is the only different between the two methods