Fulfillment order using API 2023-01

API URL : https://:[email removed].myshopify.com/admin/api/2023-01/fulfillments.json

Passing object :

{
  "fulfillment": {
    "message ": "Order fulfilled",
    "notify_customer": false,
    "tracking_info": {
      "number": **"94055xxxxxxxxxxxxxxxxx"**
    },
    "line_items_by_fulfillment_order": [
      {
        "fulfillment_order_id": **<Fulfillment Order Id>**,
        "fulfillment_order_line_items": [
          {
            "id": **<Line Item 1 Id>**,
            "quantity": 1
          },
          {
            "id": **<Line Item 2 Id>**,
            "quantity": 1
          }
        ]
      }
    ]
  }
}

Error: The remote server returned an error: (400) Bad Request.

I want to make Shopify Order as fulfilled which is paid by using API 2023-01

Is there any other way or I missed anything in the above model to pass it into the API

I am referring to the blog URL :

hello there

It looks like there is an extra space after the “message” field key in your fulfillment object. Try removing the space like this:

{
  "fulfillment": {
    "message": "Order fulfilled",
    "notify_customer": false,
    "tracking_info": {
      "number": "94055xxxxxxxxxxxxxxxxx"
    },
    "line_items_by_fulfillment_order": [
      {
        "fulfillment_order_id": 

Also, make sure that you have the correct IDs for the fulfillment order and line items that you want to fulfill. Double check that the IDs are correct and that the line items are still unfulfilled.