Dynamic Pricing

Hi,

I am new to Wix and prototyping an idea.

My use case is to call a 3rd party API in real- time to retrieve a price for a given product as the shopper navigates through the store.

I’ve created a sample store that has a Product Page and Dynamic Pages - Products (All) and Products (Slug).

I am not sure what client or server side APIs to use? Can I use hooks?

Any guidance would be appreciated.

" I am not sure what client or server side APIs to use? Can I use hooks?"

What are you trying to accomplish? What APIs? What hooks?

My use case is to call a 3rd party API in real-time to retrieve a price for product. I do not want to use the price that is stored in the DB. Hopefully, this makes sense.

To learn how to access external services, you will need to read about how to access 3rd party services in the article Corvid: How to Access 3rd-Party Services with the Fetch API .

A nice simple example to start with is Create a Weather Widget . Also, t ake a look at the Advanced examples , many of them access 3rd party services. A couple of good examples to start with are: Example: Using the Places API from Google Maps services and Example: Send email with the SendGrid REST interface .

Thank you very much! I will review the links.