Skip to content

Instantly share code, notes, and snippets.

@ShayneP
Created September 28, 2020 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShayneP/4df181f860e89e6df716d0e12f1fc368 to your computer and use it in GitHub Desktop.
Save ShayneP/4df181f860e89e6df716d0e12f1fc368 to your computer and use it in GitHub Desktop.
mutation addDiscount {
orderEditAddLineItemDiscount(
id: "gid://shopify/CalculatedOrder/5678"
lineItemId: "gid://shopify/CalculatedLineItem/121314"
discount: { percentValue: 20, description: "Upsell" }
) {
calculatedOrder {
id
addedLineItems(first: 5) {
edges {
node {
id
quantity
}
}
}
}
userErrors {
message
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment