New Shopify Certification now available: Liquid Storefronts for Theme Developers

Retreive Cart Items from cart using Stroefront graphql api

IffiChaudhry14
New Member
6 0 0

I,m trying to get retrieve my cart data using storefront Graphql api. But It qave me valid call,  parameters. Please any one help how i can get fetch retrive cart data. I,m using storefront graphql api which code is below: It gave me error like invalid parameters.

`cart(id:"Z2lkOi8vc2hvcGlmeS9DYXJ0L2QzNTNhODQxYjQ1Y2VmYjY3ZTQ1NjdiZGUzMzU4MjFh") {
id
createdAt
updatedAt
lines(first:10) {
edges {
node {
id
quantity
merchandise {
... on ProductVariant {
id
}
}
attributes {
key
value
}
}
}
}
attributes {
key
value
}
estimatedCost {
totalAmount {
amount
currencyCode
}
subtotalAmount {
amount
currencyCode
}
totalTaxAmount {
amount
currencyCode
}
totalDutyAmount {
amount
currencyCode
}
}
buyerIdentity {
email
phone
customer {
id
}
countryCode
}
}
}`

Replies 0 (0)