I need help with the POST request body for creating a DocuSign envelope. I want to create an envelope using a template and prefill custom fields. Here's my current request body:
{
"templateId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"templateRoles": :
{
"email": "email@gmail.com",
"name": "Recipient Name",
"roleName": "Signer 1"
}
],
"status": "sent",
"customFields": {
"textCustomFields": "
{
"name": "name",
"value": "john"
}
]
}
}
Is this the correct structure for the request body?
you can use curl or postman to test it whether the envelope is created success as you want.
FreeLink/甫连信息
DocuSign Partner | Partner Profile
DocuSign 2024 APAC Reseller Growth Partner of the Year
The only DocuSign Partner globally certified as both a Certified eSignature Administrator and eSignature Technical Consultant.
DocuSign Community Leaderboard Top 5 contributor.
Expertise in DocuSign integrations with on-premises systems for leading enterprises across various industries.
Feel free to reach out for collaboration opportunities.
I am using Postman, but I get this error message:
{"errorCode":"INVALID_CONTENT_TYPE","message":"Content Type specified is not supported."}
That’s why I am asking if I there is mistake in the body
you can reference this screenshot:
Hengfeng
FreeLink/甫连信息
DocuSign Partner | Partner Profile
DocuSign 2024 APAC Reseller Growth Partner of the Year
The only DocuSign Partner globally certified as both a Certified eSignature Administrator and eSignature Technical Consultant.
DocuSign Community Leaderboard Top 5 contributor.
Expertise in DocuSign integrations with on-premises systems for leading enterprises across various industries.
Feel free to reach out for collaboration opportunities.
The structure of your request body for creating an envelope using a template appears to be mostly correct. However, the error message {"errorCode":"INVALID_CONTENT_TYPE","message":"Content Type specified is not supported."} indicates an issue with the HTTP headers rather than the JSON body.
For DocuSign API requests, you need to set the Content-Type header properly. The correct value for a JSON request body is: Content-Type: application/json
Reply
Sign up
Already have an account? Login
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationDocusign Community
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.