Created
September 28, 2020 17:15
-
-
Save ShayneP/4df181f860e89e6df716d0e12f1fc368 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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