"errors": { "product": "Required parameter missing or invalid" }

Highlighted
Shopify Partner
9 0 0

I just sent via postman 

{
  "order": {
    "line_items": [
      {
        "variant_id": 447654529,
        "quantity": 1
      }
    ],
    "customer": {
      "first_name": "Paul",
      "last_name": "Norman",
      "email": "paul.norman@example.com"
    },
    "billing_address": {
      "first_name": "John",
      "last_name": "Smith",
      "address1": "123 Fake Street",
      "phone": "555-555-5555",
      "city": "Fakecity",
      "province": "Ontario",
      "country": "Canada",
      "zip": "K2P 1L4"
    },
    "shipping_address": {
      "first_name": "Jane",
      "last_name": "Smith",
      "address1": "123 Fake Street",
      "phone": "777-777-7777",
      "city": "Fakecity",
      "province": "Ontario",
      "country": "Canada",
      "zip": "K2P 1L4"
    },
    "email": "jane@example.com",
    "transactions": [
      {
        "kind": "authorization",
        "status": "success",
        "amount": 50.0
      }
    ],
    "financial_status": "partially_paid"
  }
}

 

i got this error 

 

{
    "errors": {
        "product": "Required parameter missing or invalid"
    }
}

 

==============================================

I need to create order using Shopify Api 

Help me thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1555 81 287

I can't see anything wrong with the request and can echo it just fine using a valid variant_id on my end. Are you sure you're posting with the correct data type to the correct endpoint? If so, could you share the x-request-id respnse header value?

0 Likes
Highlighted
Shopify Partner
9 0 0

Yeah Fine I fixed 

Thanks Alex

0 Likes
Highlighted
Shopify Partner
2 0 3

I am trying to push a product via api for the first time using the sample request and I am getting this simmilar

{"errors":{"product":"Required parameter missing or invalid"}}

 

My request is

{
  "product": {
    "title": "Burton Custom Freestyle 151",
    "body_html": "<strong>Good snowboard!</strong>",
    "vendor": "Burton",
    "product_type": "Snowboard",
    "tags": "Barnes & Noble, John's Fav, \&quot;Big Air\&quot;"
  }
}

 

 

X-Request-Id →4d304067-2899-40ce-8f8f-d5a94a208907

 

Can you please help

0 Likes
Highlighted
Shopify Partner
2 0 3

I managed to fix this issue, I forgot to change the body type to json when sending the request using postman :)

 

3 Likes
Highlighted
New Member
1 0 1

The same situation ... solved with "Content-Type: application/json" in header

1 Like
Highlighted
New Member
5 0 0

My program also has this problem, but I use JSON, or error, I don't know why

{"title":"Sleeveless Stripe Knit Top","body_html":"<p>Style: Casual<br\/>Color: White\/Mixcolor\/Mixcolor1\/Mixcolor2\/Mixcolor3\/Pink\/Blue\/Gray<br\/>Fabric Content: Polyester<br\/>Fit Type: Regular<br\/>Neckline: Round Neck<br\/>Sleeve Length: Sleeveless<br\/>Design: Stripe<\/p>","vendor":"lovelyerica","product_type":"Knits","tags":",Women,Tops,Knits,,White,Mixcolor,Mixcolor1,Mixcolor2,Mixcolor3,Pink,Blue,Gray,S,M,L,XL","metafields_global_title_tag":"","metafields_global_description_tag":"","images":[{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-004870.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-000701.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-002451.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-003824.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-001539.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-008402.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-006357.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-007178.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-005278.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-009432.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-013193.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-011819.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-012439.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-010871.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-014944.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-017201.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-016236.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-015208.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-018970.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-019633.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-022662.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-021528.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-020809.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-023454.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-028475.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-025132.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-026781.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-027543.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-024778.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-033921.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-030569.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-031177.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-032816.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-029376.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-034901.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-035686.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-036200.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-037259.jpg"},{"src":"http:\/\/pdm.emmiol.cn\/goodsIMG\/202007\/10964-038765.jpg"}],"options":[{"name":"Color","values":["Mixcolor","White","Mixcolor1","Mixcolor2","Mixcolor3","Pink","Blue","Gray"]},{"name":"Size","values":["S","M","L","XL"]}],"variants":[{"option1":"Mixcolor","option2":"S","sku":"FAG0235TO005S","barcode":"005","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"White","option2":"S","sku":"FAG0235TO001S","barcode":"001","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"White","option2":"M","sku":"FAG0235TO002M","barcode":"002","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"White","option2":"L","sku":"FAG0235TO003L","barcode":"003","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"White","option2":"XL","sku":"FAG0235TO004XL","barcode":"004","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor","option2":"M","sku":"FAG0235TO006M","barcode":"006","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor","option2":"L","sku":"FAG0235TO007L","barcode":"007","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor","option2":"XL","sku":"FAG0235TO008XL","barcode":"008","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor1","option2":"S","sku":"FAG0235TO009S","barcode":"009","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor1","option2":"M","sku":"FAG0235TO010M","barcode":"010","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor1","option2":"L","sku":"FAG0235TO011L","barcode":"011","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor1","option2":"XL","sku":"FAG0235TO012XL","barcode":"012","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor2","option2":"S","sku":"FAG0235TO013S","barcode":"013","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor2","option2":"M","sku":"FAG0235TO014M","barcode":"014","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor2","option2":"L","sku":"FAG0235TO015L","barcode":"015","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor2","option2":"XL","sku":"FAG0235TO016XL","barcode":"016","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor3","option2":"S","sku":"FAG0235TO017S","barcode":"017","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor3","option2":"M","sku":"FAG0235TO018M","barcode":"018","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor3","option2":"L","sku":"FAG0235TO019L","barcode":"019","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Mixcolor3","option2":"XL","sku":"FAG0235TO020XL","barcode":"020","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Pink","option2":"S","sku":"FAG0235TO021S","barcode":"021","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Pink","option2":"M","sku":"FAG0235TO022M","barcode":"022","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Pink","option2":"L","sku":"FAG0235TO023L","barcode":"023","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Pink","option2":"XL","sku":"FAG0235TO024XL","barcode":"024","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Blue","option2":"S","sku":"FAG0235TO025S","barcode":"025","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Blue","option2":"M","sku":"FAG0235TO026M","barcode":"026","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Blue","option2":"L","sku":"FAG0235TO027L","barcode":"027","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Blue","option2":"XL","sku":"FAG0235TO028XL","barcode":"028","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Gray","option2":"S","sku":"FAG0235TO029S","barcode":"029","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Gray","option2":"M","sku":"FAG0235TO030M","barcode":"030","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Gray","option2":"L","sku":"FAG0235TO031L","barcode":"031","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}},{"option1":"Gray","option2":"XL","sku":"FAG0235TO032XL","barcode":"032","inventory_management":"shopify","inventory_quantity":"999","inventory_policy":"continue","weight_unit":"kg","weight":"0.250","requires_shipping":true,"price":"29.99","compare_at_price":"29.99","presentment_prices":{"price":{"currency_code":"USD","amount":"29.99"},"compare_at_price":{"currency_code":"USD","amount":"29.99"}}}]}
 
{
    "errors": {
        "product""Required parameter missing or invalid"
    }
}
 

 

0 Likes
Highlighted
New Member
1 0 0

@yalk Can you even read what you posted?

0 Likes