API References
...
Send for e-Sign
Send Quote for e-Signature
1 min
code examples curl location globoff 'https //api nue io/v1/cpq/quotes/{quoteid}\ esign' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data raw '{ "recipients" \[ { "tag" "customer", "name" "jack chen", "email" "jack chen\@company com", "role" "customer", "action" "needs to sign" } ], "email" { "subject" "order form for your e signature (sent by api)", "message" "this is a request for your electronic signature, please review your order form and electronically sign by following the link below " } }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "recipients" \[ { "tag" "customer", "name" "jack chen", "email" "jack chen\@company com", "role" "customer", "action" "needs to sign" } ], "email" { "subject" "order form for your e signature (sent by api)", "message" "this is a request for your electronic signature, please review your order form and electronically sign by following the link below " } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api nue io/v1/cpq/quotes/{quoteid}\ esign", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api nue io/v1/cpq/quotes/{quoteid}\ esign") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "recipients" \[ { "tag" "customer", "name" "jack chen", "email" "jack chen\@company com", "role" "customer", "action" "needs to sign" } ], "email" { "subject" "order form for your e signature (sent by api)", "message" "this is a request for your electronic signature, please review your order form and electronically sign by following the link below " } }) response = https request(request) puts response read body import requests import json url = "https //api nue io/v1/cpq/quotes/{quoteid}\ esign" payload = json dumps({ "recipients" \[ { "tag" "customer", "name" "jack chen", "email" "jack chen\@company com", "role" "customer", "action" "needs to sign" } ], "email" { "subject" "order form for your e signature (sent by api)", "message" "this is a request for your electronic signature, please review your order form and electronically sign by following the link below " } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // e signature job created successfully { "jobid" "2125b6ba 0aec 4a8d 8ca1 da0ec6bfedd4" }// bad request invalid quote or recipient information { "error" { "code" "invalid document", "message" "document not found or cannot be sent for signature", "details" \[ "" ] } }// unauthorized invalid or missing api key { "error" { "code" "invalid document", "message" "document not found or cannot be sent for signature", "details" \[ "" ] } }// not found quote does not exist { "error" { "code" "invalid document", "message" "document not found or cannot be sent for signature", "details" \[ "" ] } }