• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

{"code":"INVALID_JSON","message":"An invalid JSON was specified"} - Create Agreement

Community Beginner ,
Nov 09, 2022 Nov 09, 2022

Copy link to clipboard

Copied

{"fileInfos":[{"transientDocumentId":"3AAABLblqZhABbunFXbYVw8ebYEaV3f9UZJxA4IapuypniVDjOHtUyLfnLlxmFTDo7PXZ9_fmPcoB69gLmYpfZXi36qR33MLGskxDIF0IoejLPjez-8thrM2lgm6ozFXLKyCoSfY5Wl2H1t_VmetX0libk6Jw8Fi3xBJJIzK-lfek21ddtWN8y638Fr2dRFvQkD30dzDjuLMYr_zbR9A5ssrsVP43p6oOxKL1-PIv5zz8j3iQmzqZg4RxF974K8lOs8Vk87ZBOsOx7pxPrITV5yqxIXu9rPxa9R7YXjS253zgIl7oyWW-MyYN5ow24jut-9sms_yH1sKHFz5m7myHZJoS0wO-1w2ptjA0HUo5QaTX2DGVPGRaGA**"}],"name":"AdobeEsign","participantSetsInfo":[{"memberInfos":[{"email":"jjohn@tcasonline.com","name":"Jinson John"}],"order":1,"role":"SIGNER"}],"signatureType":"ESIGN","state":"IN_PROCESS"}

 

I have used the above JSON in the REST API and I got the response (agreementid) but when I use the same JSON in REST Client it's showing 

 

{"code":"INVALID_JSON","message":"An invalid JSON was specified"}

 

ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
string baseUri = string.Format("https://api.eu2.adobesign.com");
RestClient restClient = new RestClient(baseUri);
RestRequest request = new RestRequest("api/rest/v6/agreements", Method.POST);
request.AddHeader("Content-Type", "application/json; charset=utf-8");
var agmclient = new RestClient("https://api.eu2.adobesign.com");
request.AddHeader("Authorization", "Bearer " + AccessToken);
request.AddParameter("AgreementInfo", jsonInfo);
IRestResponse response = aclient.Execute(agmrequest);

 

Does anyone have any idea about this issue?

TOPICS
Acrobat Sign , Acrobat Sign Developer , Adobe Sign , Adobe Sign Developer , Echosign , REST , REST API

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Nov 09, 2022 Nov 09, 2022

Votes

Translate

Translate
Community Beginner ,
Nov 09, 2022 Nov 09, 2022

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines