{"product_id":"gohighlevel-to-sap-xml-sales-orders-via-make-com-sftp","title":"GoHighLevel to SAP XML Sales Orders via Make.com SFTP","description":"\u003ch3\u003eTurn GoHighLevel Opportunity Webhooks into SAP-Style Sales Order XML (Delivered via Make.com SFTP)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow listens for \u003cstrong\u003eGoHighLevel (LeadConnector)\u003c\/strong\u003e opportunity webhooks, converts the opportunity’s associated products into an \u003cstrong\u003eSAP-style sales order XML\u003c\/strong\u003e file, and sends it to your \u003cstrong\u003ewarehouse\/ERP\u003c\/strong\u003e through a \u003cstrong\u003eMake.com SFTP\u003c\/strong\u003e webhook.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives an opportunity webhook\u003c\/strong\u003e: A POST request hits the n8n webhook endpoint with an \u003ccode\u003eopportunity_id\u003c\/code\u003e in the body.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches opportunity and product data\u003c\/strong\u003e: The workflow calls the \u003cstrong\u003eLeadConnector API\u003c\/strong\u003e to retrieve opportunity details, then fetches association relations.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts the opportunity product records\u003c\/strong\u003e: It splits relations into individual records, filters out non-product relations, and retrieves full details for each associated opportunity product record via LeadConnector.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds SAP sales order XML\u003c\/strong\u003e: Using the \u003cstrong\u003eopportunity ID as the order number\u003c\/strong\u003e, it generates an SAP-style XML document with one sales line per product that has both an \u003cstrong\u003eSAP code\u003c\/strong\u003e and a \u003cstrong\u003equantity\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDelivers XML to your warehouse via Make.com SFTP\u003c\/strong\u003e: The XML text is converted to a binary file and posted to a \u003cstrong\u003eMake.com webhook\u003c\/strong\u003e, which handles uploading it via \u003cstrong\u003eSFTP\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup for your SAP identifiers\u003c\/strong\u003e: Update the XML builder placeholders: \u003ccode\u003eYOUR_SAP_CUSTOMER_NUMBER\u003c\/code\u003e, \u003ccode\u003eYOUR_SAP_COMPANY_CODE\u003c\/code\u003e, and \u003ccode\u003eYOUR_SAP_PARTNER_ID\u003c\/code\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eWhen a sales opportunity is created\/updated in GoHighLevel, automatically generate SAP-ready sales order XML.\u003c\/li\u003e\n  \u003cli\u003eCentralize product mapping (SAP code + quantity) so warehouse\/ERP intake receives consistent structured data.\u003c\/li\u003e\n  \u003cli\u003eReduce manual order creation by routing XML directly to your SFTP-connected fulfillment\/ERP process.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/steps\u003c\/strong\u003e: webhook, http request (LeadConnector API), split out, filter, code (XML building + binary conversion), sticky note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLeadConnector (GoHighLevel)\u003c\/strong\u003e: Uses an API token in the Authorization header and requires a \u003ccode\u003elocationId\u003c\/code\u003e query parameter.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMake.com\u003c\/strong\u003e: Receives the generated XML file through a webhook for SFTP delivery.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938304843955,"sku":"N8N-18936","price":28.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/FjVv66b9y8JY3gi8Oyo_J_kn3U0Cnu.png?v=1788341506","url":"https:\/\/buyflowscripts.com\/products\/gohighlevel-to-sap-xml-sales-orders-via-make-com-sftp","provider":"N8N Commerce","version":"1.0","type":"link"}