New Cart

newCart #

newCart(params: NewCartParams) PCart

Example #

mutation newCart($params: NewCartParams!){
  newCart(params: $params) {
    id
    isShippingRequired
    cartItems {
      id
      product {
        id
        name
        slug
        description
        sku
        stock
        maxItemPerOrder
        price
        images
        fullImages
        isDigitalProduct
        views
        productUnit
        createdAt
        updatedAt
        category {
          id
          name
          slug
          description
          image
          fullImage
          productCount
          position
        }
        attributes {
          id
          name
          values
          isRequired
          createdAt
          updateAt
        }
        variations {
          id
          name
          price
          sku
          stock
        }
        digitalItems {
          id
          title
          description
          position
          contents {
            id
            title
            contentType
            isTrialAllowed
            contentText
            contentUrl
            updatedAt
            position
          }
        }
        feedbacks {
          rating
          comment
          createdAt
        }
        productSpecificDiscount
      }
      quantity
      purchasePrice
      attributes {
        name
        selectedValue
      }
      variation {
        id
        name
        price
        sku
        stock
      }
    }
  }
}

Try It Now