誰でもcreateAndSendenvelopeのサンプル頂点コードREST APIの例を与えることができます。私はデモDocuSignサンドボックスを使用していますが、不完全なエンベロープエラーが発生します。私はエンベロープに必要な要素をすべて持っているので、何が欠けているのか、正しい方法で作成していないのかを見ています。以下は私がリクエストとして渡したjsonです。「封筒は完成していません。完全な封筒には文書、受信者、タブ、件名が必要です。Content-Typeには境界パラメータは含まれていません。SalesForce DocuSign REST API createAndSendenvelope
--BOUNDARY
Content-Type: application/json
Content-Disposition: form-data
{
"status": "created",
"recipients": {
"signers": [{
"tabs": {
"signHeretabs": [{
"yPosition": "15",
"xPosition": "249",
"width": "100",
"tablabel": null,
"required": "TRUE",
"recipientId": "1",
"pagenumber": "1",
"fontSize": "Size12",
"font": "Calibri",
"documentid": "1",
"anchorYoffset": null,
"anchorXOffset": null,
"anchorUnits": "pixels",
"anchorString": "Sign Here",
"anchorIgnoreIfNotPresent": "true"
}],
"initialsTabs": [{
"yPosition": "45",
"xPosition": "249",
"width": "100",
"tablabel": null,
"required": "TRUE",
"receipientId": "1",
"pagenumber": "1",
"fontSize": "Size12",
"font": "Calibri",
"documentId": "1",
"anchorYoffset": null,
"anchorXOffset": null,
"anchorUnits": "pixels",
"anchorString": "Initials Here",
"anchorIgnoreIfNotPresent": "true"
}],
"dateSignedTabs": [{
"yPosition": "65",
"xPosition": "249",
"width": "100",
"tablabel": null,
"required": "TRUE",
"receipientid": "1",
"pagenumber": "1",
"fontSize": "Size12",
"font": "Calibri",
"documentid": "1",
"anchorYoffset": "-5",
"anchorXOffset": null,
"anchorUnits": "pixels",
"anchorString": "Date Signed",
"anchorIgnoreIfNotPresent": "true"
}]
},
"routingorder": "1",
"rolename": "First Signer",
"recipientid": "1",
"name": "Marisol L Testcase",
"email": "[email protected]"
}]
},
"emailsubject": "TestDocuSign Call",
"emailBlurb": "Test Email Blurb",
"documents": [{
"name": "Name1",
"fileExtension": ".txt",
"documentId": "1",
"documentBase64": null
}]
}
--BOUNDARY
Content-Type: application/octet-stream
Content-Disposition: file; filename="Name1"; documentid=1
Content-Transfer-Encoding: base64
VGhpcyBpcyBhIHNhbXBsZSBmaWxlIHVwbG9hZCBmb3IgdGVzdGluZy4=
--BOUNDARY--
アップデート:私は取得今境界パラメータエラーを取り除くと可能性「。。封筒が完了していない完全な封筒がドキュメント、受信者、タブ、および件名が必要ですエンベロープ定義が欠落している」
コードを投稿してください。 – obl
私のjson文字列を投稿に追加しようとすると何らかの理由で完全に奇妙に見えます。私はStacOverFlowへの初心者です他の方法をお勧めしますか? – Genius2007
私はあなたのコードを選択し、Ctrl + Kを押すと書式をとると思います – obl