Skip to main content
Question

Localization email and signing by API

  • January 22, 2025
  • 2 replies
  • 44 views

Forum|alt.badge.img+2

Hey,

 

I try to localize email and sing compent by signing user and I send by API envelop body:

 

{
  "documents": [
    {
      "documentBase64": "{{document}}",
      "documentId": "123",
      "fileExtension": "doc",
      "name": "document"
    }
  ],
  "emailSubject": "Custom subject",
  "BrandId": "brand id from portal",
  "recipients": {
    "signers": [
      {
        "email": {{user1_email}},
        "name": {{user1_name}},
        "recipientId": "{{recipientId}}",
        "routingOrder": "1",
        "localePolicy": {
         "cultureName": "es-ES",
          "languageCode": "es"
        },
         "tabs": {
                    "signHereTabs": [
                        {
                            "anchorString": "/sn1/",
                            "anchorUnits": "pixels",
                            "anchorXOffset": "20",
                            "anchorYOffset": "10",
                            "stampType": "Signature"
                        }
                    ]
                }
      },
      {
        "email": "examle2@gmail.com",
        "name": "Signer 2",
        "recipientId": "2",
         "routingOrder": "1",
         "tabs": {
                    "signHereTabs": [
                        {
                            "anchorString": "/sn2/",
                            "anchorUnits": "pixels",
                            "anchorXOffset": "20",
                            "anchorYOffset": "10"
                        }
                    ]
                },
            "signingGroupId": "",
            "signingSettings": {
            "signatureStyles": ["draw"]
            }
            ,
        "localePolicy": {
         "cultureName": "de-DE",   
          "languageCode": "de"     
        }
      }
    ],
    "inPersonSigners": [
      {
        "hostEmail": "examle1@gmail.com",
        "hostName": "Signer 3",
        "signerName": "Signer 4",
        "recipientId": "3",
         "routingOrder": "2",
        "tabs": {
          "signHereTabs": [
            {
              "anchorString": "/sn3/",
              "anchorUnits": "pixels",
              "anchorXOffset": "0",
              "anchorYOffset": "0",
              "documentId": "1",
              "pageNumber": "1"
            }
          ]
        },
        "localePolicy": {
         "cultureName": "fr-FR",  
          "languageCode": "fr"
        }
      }
    ]
  },
  "status": "sent"
}

 

I have ganereate also brand and put them in json but from braning the use only logo and see my custom logo on email, withaut localization. What I need to do? Tenx

2 replies

Forum|alt.badge.img+6
  • Docusign Employee
  • 60 replies
  • January 23, 2025

Hello ​@dolenc_1 

You can check how to use branding in API in this article.

https://developers.docusign.com/docs/esign-rest-api/how-to/apply-brand-to-envelope/

Thanks,

 


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 1 reply
  • January 23, 2025

I have but there are still email in  English.