Custom Auth for HTTP Request Node SOAP API Call

Hi, I am using a http request node to send a SOAP API request. I am having trouble understanding how to use the custom auth to store and serve the credentials (api_key, reseller_id) in a way that can be used in the SOAP request.

Does reseller_id and api_key need to be two different custom credentials?
what is the correct way to define them in json in the custom auth?

Thanks in advance!

Here is the workflow

Information on your n8n setup

  • version: 1.104.1
  • SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running in docker
  • Host OS: Ubuntu 24.04, Container OS: whatever the n8n container uses

I’m not an expert on this but taking a stab at it from the documentation I could find.
Synergy’s API’s seem to ingest all of the request through body fields.
This also suggests that it may not really be SOAP, and the request should be getting sent form-url encoded instead of using JSON.
The document also references IP whitelisting, just a call out if that’s not setup yet.
https://synergywholesale.com/wp-content/uploads/2024/06/Synergy-Wholesale-API-Documentation-v3-11.pdf

So I would guess you would want to save your custom auth like this:

{
“body” : {
“user”: “username”,
“pass”: “password”
}
}

And then use the body fields in the node for the rest of your actions.
Hope this helps.

Hi,
I have whitelisted the IP. My issue is that the reseller_id and the api_key need to be passed within specific tags of the api call.
this is the api call:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:WholesaleSystem">     <soapenv:Header/>     <soapenv:Body>         <urn:listDomains soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">             <request xsi:type="urn:listDomains">                 <resellerID xsi:type="xsd:string">RESELLER_ID</resellerID>                 <apiKey xsi:type="xsd:string">API_KEY</apiKey>             </request>         </urn:listDomains>     </soapenv:Body> </soapenv:Envelope>

how would I then specify in the custom auth of n8n where to put the api_key and reseller_id?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.