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.

Re: Fulfillment Required Parameter Missing

Fulfillment Required Parameter Missing

Danny22
Visitor
2 0 0

I am getting the following error:

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

 

For the request message:

 

{
  "message": null,
  "notify_customer": true,
  "tracking_info": {
    "number": "XX6376204XXX",
    "url": null,
    "company": "FEDEX"
  },
  "line_items_by_fulfillment_order": [
    {
      "fulfillment_order_id": 4511XXXXX,
      "fulfillment_order_line_items": [
        {
          "quantity": 1,
          "id": 11585172XXXXX,
          "admin_graphql_api_id": null
        },
        {
          "quantity": 1,
          "id": 11585172XXXX,
          "admin_graphql_api_id": null
        }
      ]
    }
  ]
}

 

 

Calling the Endpoint:

admin/api/2023-01/fulfillments.json

 

Current business process.  We get tracking information based on order and items in the order from our shipping software.  This includes a type (fedex, usps, etc) and the tracking information.  

What I dont understand at this point; Is there an additional step required to put tracking information on an order then before?  Like create a "fulfillmentorder" then use that to add tracking information? 

Replies 2 (2)

garyrgilbert
Shopify Partner
432 41 190

Hi there,

 

Try it again without sending "admin_graphql_api_id" in your json document. Also make sure that the fulfillment_order_id is the fulfillment_order_id  from orders/[orderid]/fulfillment_orders.json and not the actual order_id.

 

Cheers,

Gary

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

kjdointhings
Shopify Partner
29 2 12

Did you ever get this working? I am getting the same error. I am using the fulfillment_order_id (not order.id), and the fulfillment order line item id (not order line item id). The error is super vague and unhelpful.

{
  "api_version": "2024-01",
  "notify_customer": true,
  "line_items_by_fulfillment_order": [
    {
      "fulfillment_order_id": 6596237721XXX,
      "fulfillment_order_line_items": [
        {
          "id": 14564806754XXX,
          "quantity": 1
        }
      ]
    }
  ]
}

 

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