You can place your orders automatically using the official AliExpress API. This is the fastest way to place orders nowadays.
Before starting with this method, you have to input your purchase code in the plugin settings and get the access token from AliExpress. In fact, the AlIExpress portal allows you to access their API through that token.
The best thing is that you don’t need to update your access token every day because it’s valid for 30 days. We show the token expiration date, so you can refresh it when the time will come.
Links for quick navigation in this article:
- How to get AliExpress Token?
- How to place orders using AlIExpress API?
- How to place orders having Brazilian or Chille address?
- How to sync products via AliExpress API?
- How to change the order shipping address easily?
- How to place an order again?
How to get AliExpress Token?
You have to get the Access token otherwise the feature will not work. This is requirement of AlIExpress platform.
We described the process in the separate article, the process includes just a few steps.
How to place orders using AliExpress API?
If you successfully completed steps from the previous section and your access token is not expired, you can start to place your orders via API.
Open WooCommerce > Orders page and press the green button to place the single orders. Also, you can tick several orders and place multiple orders.
Use any of these methods to launch the order fulfillment process. In the next step, you will see the order fulfillment confirmation popup.
Please note, that you can change the shipping method of any order on this step. However, it’s not necessary and it’s fine to use preselected shipping options.
Click Fulfill orders automatically.
Normally it will take about 2-3 seconds to place each order, it depends on your internet connection speed. Once all orders are placed, you will see the status near each order. If you see “Done”, then your order has been placed successfully. There can be other statuses like “incorrect address”, “no purchase key”, “expired access token”, etc. When you see those errors, you need to take the appropriate action and then place orders again.
If the plugin has placed your orders, you should see the “Pay for order(s)” button. Click on the button and Ali2Woo will open the pending orders page on AlIExpress in the new browser tab. On that page, you can pay for your orders in bulk or one by one to finalize them.
How to place orders having Brazilian or Chille address?
Each order you send to Brazilian or Chillee address should come with CPF and RUT fields accordighly. For this purpose we added a new CPF meta field and RUT meta field option to the plugin settings.
As you know by default Woocomemrce doesn’t have nor CPF or RUT field as part of the shipping address. Fortunelly, you can easily get that functionality by using an appropriate third-part plugin. For example if you want to add CPF field you can use Brazilian Market on WooCommerce plugin. A similar plugins should be available for RUT field.
Please note any of those plugins add CPF and RUT as custom fields to the order, so you have to contact third-party support to know the name meta field and then just insert it to the settings.
How to sync products via AliExpress API?
We’re going to add this feature in the next plugin releases. Currently, you can use sync the orders through the chrome extension.
How to change the order shipping address easily?
Sometimes, you might see your order is not placed due to an invalid shipping address. In this case, you will see the error message in the popup.
If you face this problem, you should change the shipping address in your order and try to place it again. In the screenshot above you can see “Edit” button after “Ship to” field. Click on it to switch to popup in edit mode.
Please note: if you don’t know what fields caused the shipping address problem, try to open your account on AliExpress and go to “Shipping address” page. There you can try to add the same address and make sure you do that correctly.
How to place an order again?
When your order has been placed, it receives the AlIExpress order ID. You need to open the order editing page and click on Reset A2W Order Data to remove that id. Afterward, you will be able to place the order again.