why I am facing error in State while create room in DocuSign

37 views Asked by At
{
  "name": "Testing000000001",
  "roleId": "2007958",
  "transactionSideId": "listbuy",
  "fieldData": {
    "data" : {
     "address1": "123 EZ Street",
     "address2": "unit 10",
     "city": "Galaxian",
     "state": "US-HI",
     "postalCode": "11112",
     "companyRoomStatus": "5",
     "comments": " laborum.",
     "hubspotId":"121212"
      }
   }
}

This code is running fine but when ever I changed the value of State from US-HI to another value, so it show error while creating a room.

1

There are 1 answers

0
Inbar Gazit On

The Rooms:CreateRoom endpoint documentation says this:

enter image description here

If you check the State:GetStates documentation you will see the list of states, but to get their codes you have to make this API call. If you want you can make it once and hardcode the results, changes to the list of states are rare.