Shopify Get Order Error

I am trying to create a shopify chatbot which the customers can use to cancel their orders.
And no matter what order ID I tried, I always get this error in make. You can check it in the screenshots below.


Capture2

How are you mapping the fields in the Shopify module?

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what youā€™re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the Trigger modules by running the scenario, then click the white speech bubble on the top-right of each module and select ā€œDownload output bundlesā€.
Screenshot_2023-10-06_141025

A.

Save the bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading it here will look like this:

bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Thanks for the reply! Here is the additional data youā€™ve asked for.

Capture3

blueprint.json (24.4 KB)

I cannot give you the output bundles because for some reason it didnā€™t create anyā€¦It says in the first screenshot that the data size is 0ā€¦so i donā€™t knowā€¦

Iā€™m looking for the output bundle of the webhook module, to see the variable type of the order id.

You can find examples from previous scenario runs in the scenario History tab

2 Likes

Ohh, allright. Here it is:

ā€œ[
{
ā€œorderidā€: 1001,
ā€œconverIdā€: ā€œconv_01HP762FVV376MX6YDDF95HNAWā€,
ā€œuserIdā€: ā€œ46de4b89-41ee-45d9-817d-20dec800d5b4ā€,
ā€œbotIdā€: ā€œ20926be0-edc6-4165-8ddd-250caeeb71bfā€
}
]ā€

That looks correct to me.

The only thing I can think of is that the connection to Shopify isnā€™t with the store containing that order (if you have multiple Shopify stores).

2 Likes

I only have one storeā€¦But I will try re-establishing the connection

Apparently the make integration for shopify(on the shopify app store) only has permissions to view products or categories. Any idea on how to add more permissions?

@Alex_Dobre @samliew I know why you are getting the ā€˜No Dataā€™ error. Iā€™ve just been beating my head against a wall for hours trying to figure out the sameā€¦and I finally did! But itā€™s not happy news from what I can tell :sob:

It seems that Make is only searching for orders by their ā€˜Order IDā€™. It took me a while, but I figured out that the ā€˜Order IDā€™ is a different number than the ā€˜Order Numberā€™, which is the common four digit number that we would expect to use. The ā€˜Order IDā€™ is a secret internal number that is not shared with the customer ever, and not directly shared with the merchant. You can find this number if you visit the backend order page on your Shopify admin. Itā€™s the number at the end of the url in your address bar.

This is a big issue for my use case. I have a support chat bot and when someone asks for an order/shipping status the bot asks for their order number and then sends that number to the webhook in Makeā€¦this number will of course be the 4 digit ā€˜Order Numberā€™ that the customer is given on order confirmation page. But that doesnā€™t work. It seems that the only input for Make to find and pull data from a Shopify order is the secret ā€˜Order IDā€™. I get the same No Data error when the proper 4 digit Shopify ā€˜Order Numberā€™ is used.

@Alex_Dobre, if you try inputting the secret ā€˜Order IDā€™ your scenario will most likely work perfectly, as mine did.

@samliew Is there a way to search via ā€˜Order Numberā€™? Or can this please be fixed? I donā€™t see how this integration is supposed to be useful when the input data required is a secret number not given to merchant or customer that is only accessible by visiting a backend order page and copy/pasting it from the address bar.

Sorry, Iā€™m not familiar with Shopify as I do not have an account there.

Does the Search Orders module have a order ID/number field?

Screenshot_2024-02-15_132814

Thatā€™s a great idea! Iā€™m sure others would agree that this is a nice feature to have.

You can submit this suggestion to the Idea exchange, under App improvement ideas.

Donā€™t forget to search for it first, just in case someone already suggested it, so that you donā€™t end up creating a duplicate.
Screenshot_2024-01-17_130153

Thanks @samliew; Iā€™m realizing that you donā€™t actually work for Make haha, Iā€™m sorry for asking if you can fix it! :laughing: I appreciate your reply a ton, as it put me on the right track to figure this out.

Iā€™ve figured out a work around! So relieved. Though it seems silly to have to do it this way when the other module could just accept a ā€˜Queryā€™ rather than forcing the use of secret ā€˜Order IDā€™. That limits these modules a ton.

Anyway, after scouring every single relevant Shopify module, I found that the ā€˜Search for Customerā€™ module actually allows an input of a plain text ā€˜Queryā€™ rather than it needing to be an ā€˜Order IDā€™ like every single other module related to customers/orders/fulfillment data.

So to make this work:

  1. I have a webhook that receives an email address or name associated with the customer whos order Iā€™m trying to pull.

  2. Then Iā€™ve connected the webhook to a Shopify ā€˜Search for Customerā€™ module; then select the name/email input from your webhook for the ā€˜Queryā€™ input in the module.

  3. Then you need to connect your ā€˜Search for Customerā€™ module to a Shopify ā€˜Get Orderā€™ module.

  4. In the get order module you can pull info from the customer for the ā€˜Order IDā€™ field. And lo and freakinā€™ behold, there is a ā€˜last order IDā€™ option!! This pulls that secret ā€˜Order IDā€™ from the customers last order.

  5. Then you can create a webhook response and pull any of the order data that the ā€˜Get Orderā€™ module has and send that to the webhook response/wherever you need to send it.

Feeeew, this has been a half day journey getting this working. Hope it helps someone else!

3 Likes

Wow, what a workaround, thanks for sharing it with us.

Iā€™m glad you managed to figure this out. Good job and great answer!

2 Likes