docusign restapi v2를 사용하여 pdf 문서에서 봉투를 만들려고합니다. XML을 사용하여 봉투를 만들 수 있지만 JSON을 사용하려고하면 docusign에서 다음과 같은 오류가 발생합니다.Docusign : restapi v2의 문서에서 봉투를 만들 수 없습니다.
"errorCode": "ENVELOPE_IS_INCOMPLETE",
"message": "The Envelope is not Complete. A Complete Envelope Requires Documents, Recipients, Tabs, and a Subject Line. Envelope definition missing."
우리가 보내는 전체 POST는 파일 내용이 제거 된 상태에서 아래에 있습니다.
POST https://demo.docusign.net/restapi/v2/accounts/xxxxx/envelopes HTTP/1.1
X-DocuSign-Authentication: {"Username":"xxxxxx","Password":"xxxxx","IntegratorKey":"xxxxxx"}
Content-Type: multipart/form-data; boundary=AAA
Accept: application/json
Host: demo.docusign.net
Content-Length: 90500
Expect: 100-continue
--AAA
Content-Type: application/json
Content-Disposition: form-data
{
"emailBlurb": "Blurb",
"emailSubject": "Subhject",
"documents": [
{
"name": "NDA.pdf",
"documentId": "1"
}
],
"recipients": {
"signers": [
{
"tabs": {
"signHereTabs": [
{
"pageNumber": "1",
"yPosition": "1",
"xPosition": "1",
"documentId": "1",
"tabId": "1",
"name": "TabName"
}
]
},
"routingOrder": "1",
"recipientId": "1",
"name": "Ben",
"email": "[email protected]"
}
]
},
"status": "created"
}
--AAA
Content-Type: application/pdf
Content-Disposition: file; filename="NDA.pdf"; documentId="1"
<pdf file image content goes here>
--AAA--
JSON이 올바른 것처럼 보일 수 있습니다. 우리가 여기서 누락 된 것이 잘못 되었습니까?
에 어떤 문서가없는 경우. JSON 직전의 콘텐츠 처리 이후에 CRLF를 오싱했습니다. 또한 첫 번째 경계 앞에 추가 CRLF가 있습니다. 고마워, 나는 그걸 알아 내려고 미쳤어. – user3084095
문제 없습니다. 기꺼이 도와주었습니다. 건배! – Ergin