Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
"fulfillment": {
"created_at": "11/21/2019 1:56:10 PM +03:00","notify_customer": "true","tracking_company": "UPS","tracking_number": "1Z93R7576800002741"}
Apps are required to specify alocation_idwhen creating fulfillments.
"location_id" is missing from your payload. try adding a location_id and share results.
If Shopify is expecting a location_id this means it's a client error and shopify should return a 4xx response with a meaningful description of the problem.
Unfortunately adding location_id did not fix the issue, still getting 200 OK and the order is not fulfilled:
{ "fulfillment": { "created_at": "11/21/2019 1:56:10 PM +03:00", "notify_customer": "true", "tracking_company": "UPS", "tracking_number": "1Z93R7576800002741", "location_id": "49641811" } }
Okay, there is one more problem I see with payload. "created_at" attribute. Its not required to include it and also the format does not comply with Shopify format which is ISO 8601 format.
Tried without createdAt and still having the same problem:
Could it be related to registering fulfillment services ?
{ "fulfillment": { "notify_customer": "true", "tracking_company": "UPS", "tracking_number": "1Z93R7576800002741", "location_id": "49641811", "line_items": [ { "id": "4286956339309" }, { "id": "4286956372077" }, { "id": "4286956404845" }, { "id": "4286956437613" } ] } }
Could it be related to registering fulfillment services ?
Yes. It could be. Read these two bullet points in documentation maybe it will lead you in some way.
https://help.shopify.com/en/api/reference/shipping-and-fulfillment/fulfillment#create-2019-10
P.S. All IDs should be in integer form, without double quotes.
Let's wait for input from Shopify support.
Was this ever resolved? I'm having the same problem. My integration has read/write permission for orders, transactions, and fulfillments.
Came here from Google with the same problem.
If I try to create a fulfillment for a gift card and a physical item in one go, I get 422:
{
"fulfillment": {
"location_id": 61366730948,
"tracking_number": null,
"line_items": [
{
"id": 10278823952580,
"quantity": 1,
"gift_card": true,
"fulfillment_service": "gift_card"
},
{
"id": 10278823985348,
"quantity": 1,
"gift_card": false,
"fulfillment_service": "manual"
}
]
}
}
However, if I try to send them one at a time - it works fine.
User | RANK |
---|---|
4 | |
4 | |
4 | |
3 | |
3 |