Returns a Cart
object by ID.
Arguments
id
: ID!
The ID of the Cart
to return
Returns
Any requested field from the CartResponse
object.
Examples
{
"id": "{{cartId}}"
}
query ($id: ID!) {
getCart(id: $id) {
id
buyerIdentity {
firstName
lastName
address1
address2
city
provinceCode
countryCode
postalCode
email
phone
}
stores {
... on AmazonStore {
store
cartLines {
quantity
product {
id
}
}
offer {
subtotal {
value
displayValue
currency
}
margin {
value
displayValue
currency
}
notAvailableIds
shippingMethods {
id
label
price {
value
displayValue
currency
}
taxes {
value
displayValue
currency
}
total {
value
displayValue
currency
}
}
}
}
... on ShopifyStore {
store
cartLines {
quantity
variant {
id
}
}
offer {
subtotal {
value
displayValue
currency
}
margin {
value
displayValue
currency
}
notAvailableIds
shippingMethods {
id
label
price {
value
displayValue
currency
}
taxes {
value
displayValue
currency
}
total {
value
displayValue
currency
}
}
}
}
}
}
}