Title: Square Payment Failed (Status code CUSTOMER_NOT_FOUND:
Last modified: August 18, 2024

---

# Square Payment Failed (Status code CUSTOMER_NOT_FOUND:

 *  Resolved [cori80](https://wordpress.org/support/users/cori80/)
 * (@cori80)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/)
 * Hello everyone. Using Version 4.7.2. We are receiving the error: Square Payment
   Failed (Status code CUSTOMER_NOT_FOUND: Customer with ID `XYZ` not found.)
 * I understand the code means that the provided customer id can’t be found in the
   merchant’s customers list but this explanation doesn’t make sense to me. Meaning,
   why the Woo-commerce user (customer) need to be in the merchant’s list for the
   system to process the order?
 * Thank you for you help in advance.
    -  This topic was modified 1 year, 9 months ago by [cori80](https://wordpress.org/support/users/cori80/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/#post-17960862)
 * Hi [@cori80](https://wordpress.org/support/users/cori80/),
 * Thank you for reaching out.
 * The customer ID in question refers to the unique identifier that Square uses 
   to recognize your customers in their system, not the WooCommerce user.
 * Just curious, does this happen to all your customers or only on specific ones?
 *  Thread Starter [cori80](https://wordpress.org/support/users/cori80/)
 * (@cori80)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/#post-17960883)
 * Thanks for the prompt reply. Only specific ones. Not that the website had been
   up and running for long (4 months or so) but from what I can tell, two of the
   very first registered accounts has the problem above among 50+
 * Based on your comment, you’re saying square is trying to find that particular
   customer in square’s database to validate? I have the sync inventory option enabled
   on the plugin if it helps any.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/#post-17961027)
 * Hi [@cori80](https://wordpress.org/support/users/cori80/)
 * Does this occur with a subscription? However, yes, you are correct. The Square
   Payment Gateway uses the customer ID to identify the customer in Square’s system,
   not in WooCommerce. When a payment is attempted, the system checks if the customer
   ID exists in the Square’s database. If the customer ID isn’t found, it returns
   the `CUSTOMER_NOT_FOUND` error.
 * Since you mentioned that this issue is only happening with specific customers,
   it’s possible that there may have been some issue with how these customer profiles
   were created or synced in Square. More info: [https://developer.squareup.com/forums/t/payments-failing-retrievecustomer-error-customer-with-id-xxx-not-found/10676/4](https://developer.squareup.com/forums/t/payments-failing-retrievecustomer-error-customer-with-id-xxx-not-found/10676/4)
 * Additionally, the inventory sync option should not affect the payment process.
   However, to troubleshoot this issue further, I would recommend checking the customer
   information in both WooCommerce and Square to ensure it matches. If the issue
   persists, you may want to consider reaching out to Square’s support for further
   assistance.
 *  Alternatively, you could ask these customers to update their payment details,
   which would generate a new customer ID in Square’s system.
 * Please let us know if this helps or if you need further assistance.
 *  Thread Starter [cori80](https://wordpress.org/support/users/cori80/)
 * (@cori80)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/#post-17969843)
 * Thank you Shameem. It’s not a subscription. We sell wholesale products to brick
   and mortar retail stores. There is an approval process and we require our customers
   to create an account so we can have their reseller certificates etc.
 * I compared the customer IDs like you suggested. One didn’t match and the other
   wasn’t in Square’s customer directory. I simply copied and updated the ID on 
   WooCommerce. Hopefully that should fix the issue for that particular customer.
 * For the one that doesn’t exist. Should I create one manually in the square directory?
 *  Plugin Support [omarfpg a11n](https://wordpress.org/support/users/omarfpg/)
 * (@omarfpg)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/#post-17971927)
 * Hi [@cori80](https://wordpress.org/support/users/cori80/),
 * Thank you for the additional details. Did you change your Square account in WooCommerce
   at any time by any chance? That may have caused the mismatch issue, [as per this detailed reply from Square support in a similar case](https://developer.squareup.com/forums/t/payments-failing-retrievecustomer-error-customer-with-id-xxx-not-found/10676/4).
 * > I compared the customer IDs like you suggested. One didn’t match and the other
   > wasn’t in Square’s customer directory. I simply copied and updated the ID on
   > WooCommerce. Hopefully that should fix the issue for that particular customer.
   > For the one that doesn’t exist. Should I create one manually in the square 
   > directory?
 * Keep us posted if you still present any issues with this! And yes you can try
   creating one manually, here’s the guide from Square: [https://developer.squareup.com/reference/square/customers-api/create-customer](https://developer.squareup.com/reference/square/customers-api/create-customer).
 * I’d like to learn more about the root issue first, though; that’s why I’m asking
   if you switched the Square account at any time in your store.
 * Please keep us posted!
 * -OP

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Square Payment Failed (Status code CUSTOMER_NOT_FOUND:’ is closed to 
new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [omarfpg a11n](https://wordpress.org/support/users/omarfpg/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-customer_not_found/#post-17971927)
 * Status: resolved