Table of Contents

Shopify in Landbot: Get Order Information

Abby Updated by Abby

Want to let your customers check their order status directly in the chat—without waiting for a human agent?

With Landbot and Shopify working together, you can pull real-time order details like confirmation numbers, shipping status, and product information instantly.

Whether you're feeding that data to an AI for smart responses or simply displaying it back to the customer, this integration turns your chatbot into a 24/7 order assistant.

PART ONE: Configuring Your Shopify App

1. Navigate to dev.shopify.com/dashboard/ and log in to your Shopify partner account or store admin.

2. Click the "Create app" button and give your app a descriptive name (e.g., "Landbot Order Integration").

3. Scroll down to the "Scopes" section and click "Select scopes" on the right to open the dropdown menu.

Check the following required scopes:

Scope

Purpose

☑ read_orders

Access current order details

☑ read_all_orders

Retrieve orders older than 60 days

☑ read_customers

Access customer information associated with orders

☑ write_orders

Update order status (optional, but recommended)

4. Scroll down and click the "Release" button to save your configuration.

5. Click on 'Install app'

6. Click on 'Settings' inside the app, copy your client ID and secret.

PART TWO: Building the Landbot Flow

1. The first thing we'll do is ask the user for their order confirmation number, we'll store it in the variable @order_number

2. Next we'll get our access token, in the webhook block we'll do a POST request, you'll need to add your store name in the url: https://your-store-here.myshopify.com/admin/oauth/access_token

3. In the headers you'll add the following:

Content-Type

application/json

4. Next in the body of the webhook you'll add your client ID and secret:

{
"grant_type": "client_credentials",
"client_id": "xxxxxxxxx",
"client_secret": "sjsjxxxxxxxxxx"
}

5. Test the request and save only the access token from the drop down (copy it to your clipboard for the next step)

6. In the next webhook block you'll paste this url in a GET request, replacing the order number at the end of the url with a real order number and replacing your-shopify-domain with your own shopify shop name: https://your-shopify-domain.myshopify.com/admin/api/2026-01/orders.json?confirmation_number=j2sjf

7. In the headers section you'll paste the access token you copied from the previous webhook block

X-Shopify-Access-Token

XXXXXXXyour-token-hereXXX

8. Next you'll test the request and save the part of the response you'll use in the flow:

9. Finally, you'll go back and replace the order number of the second webhook with the variable: @{order_number}

And then scroll down to Headers and replace the temporary access token with the variable that contains our access token from the first webhook:

Was this article helpful?

Send an Email with Brevo

Contact