docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

data object is empty when calling getBrands using GroupsApi

Open mrudling opened this issue 5 years ago • 1 comments

The data being returned from the API does not match the response in their docs when using the demo sandbox. This means the client api cannot deserialize the data object into a correct BrandsResponse. The data object is always an empty object. I was able to get the data I need (brand id) from the response object instead but this data is formatted incorrectly in the response.

Example response from the API (not using docusign-esign library, created using Postman. I am using ExternalId to get the brand id which is not ideal.

{
    "RecipientBrandIdDefault": null,
    "SenderBrandIdDefault": null,
    "BrandOptions": [
        {
            "BrandCompany": "brand-name",
            "ExternalId": "brand-id",

Looking at the API docs, I expect the response, and therefore the data object to look like this:

{
  "recipientBrandIdDefault": "sample string 1",
  "senderBrandIdDefault": "sample string 2",
  "brands": [
    {
      "brandCompany": "sample string 1",
      "brandId": "sample string 2",
      "brandName": "sample string 3",

mrudling avatar May 28 '20 21:05 mrudling

Hi @mrudling thank you for bringing this to our attention, well have our docs update for this.

acooper4960 avatar Jun 05 '20 20:06 acooper4960