Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2376

Not able to create example address via API

    Details

      Description

      The error message I get is:

      HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String'. Check configuration for 'street1'%
      

      Execute the following via your terminal replacing cc-west for whatever account (or leave it if you have the minium full demo initialized.

      curl -X POST \
        http://localhost:8080/o/headless-commerce-admin-account/v1.0/accounts/by-externalReferenceCode/cc-west/accountAddresses \
        -H 'Accept: */*' \
        -H 'Accept-Encoding: gzip, deflate' \
        -H 'Authorization: Basic dGVzdEBsaWZlcmF5LmNvbTp0ZXN0' \
        -H 'Cache-Control: no-cache' \
        -H 'Connection: keep-alive' \
        -H 'Content-Length: 388' \
        -H 'Content-Type: application/json' \
        -H 'Cookie: JSESSIONID=413391D22BF7EF68CE81A14158EAB928; COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US' \
        -H 'Host: localhost:8080' \
        -H 'Postman-Token: c7856d72-ec1b-4511-89d9-5e30b3ac9e9b,1c5fc81e-4bd4-48b4-bfc1-9120e8ba211a' \
        -H 'User-Agent: PostmanRuntime/7.18.0' \
        -H 'cache-control: no-cache' \
        -d '{
          "city": "Diamond Bar",
          "street1": "1400 Montefino Ave",
          "countryISOCode": "US",
          "defaultBilling": true,
          "defaultShipping": true,
          "description": "right stairs, first room on the left",
          "latitude": 33.9976884,
          "longitude": -117.8144595,
          "name": "Liferay Diamond Bar",
          "phoneNumber": "(123) 456 7890",
          "regionISOCode": "CA",
          "zip": "91765"
      }'
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ivica.cardic Ivica Cardic
              Reporter:
              alec.sloan Alec Sloan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.0