how obtain QuantityPriceBreak ID's

how obtain QuantityPriceBreak ID's

karat
Shopify Partner
1 0 0

Hi,

I am updating quantityPriceBreaks by mutation quantityPricingByVariantUpdate https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/quantityPricingByVariantUpdate

but I don't know how return ID's of quantity price breaks which I need for deleting

by field quantityPriceBreaksToDelete.

 

mutation {
	quantityPricingByVariantUpdate(
		priceListId: "gid://shopify/PriceList/34456338679"
		input: {
			pricesToAdd: []
			pricesToDeleteByVariantId: []
			quantityPriceBreaksToAdd: [
				{
					variantId: "gid://shopify/ProductVariant/49036853477623"
					price: { amount: 8.7, currencyCode: EUR }
					minimumQuantity: 10
				}
				{
					variantId: "gid://shopify/ProductVariant/49036853477623"
					price: { amount: 7.1, currencyCode: EUR }
					minimumQuantity: 11
				}
				{
					variantId: "gid://shopify/ProductVariant/49036853510391"
					price: { amount: 3.7, currencyCode: EUR }
					minimumQuantity: 5
				}
			]
			quantityPriceBreaksToDelete: []
			quantityRulesToAdd: []
			quantityRulesToDeleteByVariantId: []
		}
	) {
		productVariants {
			id
		}
	}
}

 

karat_0-1726577007703.png

 

 

Replies 0 (0)