Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

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

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

BartJR
Tourist
4 1 2

Good afternoon,

I am trying to create a fulfilment through the REST API, but keep getting this response:

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

Path:

/admin/api/2021-04/orders/4019382714537/fulfillments.json 

My request:

{
    "fulfillment": 
    { 
        "order_id": 4019382714537,
        "location_id": 61798908073,
        "tracking_company": "DHL Express"
        "tracking_numbers": [123456789],
        "notify_customer": true,
        
    }
}

Headers:

BartJR_0-1632855954346.png

I'm not sure what I'm doing wrong. Hope someone is able to help me out with this.

 

Reply 1 (1)

garyrgilbert
Shopify Partner
431 41 186

Hi There,

 

Not sure but I would say that the you are a bit behind the times. As far as I am aware, even though you have 2021-04 your code is actually using 2022-04. Your best bet would be to upgrade your code to use the current fulfillment api.

 

https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments

 

Cheers,

 

Gary

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