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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

I Am trying to Fulfillment By REST API It Showing Error

I Am trying to Fulfillment By REST API It Showing Error

Sansaar
Shopify Partner
48 5 5
{"errors": Fulfillment order does not exist."}

Request End Point: 2023-01/fulfillment_orders/5296986652955/fulfillment_request.json

{"fulfillment":{"message":"","notify_customer":false,"tracking_info":{"number":"396171552950","url":"#","company":"FEDEXGRND"},"line_items_by_fulfillment_order":[{"fulfillment_order_id":"5296986652955"}]}} 

 

Replies 3 (3)

ShipMyOrders
Shopify Partner
4 0 0

That the wrong endpoint. That one is for creating a Fulfillment_request with a fulfillment service, not creating a Fulfillment. "Hey, guys, fulfill these items, please!"

 

You're want to create a create a fulfillment for a FulfillmentOrder 

Sansaar
Shopify Partner
48 5 5

Hello,

 

I am Tring to "creating a Fulfillment_request," But It is Showing Error "

Fulfillment order does not exist.

Request End point: 

fulfillment_orders/5296986652955/fulfillment_request.json

 

Order Number Is: 5296986652955

Is that right Or Not ?

 

Request Url is: 

https://rp55.xyz/app/gotcha/Shopify_Tracking.php

 

 

Please Help me Proper process because I am using the 2021-04 API Version. Today I am updating the 2023-01 version of all Done Only APIs. I am Stuck on Fulfillment and how I can Add a Tracking Code. 

ShipMyOrders
Shopify Partner
4 0 0

>I am trying to "creating a Fulfillment_request," But It is Showing Error "

 

No, you are not. That is the payload of a Fulfillment. Stop using that endpoint. It's showing an error because you're using the wrong endpoint.

 

A Fulfillment is not at all the same thing as a Fulfillment_Request.

 

A Fulfillment_Request is a request to a Third Party Fulfillment center that they should fulfill items from a FulfillmentOrder. It would never include tracking info.

 

You are trying to create a Fulfillment for a Fulfillment Order.

 

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

You need to POST your properly formatted payload to /admin/api/2023-01/fulfillments.json 
 
It does not matter what the ID is because there is no longer any id in the url. The FulfillmentOrder ID is in your payload.