Fulfill orders using AliExpress API

How Can We Help?

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?

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.

Place orders using 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.

Bulk place orders using api

Use any of these methods to launch the order fulfillment process. In the next step, you will see the order fulfillment confirmation popup.

Order fulfillment 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.

Order fulfillment popup pay

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. (for example Brazilian Market plugin is using “_billing_cpf” field key with underscore to keep CPF code, therefore you have to add this key to the plugin settings)

Cpf settings example

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.

Invalid shipping address

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.

Shipping address edit mode
Try to place the order again when you change the address.

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.

This entry has 23 replies

  1. Steve Khoury says:

    Hi There I have changed the address several times but still keep getting the “invalid shipping address” I have also gone to aliexpress to update shipping it does not seem to work. is there another solution?

    • Admin says:

      Hello, when using Aliepxress API to fulfill the order, the customer data is transmitted directly to Aliexpress order page to fulfill, also the data is not affected or proceeded by our plugin.

      Orders functionality uses the official API of AliExpress which only accepts unaccented Latin characters in shipping addresses so please use the chrome extension to fulfill orders whose address(including customer’s name) contains: – Non-Latin characters – Accented words that affect the address if their accents are removed Please try our recommendation in fulfilling using the Chrome extension in this case to see if the problem is solved.

    • Tom says:

      Did you ever fix this problem? I’m having the same issue.

      • Admin says:

        Please contact our support center: https://support.al2woo.com

        • Nathalie MAGNIAS says:

          Le lien n’est pas valide 🙂

          • Admin says:

            Let us know if you have further questions

  2. Ken Richards says:

    Why does a placed and fulfilled order not have ID # or Tracking # in the order editing page?

    • Admin says:

      Once you placed the order on AliExpress using API, the order ID is saved to the order and you can find it on the order editing page too. The tracking number will appear when two conditions are met: you synchronize such an order with AliExpress and your supplier (saliexpress seller) added the tracking number to the order on AliExpress.

      • Donna Ensign says:

        Thank you for your order. We are processing it now.

        • Donna Ensign says:

          I can’t add my website for some reason.

  3. Extra says:

    I’m living in Thailand. I can’t register as a seller. Can I get AliExpress API?

    • Admin says:

      Please contact our support center.

  4. Subodh says:

    I am getting errors and errors, I am frustated.

  5. Donna Ensign says:

    Fixed. Thanks

  6. Paulo says:

    Isn’t there any way to put total_cost in the table next to the AliExpress Order ID? Or insert it somewhere in custom fields? Because in Brazil we need the cost of the order to make the invoice to pay the taxes.

    • Admin says:

      Hello, yes, sure we can add such a feature, could you send the feature request to our support center:
      https://support.ali2woo.com

  7. I got error:
    ERROR_WHEN_BUILD_FOR_PLACE_ORDER

    When use:
    aliexpress.trade.buy.placeorder

    • Admin says:

      Hello, we have fixed that error. You have to updated the plugin to latest version.

  8. miro says:

    The operation is failed!

    You need to use a correct API Key.

  9. marco conte says:

    The same problem.
    In fulfill button this error:
    Invalid shipping address. Inserisci 9 o 10 carachter.

    • Admin says:

      When our plugin places an order on AliExpress, it should match your customer shipping address (you have in WooCommerce order) with AliExpress portal address.
      If it’s not possible, you different kind of errors with the tip.
      Try to fill the same address on AliExpress using their built-in address autocomplete form and it should help you to find a error.
      Or you can contact our support center.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


The reCAPTCHA verification period has expired. Please reload the page.

Turn Your Store Into

Cash Machine

Enter email and get FREE eBook with

best dropshipping tips for 2020

guide box

By entering your email, you agree to receive marketing

emails from Ali2woo. You can unsubscribe any time.

Thank you!

Check Your E-mail & Start Downloading

Thank you for your interest in our e-book. We’ve sent you an email with a download link - simply click it, and start downloading

Download our free ebook:

Turn Your Store Into Cash Machine