Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-315

DOC: Checkout & Cart API changes (V2 added)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • None

    Description

      Current behaviour

      For the checkout, we might have incorrect resources. For instance: /checkouts/address/{cartId}

      New behaviour 

      This method is setting the address of a cartId, then the correct endpoint would be: /carts/{cartId}/address

      But the same happens for the rest of the checkout methods


      From evzen in ECOMMERCE-307:

      We need to update this page https://documentation.magnolia-cms.com/display/DOCS62/Checkout+endpoint+API

      we are adding version 2 endpoint of checkout endpointall rest-call paths are slightly changes to be more descriptive and intuitive.

       

      setAddress
      @PUT
      @Path("/checkouts/cart/{cartId}/address")
      
      setShippingMethod
      @PUT
      @Path("/checkouts/cart/{cartId}/shippingmethod")
      
      createOrder
      @POST
          @Path("/checkouts/cart/{cartId}/order")
      
      getShippingMethods
      @POST
          @Path("/checkouts/cart/{cartId}/shippingmethods")

      From evzen in ECOMMERCE-305:

      We need to update this page https://documentation.magnolia-cms.com/display/DOCS62/Cart+endpoint+API

      we are adding version 2 endpoint of cart endpoint where we have cart id as path parameter instead of form parameter in these rest-calls. Rest of rest-calls is unchanged

      addItem
      @POST
      @Path("/v2/carts/{cartId}/items")
      
      removeItem
      @DELETE
      @Path("/v2/carts/{cartId}/items/{itemId}")
      
      updateItemQuantity
      @POST
      @Path("/v2/carts/{cartId}/items/{itemId}")
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jlegendre Julie Legendre
                jlegendre Julie Legendre
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD