Automated Address Validation with Billbee & Endereco API in n8n

This workflow automates client shipping address validation using Billbee and the Endereco API, tackling incorrect addresses and saving warehouse teams valuable time. It ensures corrected delivery details are updated automatically, reducing costly shipping errors.
httpRequest
splitOut
set
+5
Workflow Identifier: 1927
NODES in Use: httpRequest, splitOut, set, if, filter, wait, webhook, stickyNote

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow automatically checks and fixes shipping addresses from Billbee orders. It gets order data, cleans up the address fields, and sends them to the Endereco API to validate. If the address has mistakes, it corrects them and updates Billbee orders. It also tags orders based on validation results.

This stops shipment errors caused by wrong addresses, saves time spent on manual fixes, and helps handle address problems before shipping.


Who should use this workflow

This is for businesses using Billbee to manage orders and shipping. If manual address checking wastes time and leads to shipment mistakes, this workflow helps fix that.

It suits teams wanting automatic address validation and clear order tagging inside Billbee.


Tools and services used

  • Billbee API: To fetch and update order shipping address data.
  • Endereco API: To validate and correct addresses.
  • n8n automation platform: Orchestrates the whole process with nodes like webhook, HTTP Request, Set, Filter, If, Split Out, and Wait nodes.

Inputs, processing, and outputs

Inputs

  • Billbee order ID received from webhook trigger.
  • Billbee API keys for authentication.
  • Endereco API Key for address validation.

Processing steps

  • Webhook node catches new order ID.
  • ConfigNode sets API keys and extracts order ID.
  • Wait node delays for 1 second to keep flow stable.
  • HTTP Request calls Billbee to get full order details.
  • Split Out node extracts shipping address fields like first name, last name, street, house number, ZIP code, city, and country code.
  • Set node cleans address fields and replaces unnecessary slashes in house numbers.
  • Filter node removes orders with pickup locations such as “Postfiliale”, “Packstation”, and “Paketshop”.
  • If and Set nodes check if house number is missing and try to get house number from address line 2.
  • HTTP Request node sends address data to Endereco API to validate.
  • If node checks if API returns a corrected address suggestion.
  • If correction found, Split Out node processes new address.
  • HTTP Request updates Billbee order with corrected shipping address.
  • HTTP Request nodes add tags to Billbee order reflecting address validation status (valid, failed, manual review).
  • Wait nodes added between key steps to avoid race conditions.

Outputs

  • Billbee orders with validated and corrected shipping addresses.
  • Order tags marking validation passed, failed, or needs manual checks.
  • Significant saving in manual address verification time.

Beginner step-by-step: How to build this in n8n

Import and setup workflow

  1. Download the workflow using the Download button on this page.
  2. Inside the n8n editor, import the workflow using Import from File.
  3. Open the imported workflow and find the ConfigNode. Put in your Billbee API Key under X-Billbee-Api-Key and your Endereco API Key under X-Auth-Key-Endereco.
  4. Check that the Webhook node has the correct path and is active. This URL will be used in Billbee automation.

Adjust settings if needed

  1. If your Billbee orders use different tags, update them in the HTTP Request nodes that post tags.
  2. Change any IDs, emails, or other info in nodes to match your Billbee setup.

Test and activate

  1. Trigger the webhook using a test order ID to see if the flow runs and updates addresses.
  2. Check API responses from Billbee and Endereco for any errors.
  3. When tests look good, activate the workflow toggle switch for production use.
  4. Set your Billbee automation rule to call this webhook URL with order ID on new or updated orders.

If self hosting n8n is preferred, use a trusted provider like self-host n8n.


Edge cases and failures

If the Billbee API shows “401 Unauthorized”, the API keys are incorrect or expired. Fix API keys in the ConfigNode.

If Endereco API gives empty address corrections, likely address fields were wrong or incomplete. Check the address cleaning in the Set node.

If orders get tagged “manual_address_check” too often, the house number regex logic may need adjusting in the If nodes that check address line 2.


Customization ideas

  • Change tag names across HTTP Request nodes to fit your tracking system.
  • Add extra address parts like NameAddition and AddressLine2 for more detail.
  • Include more pickup keywords in the filter node to skip validation on picking station addresses.
  • Modify Wait node times to better match your API limits and speed requirements.
  • Implement logic to set Endereco API language dynamically based on country codes.

Summary of results

✓ Saves over 10 hours weekly by avoiding manual address fixes.

✓ Fixes shipping address mistakes before they cause delays.

✓ Keeps order status clear in Billbee with validation tags.

✓ Automates address correction for better shipment accuracy.


Frequently Asked Questions

The workflow receives the Billbee order ID via a webhook and uses Billbee API to fetch the full shipping address.
If the API suggests a correction, the workflow updates the shipping address in Billbee automatically.
Yes, it filters out addresses containing keywords like “Packstation” or “Paketshop” to avoid validating pickup locations.
Review and adjust the logic in the If nodes that detect house numbers especially in address line 2 to improve accuracy.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free