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.

Custom app sometimes not receiving fulfillment requests from shopify as orders come in

Solved

Custom app sometimes not receiving fulfillment requests from shopify as orders come in

Anna1_1
Shopify Partner
6 1 0

I have developed a custom fulfillment app for our customers using the Admin REST API. As part of that we automatically receive FulfillmentRequests to our fulfilment service whenever an order has been put through, this triggers the processing of the order our side. However sometimes there are periods of time where orders have come through but we have not received requests from shopify to the callback url associated with the fulfillment service. This is a problem as without this no processing of the orders occurs our end.

 

Wondering why this could be? Is there any way to check/configure this? One thing I have noticed that on the guide I followed it says to structure the endpoint as <callback-url>/fuflfilment_order_notification but our callback url currently ends in /fulfillmentorderrequest. Could this be related? But most of the time we get the requests no problem, however there have been 2-3 instances where we didn't receive any for half a day or so. This is the tutorial I followed

 

https://shopify.dev/apps/fulfillment/fulfillment-service-apps/manage-fulfillments-as-a-service-app

 

Anyone experienced/resolved something similar? 

Accepted Solution (1)

Anna1_1
Shopify Partner
6 1 0

This is an accepted solution.

Turns out this was user error to do with our test environment and the shopify requests were actually being sent.

View solution in original post

Replies 4 (4)

Alan
Shopify Staff
129 15 25

Hey @Anna1_1 - thanks for getting in touch! Generally, when it comes to callback URLs we would recommend structuring them as described in our guides, but it shouldn't really have an impact on the data being sent to that callback URL. 

Is this affecting all of the stores the custom app is installed on? If so, I could take a look at an example X-Request ID for one of the stores where the callbacks had initially gone through and then stopped/started. If you have a timeline for when the callbacks didn't seem to be triggered (specific day/time), this would also help me track down what could be happening here. Essentially, we'd just need an example ID  related to where the API was functioning correctly on one of the stores where this is happening and can work backward from that in our logs. 

Happy to clarify anything on our end - hope to hear from you soon. 

Alan | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Anna1_1
Shopify Partner
6 1 0

Hi Alan,

 

Thanks for the response. Currently the custom app is only used by one customer.

On 26th July 2022 the last request received was at 19:48 and the next one received was on the 27th July 2022 at 11:06, however between then ~ 4 orders were received for which a fulfillment request wasn't received. 

 

Where can I find the X-Request ID?

Or is there other any other identifying information I can provide?

The shop_id the app is installed on is 45589921960

 

Anna1_1
Shopify Partner
6 1 0

@Alan please confirm when you can

Anna1_1
Shopify Partner
6 1 0

This is an accepted solution.

Turns out this was user error to do with our test environment and the shopify requests were actually being sent.