{"product_id":"n8n-workflow-crossborderhk-hkg-shenzhen-fare-estimate-via-api-resend-email","title":"n8n Workflow: CrossBorderHK HKG→Shenzhen Fare Estimate via API + Resend Email","description":"\u003ch3\u003eGet HKG→Shenzhen fare estimates automatically—then email a fixed trip summary and log everything\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow collects an internal HKG-to-Shenzhen transfer request via an authenticated n8n Form, calls the \u003cstrong\u003eCrossBorderHK\u003c\/strong\u003e transfer-estimates API for a starting-fare reference (or manual-review outcome), and sends a structured trip summary through \u003cstrong\u003eResend\u003c\/strong\u003e—while recording submission and delivery status in an n8n Data Table.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives staff submissions\u003c\/strong\u003e from an n8n Form secured with \u003cstrong\u003eBasic Auth\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes form fields\u003c\/strong\u003e into a consistent payload and generates a \u003cstrong\u003eunique submission ID\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTracks every request\u003c\/strong\u003e by upserting the submission into an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls the CrossBorderHK estimate API\u003c\/strong\u003e using an authenticated HTTP Request, capturing the response even if the API returns an error.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClassifies the result\u003c\/strong\u003e as:\n    \u003cul\u003e\n      \u003cli\u003ea \u003cstrong\u003estarting-fare reference\u003c\/strong\u003e,\u003c\/li\u003e\n      \u003cli\u003ea \u003cstrong\u003emanual-review requirement\u003c\/strong\u003e, or\u003c\/li\u003e\n      \u003cli\u003ean \u003cstrong\u003eAPI error\u003c\/strong\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds an HTML email summary\u003c\/strong\u003e containing the relevant amount or reasons based on the API response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the email via the Resend API\u003c\/strong\u003e to a fixed internal recipient, then writes the provider \u003cstrong\u003emessage ID\u003c\/strong\u003e and delivery status back to the Data Table (or marks delivery as \u003cstrong\u003eunknown\u003c\/strong\u003e when ambiguous).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAutomation for internal teams estimating \u003cstrong\u003eCrossBorderHK HKG→Shenzhen\u003c\/strong\u003e transfer fares from staff-submitted trip details.\u003c\/li\u003e\n  \u003cli\u003eOperations workflows that need \u003cstrong\u003emanual-review triggers\u003c\/strong\u003e when the API cannot provide a clear estimate.\u003c\/li\u003e\n  \u003cli\u003eAudit-ready tracking of \u003cstrong\u003esubmission and email delivery status\u003c\/strong\u003e in a centralized n8n Data Table.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes \/ components:\u003c\/strong\u003e Form Trigger, Basic Auth, Code, Switch, HTTP Request, Data Table, Sticky Note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e CrossBorderHK estimate API (HTTP Header Auth) and Resend (HTTP Header Auth).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogging:\u003c\/strong\u003e upsert submission records and update with Resend message ID + delivery status.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46058946592947,"sku":"N8N-19701","price":50.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Tx2Pb9dIG-VJcERSnI67H_WqMLnUlf.png?v=1789722241","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-crossborderhk-hkg-shenzhen-fare-estimate-via-api-resend-email","provider":"N8N Commerce","version":"1.0","type":"link"}