createOrderedProduct

Deprecated: Use CreateOrderedProductV2 instead.

Arguments

Argument
Description

Parameters for CreateOrderedProduct

CreateOrderedProductInput Arguments

Argument
Description

metadata (JSON)

Metadata that can be used by developers to store additional information on objects.

id (ID)

ID of this ordered product. This will be ignored on create action.

productId (ID)

ID for the related product

quantity (Int)

The quantity for this ordered product.

customPriceCents (Int)

A custom price in cents for this ordered product, if left blank the default product price will be used

shipmentDate (ISO8601Date)

The next date on which a new order should get initiated

interval (Int)

The amount of time in units between shipments of this order

intervalUnitOfMeasureType (OrderedProductIntervalUnitOfMeasure)

The time measure for interval units

ensureNewRecord (Boolean)

subscriptionId (ID)

ID of the subscription to create this OrderedProduct for. Required if authenticated via a project access token

sku (String)

Use this field to look up the associated product based on SKU.

slug (String)

Use this field to look up the associated product based on slug.

shopifyVariantId (ID)

Use this field to look up the associated product based on Shopify Variant ID.

orderedProduct (OrderedProductInput)

This argument is deprecated. Use direct arguments on this mutation instead. If you pass this field, direct arguments will be ignored.

Return fields

errors ([String!]!)

orderedProduct (OrderedProduct)

subscription (Subscription)

Last updated