tatternutz | Posts: 24

Retrieve a List of Users in an Account

0 votes
Retrieve a List of Users in an Account When performing GET the response contains the correct count of senders in my Account but it is only returning 1 sender in the results but should be 3 results. Shouldn't the GET /account/senders returned all senders in the results?
{
  "count": 3,
  "results": [
    {
      "status": "ACTIVE",
      "language": "en",
      "signature": null,
      "id": "RApaEW1wmEcC",
      "address": null,
      "created": "2017-03-31T15:59:02Z",
      "external": null,
      "updated": "2017-03-31T15:59:01Z",
      "account": {
        "owner": "K1TiGqYmrRE1",
        "id": "FDm1dI2SVxk0",
        "created": "2017-03-07T20:12:24Z",
        "updated": "2017-03-07T20:12:23Z",
        "company": {
          "id": "c1VpEjeuJHYR",
          "address": {
            "address1": null,
            "address2": null,
            "city": null,
            "country": null,
            "zipcode": null,
            "state": null
          },
          "data": null,
          "name": "nCino"
        },
        "customFields": [
          {
            "required": false,
            "id": "contentVersionId",
            "translations": [
              {
                "language": "en",
                "description": "",
                "id": "",
                "data": null,
                "name": "contentVersionId"
              }
            ],
            "data": null,
            "value": "",
            "name": ""
          },
          {
            "required": false,
            "id": "externalTransactionId",
            "translations": [
              {
                "language": "en",
                "description": "",
                "id": "",
                "data": null,
                "name": "externalTransactionId"
              }
            ],
            "data": null,
            "value": "",
            "name": ""
          }
        ],
        "licenses": [
          {
            "status": "ACTIVE",
            "created": "2017-03-07T20:12:24Z",
            "transactions": [],
            "plan": {
              "group": "",
              "description": "E-Sign Hundreds of Documents with Unlimited Signers",
              "id": "sandbox",
              "features": null,
              "quotas": [
                {
                  "scope": "ACCOUNT",
                  "cycle": null,
                  "limit": 5,
                  "target": "SENDER"
                },
                {
                  "scope": "SENDER",
                  "cycle": null,
                  "limit": 500,
                  "target": "DOCUMENT"
                },
                {
                  "scope": "SENDER",
                  "cycle": null,
                  "limit": 500,
                  "target": "STORAGE"
                }
              ],
              "price": {
                "amount": 0,
                "currency": {
                  "id": "USD",
                  "data": null,
                  "name": "US Dollar"
                }
              },
              "original": null,
              "data": null,
              "cycle": "YEAR",
              "contract": "YEAR",
              "freeCycles": null,
              "name": "Sandbox"
            },
            "paidUntil": "2018-03-07T20:12:24Z"
          }
        ],
        "logoUrl": "",
        "providers": null,
        "data": null,
        "name": "Rich Bateman"
      },
      "activated": null,
      "company": "nCino",
      "email": "[email protected]",
      "firstName": "Tom",
      "lastName": "Dom",
      "locked": null,
      "memberships": [],
      "phone": "",
      "professionalIdentityFields": [],
      "userCustomFields": [],
      "title": null,
      "data": {
        "hasNotCreatedATransaction": true,
        "showIntro": true
      },
      "type": "REGULAR",
      "name": "",
      "specialTypes": [],
      "hasDelegates": false
    }
  ]
}

Approved Answer
harishaidary | Posts: 1812

Reply to: Retrieve a List of Users in an Account

0 votes
Hi there, Simply doing a GET /account/senders will return you the latest sender added in your account. To retrieve all your senders, you will need to add the parameters "from" and "to" in your request URL.
GET https://apps.esignlive.com/api/account/senders?from=0&to=100
The call above will return you the first 100 senders in your account. You can have a look at our documentation for a list of available parameters: http://docs.esignlive.com/content/c_integrator_s_guide/rest_api/accounts.htm#Retrieve2

tatternutz | Posts: 24

Reply to: Retrieve a List of Users in an Account

0 votes
Thank you Haris.. Quick note regarding the documentation. The optional query parameters From/To description refers to a date range, it was quite confusing.

harishaidary | Posts: 1812

Reply to: Retrieve a List of Users in an Account

0 votes
Yes, that is indeed an error in our documentation. Thanks for pointing that out. I will have our documentation team fix this asap.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off