Details

    • Type: Sub-Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:

      Description

      The APIs need to support the following cases:

      PRICELISTS

      1. List all pricelists in a company.
        1. IN: companyId
        2. OUT listof: pricelist
      2. Add a new pricelist.
        1. IN: name, catalog, currency, priority, parentPriceListId
        2. OUT: pricelist
      3. Edit a pricelist.
        1. IN: name, currency, priority, parentPriceListId, schedule info
        2. OUT: discount 
      4. Delete a pricelist.
        1. IN: picelistId
        2. OUT:

      PRICE ENTRIES

      1. List all priceEntries in a pricelist.
        1. IN: pricelistId
        2. OUT listof: priceEntry
      2. Add a priceEntry to a pricelist.
        1. IN: pricelistId, cpInstanceId
        2. OUT: priceEntry
      3. Edit a priceEntry in a pricelist.
        1. IN: priceEntryId, price, startDate, endDate, override, discountLevel1, discountLevel2, discountLevel3, discountLevel4, bulkPricing
        2. OUT: priceEntry
      4. Delete a priceEntry.
        1. IN: priceEntryId
        2. OUT:

      TIER PRICE ENTRIES

      1. Add/Edit a tierPriceEntry to a pricelist.
        1. IN: priceEntryId, mininum quantity, price, startDate, endDate, override, discountLevel1, discountLevel2, discountLevel3, discountLevel4
        2. OUT: tierPriceEntry
      2. Delete a tierPriceEntry in pricelist.
        1. IN: tierPriceEntryId
        2. OUT:

      QUALIFIERS

      1. List all qualifiers associated to a pricelist.
        1. IN: pricelistId
        2. OUT lisfof: qualifier
      2. Add an qualifier to a pricelist
        1. IN: pricelistId, qualifierId
        2. OUT: ?
      3. Delete an qualifier from a pricelistId
        1. IN: pricelist_QualifierRelID_
        2. OUT:

      PRICE MODIFIERS

      1. List all price modifiers associated to a pricelist
        1. IN: pricelistId
        2. OUT listof: pricemodifier
      2. Add a pricemodifier to a pricelist
        1. IN: pricelistId, name, target, modifier type
        2. OUT: pricemodifier
      3. Edit a pricemodifier in a pricelist
        1. IN: pricemodifierId, name, target, modifier type, amount, schedule info
        2. OUT: pricemodifier
      4. Delete a pricemodifer
        1. IN: pricemodifierId
        2. OUT
      5. List all target items defined for the pricemodifier
        1. IN: pricemodifierId, className (identifying the item type)
        2. OUT listof: target items
      6. Add target item to pricemodifier.
        1. IN: pricemodifierId, className, classPK
        2. OUT: ?
      7. Delete target item to pricemodifier
        1. IN: pricemodifierRelId
        2. OUT: 

       

      URLs and operations - base http://localhost:8080/o/headless-commerce-admin-pricing/v2.0/

      /price-lists (GET, POST)

      /price-lists/<id> (DELETE, GET, PATCH)

      /price-lists/<id>/price-entries (GET, POST)

      /price-lists/<id>/price-list-account-groups  (GET, POST)

      /price-lists/<id>/price-list-accounts  (GET, POST)

      /price-lists/<id>/price-list-channels  (GET, POST)

      /price-lists/<id>/price-list-discounts  (GET, POST)

      /price-lists/<id>/price-modifiers  (GET, POST)

      /price-entries/<id> (DELETE, GET, PATCH)

      /price-entries/<id>/tier-prices (GET, POST)

      /price-modifiers/<id> (DELETE, GET, PATCH)

      /price-modifiers/<id>/price-modifier-categories (GET, POST)

      /price-modifiers/<id>/price-modifier-product-groups (GET, POST)

      /price-modifiers/<id>/price-modifier-products (GET, POST)

      /tier-prices/<id> (GET, DELETE, PATCH)

      /price-modifier-categories/<id> (DELETE)

      /price-modifier-product-groups/<id> (DELETE)

      /price-modifier-products/<id> (DELETE)

       

      Note. All endpoints support ERC.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrea.sbarra Andrea Sbarra
              Reporter:
              riccardo.alberti Riccardo Alberti
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.2