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.

Fulfillment API returning 400 "Required parameter missing or invalid"

Fulfillment API returning 400 "Required parameter missing or invalid"

JainShina
Shopify Partner
1 0 0

Hello There,

 

Trying to fulfill an order with the help of fulfillments.json, but it is returning 400 - "Required parameter missing or invalid". 

 

It's POST request with the URL https://{{shopify_base_url}}/admin/api/{{shopify_webhook_version}}/fulfillments.json and 

Request Body 

{
  "fulfillment": {
    "line_items_by_fulfillment_order": [
      {
        "fulfillment_order_id": 6X5X990XXX69,
        "fulfillment_order_line_items": [
          {
            "id": 14X5X8XXXX5XXX,
            "quantity": 1
          }
        ]
      }
    ],
    "message": "Yay! The package was shipped this morning.",
    "notify_customer": false,
    "origin_address": {
      "country_code": "US"
    },
    "tracking_info": {
      "company": "Canada Post",
      "number": "123456789",
      "url": "tracking_url"
    }
  }
}
 
Not able to understand why the API call returning request parameter is missing or have incorrect value.
 
Looking forward for the help.
 
Thank you!
Replies 0 (0)