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