在使用docusign api创建信封时,我遇到了从prefillTabs
组中预填充选项卡的问题。不可能通过templateRoles
赋值,因为这些选项卡没有任何recipientId
。有没有可能以某种方式为这类选项卡赋值?
发布于 2021-04-15 22:56:01
是的,你可以做到这一点,以下是如何在C#软件开发工具包中做到这一点:
EnvelopeSummary results = envelopesApi.CreateEnvelope(accountId, env);
string envelopeId = results.EnvelopeId;
PrefillTabs prefill = new PrefillTabs();
prefill.TextTabs = new List<Text>();
prefill.TextTabs.Add(new Text { PageNumber = "1", DocumentId = "1", Value = "!!!test-inbar!!!" });
Tabs tabs = new Tabs();
tabs.PrefillTabs = prefill;
envelopesApi.CreateDocumentTabs(accountId, envelopeId, "1", tabs);
或者您可以这样使用原始JSON API调用:
端点:
/restapi/v2.1/accounts/[AccountId]/envelopes/[EnvelopeId]/documents/[DocumentId]/tabs
JSON body:
{"prefillTabs":{"textTabs":[{"value":"!!!test-inbar!!!","pageNumber":1,"documentId":"1","xPosition":316,"yPosition":97}]}}
https://stackoverflow.com/questions/66963685
复制