product not coming with image,sku in orders

altriga
New Member
1 0 0

eg:

this or

 

http://prntscr.com/15dr42r


I try to creating order with products:

order request:
{
"order": {
"email": "dixitgupta@test.com",
"contact_email": "dixitgupta@test.com",
"taxes_included": true,
"currency": "USD",
"updated_at": "2021-06-14 07:29:02",
"name": "Order #301",
"order_number": "301",
"status": "Open",
"shipping_address": {
"name": "Dixit Gupta",
"first_name": "Dixit",
"last_name": "Gupta",
"address1": "test",
"address2": "test",
"phone": "",
"city": "New York",
"zip": "10001",
"province": "New York",
"country": "United States",
"country_code": "US",
"province_code": "NY"
},
"billing_address": {
"name": "Dixit Gupta",
"first_name": "Dixit",
"last_name": "Gupta",
"address1": "test",
"address2": "test",
"phone": "",
"city": "New York",
"zip": "10001",
"province": "New York",
"country": "United States",
"country_code": "US",
"province_code": "NY"
},
"line_items": [
{
"title": "Curtain",
"price": "25.25",
"quantity": 1,
"variant_id": "40078048854180",
"product_id": "6737292525732"
},
{
"title": "Test Single Product",
"price": "10.11",
"quantity": 4,
"variant_id": "40085665546404",
"product_id": "6738638667940"
}
],
"note": "",
"total_price": "93.69",
"subtotal_price": 65.69,
"total_tax": 0,
"financial_status": "pending",
"total_discounts": "10.00",
"total_line_items_price": 65.69,
"phone": "",
"browser_ip": "59.90.70.44",
"gateway": "Phone ordering",
"payment_gateway_names": [
"Phone ordering"
],
"shipping_lines": [
{
"title": "Custom shipping method",
"price": "28.00",
"code": "Custom shipping method",
"source": "shopify",
"phone": "",
"delivery_category": null,
"carrier_identifier": null,
"discounted_price": "0.00"
}
]
}
}

Order creating fine in shopify

Image,sku and link coming fine for product whose have color/size variations

screenshot: http://prntscr.com/15dqo8y

Only issue with simple product whose have no variation (red marked in screenshot)

How i can fix it.

0 Likes
csam
Shopify Staff
Shopify Staff
34 5 4

Hi @altriga 

The reason that the product in the order isn't linked to a currently active product variant is because the ID of the of the product in the order does not match the current ID of the product. 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me 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

0 Likes