💬 Shopify order fulfillment & send tracking link via WhatsApp using Rapiwa API

⚡ 503 views · 💬 Lead Nurturing & AI Sales Agents

💡 Pro Tip — If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly — no app review needed.

View All Scrapers

Description

Shopify Order Fulfillment & Send Tracking Link via WhatsApp Using Rapiwa API

Who is this for?

This n8n workflow automatically sends WhatsApp notifications to customers when their Shopify orders are fulfilled. It extracts order details, validates customer phone numbers for WhatsApp compatibility using the Rapiwa API, sends tracking information via WhatsApp, and logs all interactions in Google Sheets with appropriate verification status.


What this Workflow Does

This n8n workflow listens for new order fulfillments on Shopify and automatically sends a WhatsApp message with tracking details to customers. It uses the Rapiwa API to verify if the customer’s number is on WhatsApp, formats all the data, sends a message, and logs everything to Google Sheets for tracking and auditing purposes.


Key Features

Requirements

Tools & Services


How to Use

Step-by-step Setup

  1. Connect Shopify to n8n

    • Use the Shopify Trigger node
    • Set event to fulfillments/create to capture new fulfillment events
  2. Extract Webhook Data

    • Use a Code Node to format the webhook response
    • Capture order, customer, and tracking details
  3. Fetch Complete Order Information

    • Add an HTTP Request Node using Shopify Admin API
    • Include the order ID to retrieve customer phone, email, and product details
  4. Clean the Phone Number

    • Use a Code Node to:
      • Remove non-numeric characters
      • Format number to international standard
      • Combine customer first and last name
  5. Batch Process Orders

    • Use the Split In Batches node to handle customers one-by-one
  6. Validate WhatsApp Number

    • Use Rapiwa’s /verify-whatsapp endpoint with a Bearer Token
    • Check if number exists on WhatsApp
  7. Conditional Branching

    • Use an If Node:
      • If data.exists === "true" → Verified path
      • Else → Unverified path
  8. Send WhatsApp Message

    • Send tracking info with a personalized message:
      Hi [Customer Name],
      Good news! Your order has just been fulfilled.
      Tracking Number: [Tracking Number]
      Track your package here: [Tracking URL]
      Thank you for shopping with us.
      -Team SpaGreen Creative
  9. Log Data to Google Sheets

    • Log verified and unverified entries in separate sheets
    • Include all relevant customer and tracking data
  10. Add Delay Between Messages

    • Use the Wait Node to avoid rate limits on Rapiwa API

Requirements


Google Sheet Column Reference

A Google Sheet formatted like this ➤ Sample

customer_idnameemailnumbertracking_companytracking_numbertracking_urlproduct_titlestatus
8986XXXX06Abdul Mannancontact@spagreen.net8801322827799Amazon LogisticsSG-OT-02https://traxxxG-OT-02S25 Ultra 5G Smartphoneverified
883XXX7982Abdul Mannancontact@spagreen.net8801322827799Amazon LogisticsSG-OT-N03https://traxxxGOT-N03Samsung Galaxy S24 Ultraverified

Workflow Logic Summary

  1. Shopify Webhook Trigger: On order fulfillment
  2. Extract Webhook Payload
  3. Fetch Order + Customer Details
  4. Clean and Format Phone Number
  5. Split into Single-Item Batch
  6. Check WhatsApp Validity via Rapiwa
  7. If Verified:
    • Send WhatsApp Message
    • Log to verified sheet
  8. If Not Verified:
    • Skip message
    • Log to unverified sheet
  9. Add Delay with Wait Node
  10. Repeat for Next Fulfillment

Customization Ideas


Notes & Warnings


Support

🔗 Nodes Used

Google Sheets, HTTP Request, Shopify Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup