Skip to content

Instantly share code, notes, and snippets.

@ShayneP
Created September 29, 2021 13:32
mutation createCart($cartInput: CartInput) {
cartCreate(input: $cartInput) {
cart {
id
lines(first:10) {
edges {
node {
merchandise {
... on ProductVariant {
product {
title
}
title
}
}
}
}
}
attributes {
key
value
}
estimatedCost {
totalAmount {
amount
currencyCode
}
subtotalAmount {
amount
currencyCode
}
totalTaxAmount {
amount
currencyCode
}
totalDutyAmount {
amount
currencyCode
}
}
}
}
}
@Vitascript
Copy link

Hi Shayne
We are really struggling to get this right on a private app. Trying to create a cart for a customer and then email them a url to checkout - is this possible?
Any advice?
Thanks
Deon

@cismanish
Copy link

Hi Shayne
Is there any way we use use it by CURL,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment