Skip to main content
Question

API Document Tabs not populating


Forum|alt.badge.img+2

deleted

5 replies

Forum|alt.badge.img+3

Hi @CraigM . In case you still have questions, please, repost it again.


Forum|alt.badge.img+1
  • Newcomer
  • 2 replies
  • February 20, 2025

Hi Everyone
I am new to DocuSign and currently integrating it with MuleSoft using the "Envelopes Post Envelopes" API. I am sending the following payload, but the envelope is not being populated with the data I am passing. However, when I include xPosition and yPosition, the data appears in the envelope. My goal is to populate the fields using tabLabel instead, but it is not working. How can I resolve this issue?
Template with Standard Text field
 


Payload:

{
     "brandId": "d380fe66-xxxxxxxxxxxxx",  
      "templateId": "63ebae68-xxxxxxxxxxxxxxxxxxxx", // Need full template ID
    "status": "sent",
    "compositeTemplates": [
        {
              "templateId": "63ebae68-xxxxxxxxxxxxxxxxx", // Should match above
            "sequence": "1",
            "inlineTemplates": [
                {
                    "sequence": "1",
                    "recipients": {
                        "signers": [
                            {
                                "roleName": "Signer1", // Match template role name exactly 
                                "email": "test@test.com",
                                "name": "TestSigner",                    
                                "recipientId": "1",
                                "tabs": { 
                                    "textTabs": [
                                        {
                                            "tabLabel": "FirstName", 
                                            "value": "John"                                           

                                        },
                                        {
                                            "tabLabel": "LastName",
                                            "value": "Doe"
                                        },
                                        {
                                            "tabLabel": "Email",
                                            "value": "test@test.com"

                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    ]
}

Thank you in advance!


Forum|alt.badge.img+3

Hi ​@Nishant . You need an "anchorString" or the "x/yPosition" in the body to place the field.

If your document contains the words "Firstname" and "Lastname" which are the places you'd like to place the fields above, then instead of having "tabLabel": "LastName", you need to use "anchorString": "LastName".

Only having "tabLabels" will not be enough to place the fields via API.


Forum|alt.badge.img+1
  • Newcomer
  • 2 replies
  • February 20, 2025

Hi ​@Guilherme.Flores 
Thank you for your response. It works!!!
But in my case, the template is managed by a different team, and I don’t have control over it. Is there any way I can make it work using "tabLabels"? Also, I am not sure if "anchorString" will work for checkboxes and radio buttons as well.


Forum|alt.badge.img+3

@Nishant You're welcome! Unfortunately, no. In our tests only providing the "tabLabel" isn't enough for the mapping. Regarding the "anchorStrings" for checkboxes, they work the same way.

 


Reply