There are two usage scenarios here. First, you need to make a distinction to clarify which business scenario the business you need belongs to, and then find the corresponding solution to better solve and meet your needs:
1. Your order uses the "apifm" order system, which means you created the order using the "apifm" order creation interface. In this case, “apifm” has its own logistics tracking function [Need to purchase logistics inquiry times], after the user places an order and fills in the express delivery number in the background, the system will automatically track the logistics for you.
2. You just need an interface for querying courier information through courier tracking numbers, or you want to find such a query interface for your existing system.
**In the above two scenarios, you need to activate and purchase the express inquiry service:**
**On the left menu, Factory settings, Module management, search for "Express", after enabling it, click Buy Package to purchase it.**
****
# Free logistics synchronization solution:
If you don’t want to purchase the number of logistics inquiries, you can create a link on the front end (such as mini program, app, H5) where the express delivery number is displayed, and the user will perform the following two actions after clicking:
1. Help users copy the express delivery number to the clipboard;
2. Jump to the corresponding courier company's courier query page (if it is a mini program, you can jump directly to the courier company's mini program to allow users to quickly query conveniently);
# Scenario 1:
The administrator clicks the "Shipping" button in the background order details, selects the courier company and fills in the courier order number, and then the system automatically enables the logistics tracking function.
The front-end interface "Order Details Interface" will return the express delivery (logistics) tracking information of the current order. You can display this information in your web page/mini program/android/ios front-end program to facilitate users to understand the express delivery situation in real time.
**I have filled out the express delivery form for backend shipment, but why is there no express logistics data? **
The logistics tracking information of "apifm" is collected using the "Subscription --> Notification" method
You fill in the courier order number in the background delivery, and we will subscribe your express order to the upstream express information center for the express track. When the express status changes, the information center will push the latest express data to the "apifm";
In other words, if the courier status does not change, the apifm will not receive push information from the courier, and the courier track data will not be updated;
Therefore, if you are in any of the following situations, you will not see the express delivery information updates:
1. I just filled in the express delivery number and there is no data (it will take some time for the express delivery status to change, please be patient)
2. Filled in the wrong express delivery number (I didn’t say this, it definitely won’t work)
3. Filled out the courier order that has been signed for (the order has been signed for, it’s over! The status will not change again! “apifm” can no longer receive courier data!)
**Why is there no prompt to fill in the delivery address when placing an order? **
**Why is there no "Ship" button in the background order details? **
When publishing/editing products in the background, there is an option "Logistics Template", which is also the "Freight Template"
If you select "Do not use logistics", the system will consider the product to be a virtual product;
Virtual goods, such as mobile phone recharge, game equipment, services, etc., do not require express delivery, so there is no need to prompt users to fill in the delivery address!
If you want your goods to require express delivery, or you want users to fill in the express delivery address (shipping address) when placing an order, then:
It is recommended that you set at least one suitable freight template, then edit the product and select a freight template.
# Scenario 2:
You can integrate the express delivery information query interface into your own system to query the express delivery information status in real time.
Log in to your "apifm" backend, go to the left menu "Factory settings" --> "Module management", enable the "Express information query" module, and purchase the api query package in this module to use the express delivery number query interface
**api interface address**
[https://api.it120.cc/gate/express/query](https://api.it120.cc/gate/express/query)
Submit via POST
_Always use application/x-www-form-urlencoded to submit parameters in this interface. Do not use JSON format to submit parameters_
**Parameters:**
> merchantNo
>
The merchant number in the "apifm" background can be viewed by logging into the background "Factory settings" --> "Merchant information"
> merchantKey
>
The merchant secret key of the "apifm" background can be viewed by logging into the background "Factory settings" --> "Merchant information"
> com
>
Courier company code, this parameter can be passed or not, but it is recommended to pass this parameter. For specific courier company code, you can check the corresponding table below
>number
>
Express tracking number
## Express query interface express company code list
