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

Commerce Channel API unable to define "Type"

Details

    • Commerce Sprint 21- Oct/2022

    Description

      Commerce Channel API is unable to define "type" of channel which makes certain tabs not appear when going to the channel entry. The API call does have a field "type" which you can define but Portal does not recognize it. Example down below.

      Steps to Reproduce:

      1. Start up Portal
      2. Go to "portalurl"/o/api
      3. Click "Rest Appilcations" dropdown
      4. Select "headless-commerce-admin-channel/v1.0"
      5. Under "Channel" category, select "POST /v1.0/channels"
      6. Click "try it out"
      7. Paste this as your request body
        {
          "currencyCode": "US",
          "externalReferenceCode": "string",
          "id": 0,
          "name": "Test",
          "siteGroupId": 0,
          "type": "Site"
        }
        
      1. Click "execute"
      2. Go into Portal select the "Commerce" portlet "Channels"
      3. Add a new channel through the plus button
      4. Name the channel "Test Channel" and select the type as "Site"
        Expected Result:
        Should have "type", "notification queue", and "notification templates" tabs like "Test Channel"
        Actual Result:
        There is no "type", "notification queue", and "notification templates" tabs as seen in the "Test"
        Reproduced on:
        Tomcat 9.0.43 + MySQL 5.7 Portal master GIT ID:83f9df00705ada35b725063e41196cf315496fed

       

       Test to check if API works with lowercase "site"

       

      Attachments

        Activity

          People

            andrea.sbarra Andrea Sbarra
            calum.ragan Calum Ragan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.4 DXP U49