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

Commerce Channel API unable to define "Type"

    Details

    • Severity of Issue:
      Major

      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"
        }
        
      8. Click "execute"
      9. Go into Portal select the "Commerce" portlet "Channels"
      10. Add a new channel through the plus button
      11. 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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:

                Packages

                Version Package