How do I Manually Create an Autoship Cloud Customer?

Step 1: Create a User in WordPress

WooCommerce Customers are added automatically as Users in Wordpress when they register on your site or when they create an account during WooCommerce Checkout. 

In some cases, you may need to create a customer manually by adding them as a new user as a Wordpress Administrator.

To do this:

  1. As a Wordpress Administrator, visit WP-Admin > Users and select "Add New"
  2. Fill the “New User” form with all required information
    1. For the User’s “Role”, select “Customer”
  3. Select "Add New User" to finish adding the User in Wordpress

Pro tip: you can view the "User Id" of the new user after adding them to Wordpress.  Take note and copy this User Id because it will be useful in step 2 (below).

Step 2: Create an Autoship Cloud Customer

Now that you have added the customer as a Wordpress User, you can create an Autoship Cloud Customer. 

Follow these steps to add an Autoship Cloud Customer as a Wordpress Admin:

  1. Visit WP-Admin > Autoship Cloud > Customers and select the “+” button at the top of the screen
  2. Fill the “Add Customer” form with a minimum of
    1. External Id (this is the Wordpress User Id for the customer)
    2. Customer email
  3. Optional and Suggested: You may also decide to fill inputs in “Add Customer” form with
    1. First and Last Name
    2. Shipping and Billing Addresses
  4. Select “Update” to finish adding the customer to Autoship Cloud

Editing an Autoship Cloud Customer

QPilot uses an External Id that maps to the Users Wordpress Id for Scheduled Orders (see above). Because Customers can have multiple addresses, make sure all of the fields are filled to ensure Scheduled Orders will successfully process.

Troubleshooting Autoship Cloud External Id and Wordpress User Id

What if I input an incorrect External Id when creating an Autoship Cloud customer?
The customer will be invalid and Scheduled Orders for that invalid customer will fail to process.

Since Autoship Cloud customer creation depends on a valid WP User Id (External Id), an invalid User Id (External Id) will fail when Autoship Cloud processes the Scheduled Order and creates it over WooCommerce, due to no valid user in Wordpress/WooCommerce to associate the Order with.

A failure for this reason will look like this in WP-Admin > Autoship Cloud > Scheduled Orders:

Failed Scheduled Order due to Invalid User
In the screenshot example (above), the Autoship Cloud Customer was created using an invalid Wordpress User Id. 

When the Scheduled Order attempted to process, there was no Wordpress User to associate the order with, so it failed instantly with the reason: 400 "Customer ID is invalid".

Still need help? Contact Us Contact Us