Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Retreive Cart Items from cart using Stroefront graphql api

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)