Shopify fulfillment returns required parameters missing or invalid

kashyff
New Member
6 0 0

Hi 

I am trying to fulfill order using rest documentation but failing every time.

{
  "fulfillment": {
    "location_id": 57954959543,
        "tracking_number": null,

    "line_items": [
      {
                            "id": 9178968522935,
                    "variant_id": 37937776361655
      },
      {
                            "id": 9178968555703,
                    "variant_id": 37937794908343
      },
      {
          "id": 9178968588471,
                    "variant_id": 37937796055223
      },
    {
                            "id": 9178968621239,
                    "variant_id": 37937796350135
      }
    ]
  }
}

It always returns

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

 

What are the required parameters I am missing?

 

0 Likes
_JB
Shopify Staff
Shopify Staff
761 89 170

Hey @kashyff,

The variant_id field isn't required for a fulfillment call. Try the call again with that field removed.

JB | Developer 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