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:
- As a Wordpress Administrator, visit WP-Admin > Users and select "Add New"
- Fill the “New User” form with all required information
- For the User’s “Role”, select “Customer”
- 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:
- Visit WP-Admin > Autoship Cloud > Customers and select the “+” button at the top of the screen
- Fill the “Add Customer” form with a minimum of
- External Id (this is the Wordpress User Id for the customer)
- Customer email
- Optional and Suggested: You may also decide to fill inputs in “Add Customer” form with
- First and Last Name
- Shipping and Billing Addresses
- Select “Update” to finish adding the customer to Autoship Cloud
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".