# Configuring a function Node to get and return POST request HTTP node

**URL:** <https://community.n8n.io/t/configuring-a-function-node-to-get-and-return-post-request-http-node/71094>\
**Category:** Questions\
**Created:** [January 17, 2025, 12:31pm UTC](https://community.n8n.io/t/configuring-a-function-node-to-get-and-return-post-request-http-node/71094 "2025-01-17T12:31:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manueldevi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/manueldevi/32/53981_2.png) [@Manueldevi](https://community.n8n.io/u/Manueldevi)\
**Post date:** [January 17, 2025, 12:31pm UTC](https://community.n8n.io/t/configuring-a-function-node-to-get-and-return-post-request-http-node/71094/1 "2025-01-17T12:31:29Z")

</div>

I have an HTTP node that calls an API to post request for a response. I mostly get an error response implying that the externalId being passed in the request is a duplicate. To be able to know the exact externalId being passed, I have connected the http node to a function node to get the request. however, that is not working. The request is not passed when I run the function node

No error is being returned. The function node response is being received

return [  
{  
json: {  
ddsource: “n8n”,  
service: “n8n”,  
hostname: “n8n-hostname”,  
message: “Payment API Request”,  
tags: [“env:production”, “team:automation”],  
requestPayload: $node[“Pay NG”].request, // Include the request payload  
response: $node[“Pay NG”].json.response // Include the response  
}  
}  
];

below is the out put of the function node  
[  
{  
“ddsource”: “n8n”,  
“service”: “n8n”,  
“hostname”: “n8n-hostname”,  
“message”: “Payment API Request”,  
“tags”: [  
“env:production”,  
“team:automation”  
]  
}  
]

- **n8n version: 1.73.1**
- \*\*Database (default: SQLite): \*\*
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app): cloud**
- **Operating system: Linux**

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 17, 2025, 12:31pm UTC](https://community.n8n.io/t/configuring-a-function-node-to-get-and-return-post-request-http-node/71094/2 "2025-01-17T12:31:31Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [April 17, 2025, 12:31pm UTC](https://community.n8n.io/t/configuring-a-function-node-to-get-and-return-post-request-http-node/71094/3 "2025-04-17T12:31:32Z")

</div>

Closed on April 17, 2025, 12:31pm UTC

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