# How to send a POST request to external server when user signs up?

**URL:** <https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982>\
**Category:** Ask the community\
**Tags:** wix-forms, wix-members-area, question, code\
**Created:** [October 27, 2024, 2:09am UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982 "2024-10-27T02:09:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zijing\_Wu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zijing_wu/32/98855_2.png) [@Zijing\_Wu](https://forum.wixstudio.com/u/Zijing_Wu)\
**Post date:** [October 27, 2024, 2:09am UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982/1 "2024-10-27T02:09:12Z")

</div>

**Question:**  
Hi everyone, I’m using Wix Member Area, Wix Pricing Plans and Wix Forms apps to build a software service subscription website. I’m wondering how could I have Wix send a POST request to my own product server when 1) A new user signed up, 2) A user has paid for the membership?

I see that Wix supports javascript code on submit, but I don’t know how to set this up for the apps I’m using.

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [October 27, 2024, 2:35am UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982/2 "2024-10-27T02:35:19Z")

</div>

[https://dev.wix.com/docs/velo/api-reference/wix-members-backend/events/on-member-created](https://dev.wix.com/docs/velo/api-reference/wix-members-backend/events/on-member-created)

> **[Fetch | Velo](https://dev.wix.com/docs/velo/api-reference/wix-fetch/fetch)**
>
> Retrieves the specified resource from the network using HTTPS. The fetch() function fetches an HTTPS resource from the network. It returns

---

<div class="post-metadata">

**Author:** ![Zijing\_Wu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zijing_wu/32/98855_2.png) [@Zijing\_Wu](https://forum.wixstudio.com/u/Zijing_Wu)\
**Post date:** [October 27, 2024, 2:41am UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982/3 "2024-10-27T02:41:04Z")

</div>

Hi Dean, thank you for the help. Yea I have checked this page, but I’m not sure how can I added to my form in Wix Editor. Do you have any idea on that?

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [October 27, 2024, 2:59am UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982/4 "2024-10-27T02:59:34Z")

</div>

The form does not need any modification to implement that

Where are you getting stuck?  
Are you sure you’ve gone through both of the links I sent?

---

<div class="post-metadata">

**Author:** ![Zijing\_Wu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/zijing_wu/32/98855_2.png) [@Zijing\_Wu](https://forum.wixstudio.com/u/Zijing_Wu)\
**Post date:** [October 27, 2024, 4:14am UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982/5 "2024-10-27T04:14:55Z")

</div>

Yes I have read them, I’m stucked here

 ![image](https://us1.discourse-cdn.com/wix/original/3X/b/f/bf1c6f2b7534d73023d8ef5083efe0647c52e66f.png)  
In Editor, I go to Site Pages & Menu, and then Sign up & Login, and then Member Sign Up Form, and I see this page but don’t see where I could add the onsubmit method

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [October 27, 2024, 12:58pm UTC](https://forum.wixstudio.com/t/how-to-send-a-post-request-to-external-server-when-user-signs-up/63982/6 "2024-10-27T12:58:09Z")

</div>

Hey there,

These are backend events and the code for the same needs to be put inside the **events.js** file.  
Here’s how:

> **[Velo Backend Events](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/events/velo-backend-events)**
>
> Many Velo modules, including universal modules such as wix-pricing-plans.v2 and backend modules such as wix-media-backend, include events that are triggered when the required conditions are met. Examples include:
