Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

how to pass information product title = blank up draf-order

how to pass information product title = blank up draf-order

stylem
Shopify Partner
1 0 0

i tried transmission (i don't pass up variantId)
title = null
title= " "
but failed
results returned

stylem_0-1685340223742.png

 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 530

Hi @stylem 👋

 

The `DraftOrderLineItemInput.title` is required when creating a draft order with a custom line item (i.e. no variant ID provided). The `title` cannot be a blank string, and at minimum, the following variables must be supplied:

 

{
    "input": {
        "lineItems": [{
            "title": "some non-blank item title",
            "originalUnitPrice": 10,
            "quantity": 5
        }]
    }
}

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog