1 Reply Latest reply on Apr 16, 2014 1:03 AM by SimonATS

    Agreement won't send

    freehugs4u Level 1

      Hi, I am trying to send a test agreement (looking at the API, agreements : Agreements....POST  /agreements), and what I have is not working. I have changed things 100s of times, yet it keeps saying:

       

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

       

      I tried changing the format constantly, and this is what I last put in:

       

       

      {

        "documentCreationInfo": {

          "signatureType": "ESIGN",

          "recipients": [

          {

              "email": "codyc4321@mail.com",

              "role": "SIGNER"

          },

          ],

          "signatureFlow": "SENDER_SIGNATURE_NOT_REQUIRED",

          "libraryDocumentIds": [

              "2AAABLblqZhACyM0bpBPHjLgL2z0nrglWzFzZ23isfsfj92349sz8a2groBHz1YKmbrMPWvG9eZyU"

          ],

        },

      }

       

      I am testing in the REST API section, https://secure.echosign.com/public/docs/restapi/v1?rf=https%3A%2F%2Fwww.google.com%2F#!/ag reements/_post_0.

       

      The test would go to my email. We think the 'optional' fields may need to be included, just empty. Any thoughts?

       

      Thanks,

       

      Cody

        • 1. Re: Agreement won't send
          SimonATS Adobe Employee

          Hi Cody,

           

          This is better suited in the API forum, so I've moved this thread to that forum.

           

          have you created a new REST application and obtained an application ID and secret token?

           

          Also to send an agreement you need to generate a token as well which needs to be included.