createFreeOrderLine

Adds a free order line to an existing order. Only scheduled orders can be updated; other statuses will cause the mutation

Arguments

Argument
Description

Parameters for CreateFreeOrderLine

CreateFreeOrderLineInput Arguments

Argument
Description

orderId (ID!)

ID of the order to add a line to.

productId (ID)

The ID of the product for this order line.

shopifyVariantId (String)

The Shopify variant ID to look up the product. Either product_id or shopify_variant_id must be provided.

quantity (Int!)

The quantity of products for this order line.

Return fields

orderLine (OrderLine)

Last updated

Was this helpful?