"product" => "Required parameter missing or invalid"

Highlighted
Shopify Partner
2 0 0

Hi I am intermittently seeing 

"product" => "Required parameter missing or invalid"

when i try and update variant products in Shopify, I can't for the life of me see what is wrong with the call, see below.

any ideas help etc gratefully accepted :) 

 

array:7 [  "url" => "https://#######/admin/api/2020-01/products/971877515325.json"
  "method" => "PUT"
  "request_headers" => array:3 [
    "X-Shopify-Access-Token" => "#######"
    "Content-type" => "application/json"
    "Content-Length" => 734
  ]
  "request_body" => array:1 [
    "product" => array:1 [
      "variants" => array:9 [
        0 => array:4 [
          "id" => 14053751095357
          "price" => "42.00"
          "position" => 1
          "compare_at_price" => null
        ]
        1 => array:4 [
          "id" => 9061393956925
          "price" => "42.00"
          "position" => 2
          "compare_at_price" => null
        ]
        2 => array:4 [
          "id" => 9061393989693
          "price" => "42.00"
          "position" => 3
          "compare_at_price" => null
        ]
        3 => array:4 [
          "id" => 9061394022461
          "price" => "42.00"
          "position" => 4
          "compare_at_price" => null
        ]
        4 => array:4 [
          "id" => 9061394055229
          "price" => "42.00"
          "position" => 5
          "compare_at_price" => null
        ]
        5 => array:4 [
          "id" => 9061394087997
          "price" => "42.00"
          "position" => 6
          "compare_at_price" => null
        ]
        6 => array:4 [
          "id" => 9061394120765
          "price" => "45.00"
          "position" => 7
          "compare_at_price" => null
        ]
        9 => array:4 [
          "id" => 31593709338685
          "price" => "45.00"
          "position" => 10
          "compare_at_price" => null
        ]
        10 => array:4 [
          "id" => 31593710747709
          "price" => "45.00"
          "position" => 11
          "compare_at_price" => null
        ]
      ]
    ]
  ]
  "status" => 400
  "response_headers" => array:30 [
    "date" => "Tue, 17 Mar 2020 09:14:57 GMT"
    "content-type" => "application/json; charset=utf-8"
    "set-cookie" => "__cfduid=d4d86a93fb6963e525ef3b182293c70341584436497; expires=Thu, 16-Apr-20 09:14:57 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax"
    "x-sorting-hat-podid" => "60"
    "x-sorting-hat-shopid" => "#######"
    "referrer-policy" => "origin-when-cross-origin"
    "x-frame-options" => "DENY"
    "x-shopid" => "#######"
    "x-shardid" => "60"
    "x-stats-userid" => ""
    "x-stats-apiclientid" => "#######"
    "x-stats-apipermissionid" => "#######"
    "x-shopify-api-terms" => "By accessing or using the Shopify API you agree to the Shopify API License and Terms of Use at https://www.shopify.com/legal/api-terms"
    "http_x_shopify_shop_api_call_limit" => "1/80"
    "x-shopify-shop-api-call-limit" => "1/80"
    "x-shopify-api-version" => "2020-01"
    "strict-transport-security" => "max-age=7889238"
    "x-request-id" => "#######"
    "x-shopify-stage" => "production"
    "content-security-policy" => "default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; con"
    "x-content-type-options" => "nosniff"
    "x-download-options" => "noopen"
    "x-permitted-cross-domain-policies" => "none"
    "x-xss-protection" => "1; mode=block; report=/xss-report?source%5Baction%5D=update&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source"
    "x-dc" => "gcp-us-east1,gcp-us-east1"
    "cf-cache-status" => "DYNAMIC"
    "expect-ct" => "max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct""
    "server" => "cloudflare"
    "cf-ray" => "57559b4dec18a729-DUB"
    "alt-svc" => "h3-27=":443"; ma=86400, h3-25=":443"; ma=86400, h3-24=":443"; ma=86400, h3-23=":443"; ma=86400"
  ]
  "response_body" => array:1 [
    "errors" => array:1 [
      "product" => "Required parameter missing or invalid"
    ]
  ]]
0 Likes
Highlighted
Shopify Staff
Shopify Staff
587 72 129

Hey @Gnilya,

 

Can you confirm which shop_id you're making these calls on? Your call looks fine so I'd like to check our logs for more information on the error. If possible, kindly try the request again and provide the X-Request-ID value from the response headers, which will help track this down in the logs.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes