SOLVED: Third-party API Integration?

Is it possible to integrate API from a courier onto Wix so customers can track their orders? Got in touch with Wix Support previously and apparently only support ShipStation which doesn’t cover the country we’re in.

Is there any way to add custom APIs?

You should read about how to access 3rd party services in the article Wix Code: How to Access 3rd-Party Services with the Fetch API .

Take 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 .

This post is almost two years old, but it has 2000 views and needs an up to date answer.

YES . It is possible. YES , you will need to know how to use fetch, but times have changed.

You will have to create the order fulfillment scenario and lifecycle from scratch. While this in general is not the fastest of jobs to perform in any system, WIX’s API’s make it relatively straightforward and much more painless than it could be.

To start, you can take an action whenever an order is [placed.](placed.
https://www.wix.com/corvid/reference/wix-stores-backend/events/onneworder)
[https://www.wix.com/corvid/reference/wix-stores-backend/events/onneworder](placed.
https://www.wix.com/corvid/reference/wix-stores-backend/events/onneworder)

Then, you can reach out to you last mile provider, request fulfillment, and notify the WIX store system of that fulfillment using:
https://www.wix.com/corvid/reference/wix-stores-backend/createfulfillment

When your shipper gives you updates (many use a webhook - think of it as you site is an API that someone else will send data to), you can receive the data sent to you from the shipper. This part is a rabbit hole that will take a good amount of time to learn about if you are not familiar.
https://www.wix.com/corvid/reference/wix-http-functions/introduction

And then pass that information along to the WIX store system.
https://www.wix.com/corvid/reference/wix-stores-backend/updatefulfillment

Or, if it happens to be a bulk order and your shipper is in the stone age, you can even send them an email without a lot of fuss.
https://www.wix.com/corvid/reference/wix-stores-backend/sendfulfillmentemail

Pretty nice explanation. However, keep in mind that the APIs were much different two years ago, and many of the APIs that you point out in your post did not exist back then.

@yisrael-wix And that’s why we have edit buttons :smile:

@robert36125 Not really. Most of the time it’s not worth “revisiting” older posts since even the question is no longer relevant, and the question or topic is outdated.

Users are better served by posting new questions within a more recent context. In this way the answers will be better focused and more relevant, and the developer has a better chance of getting the answer that they’re seeking.

@yisrael-wix That was in response to my post. Reread it.

I also disagree with that idea. Times change. Closing a post keeps people from understanding that. WIX has made too much progress recently to give users the chance to think things aren’t progressing. If a post is that stale, and no longer useful, it needs to go away instead of being locked.

@robert36125 aha!