We're running into an error when trying to create ...
# suitetalkapi
b
We're running into an error when trying to create an estimate through rest api. This is the payload -
Copy code
{
  "billAddressee": "Test Name",
  "billState": "NY",
  "shippingAddress_country": "US",
  "billingAddress_country": "US",
  "shippingAddress_city": "City",
  "expectedCloseDate": "2023-12-28",
  "billingAddress_addressee": "Test Name",
  "shippingAddress_zip": "11111",
  "billingAddress_addr1": "Address 1",
  "shippingAddress_text": "Test Shipping Address",
  "currency": "1",
  "billingAddress_state": "NY",
  "addressBook": {
    "items": [
      {
        "defaultBilling": true,
        "addressBookAddress": {
          "zip": "11111",
          "country": "US",
          "addressee": "Test Name",
          "addr1": "Address 1",
          "city": "City",
          "attention": "attention",
          "addrphone": "111-111-1111",
          "state": "NY"
        }
      },
      {
        "addressBookAddress": {
          "zip": "11111",
          "country": "US",
          "addressee": "Test Name",
          "addr1": "Test Shipping Address",
          "city": "City",
          "attention": "attention",
          "addrphone": "111-111-1111",
          "state": "NY"
        },
        "defaultShipping": true
      }
    ]
  },
  "shippingAddress_attention": "attention",
  "billingAddress_text": "Address 1",
  "item": {
    "items": [
      {
        "taxCode": "111",
        "subscription": "3242"
      },
      {
        "item": 323,
        "quantity": 1,
        "taxCode": "111",
        "price": "1"
      }
    ]
  },
  "billingAddress_addrphone": "111-111-1111",
  "billZip": "11111",
  "externalId": "23423423423",
  "billCity": "City",
  "subsidiary": "2",
  "shippingAddress_addrphone": "111-111-1111",
  "billingAddress_zip": "11111",
  "shippingAddress_addressee": "Test Name",
  "entityStatus": "17",
  "billPhone": "111-111-1111",
  "billingAddress_city": "City",
  "shippingAddress_state": "CA",
  "shippingAddress": {
    "zip": "11111",
    "country": "US",
    "addressee": "Test Name",
    "addr2": "",
    "addr1": "Test Shipping Address",
    "city": "City",
    "attention": "attention",
    "state": "CA",
    "addrphone": "111-111-1111"
  },
  "shippingAddress_addr1": "Test Shipping Address",
  "billingAddress": {
    "zip": "11111",
    "country": "US",
    "addressee": "Test Name",
    "addr2": "",
    "addr1": "Address 1",
    "city": "City",
    "attention": "attention",
    "state": "NY",
    "addrphone": "111-111-1111"
  },
  "billingAddress_attention": "attention",
  "entity": {
    "id": "2343"
  }
}
But we get the error -
USER_ERROR: Error while accessing a resource. Please enter value(s) for: Phone.
The payload has Phone number values for
billPhone
as well as both the addressBook objects and the shipping and billing addresses. I've checked the estimate transaction form and there is no mandatory field for Phone. What am I doing wrong here?
s
addrPhone
rather than
addrphone
?