How to send API call on order completion

Hi,

We’re looking into this service to provide digital services and, once an order is completed, we’d like to use WixCode to send out an API call so that a function will be unlocked in our service.

The goal is to unlock a feature in our application rapidly once payment is confirmed.

Thank you in advance,

David

Hi,
You can use fetch method .
Check out this tutorial as example of calling a REST API:

Good luck!
Roi

Hi,

This is great, thank you!

I saw a few examples and videos and I understand that these examples are for content pages. Are there any examples for integrating the fetch method during the buying process?

Thanks again,

David