Unable to export Customer Integration
-
Hi, I am unable to export customer from one erp to another i gave the necessory fields
data = {
“email”: ‘[email protected]’,
“first_name”: ‘jake’,
“last_name”: ‘test’,
“username”: ‘jake’,
“role”: ‘customer’,
}Its shows error like:
{‘code’: ’empty_data’, ‘message’: ‘Not enough data to create this user.’, ‘data’: {‘status’: 400}}
I tried defining billing address and shipping address still show same error
Any way to solve this issue,Using RESTAPI
-
This topic was modified 2 years, 6 months ago by
king1344.
-
This topic was modified 2 years, 6 months ago by
-
Hello @king1344,
Thank you for reaching out!I tried defining billing address and shipping address still show same error
Any way to solve this issue,Using RESTAPI
Are you doing this manually or via a third-party service? If manually, what’s the API call you’re using?
Could you also attach a copy of your site’s System Status report? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support” (after you scroll down a bit)”. Once done, please paste it here in your reply or via a text-sharing service like https://gist.github.com/.
Look forward to hearing back from you.I am using 3rd party app odoo from there i am trying to export customer details to the woocommerce but i get the error Not enough data to create this user Rest of the exports and imports are working properly like products, orders, except customer export I am unable to export the customerWordPress Environment WordPress address (URL): https://woo-usually-zealous-believer.wpcomstaging.com Site address (URL): https://woo-usually-zealous-believer.wpcomstaging.com WC Version: 8.4.0.10 REST API Version: ✔ 8.4.0.10 WC Blocks Version: ✔ 11.5.4 Action Scheduler Version: ✔ 3.6.4 Log Directory Writable: ✔ WP Version: 6.4.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_GB External object cache: ✔ Server Environment Server Info: nginx PHP Version: 8.1.26 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 8.4.0 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 10.4.28-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ Database WC Database Version: 8.4.0.10 WC Database Prefix: wp_ Total Database Size: 5.96MB Database Data Size: 3.10MB Database Index Size: 2.86MB wp_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.14MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_abandoned_carts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_automatewoo_customers: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_automatewoo_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_guests: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_automatewoo_guest_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_automatewoo_log_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_queue: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 1.33MB + Index: 0.06MB + Engine InnoDB wp_postmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_bis_activity: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_bis_notifications: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_bis_notificationsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gc_activity: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cards: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cardsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deploymentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deployments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_prl_frequencies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_generator_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_tracking_conversions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB Post Type Counts attachment: 20 jetpack_migration: 2 page: 9 post: 1 product: 4 revision: 2 wp_global_styles: 1 wp_navigation: 2 wp_template: 4 Security Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ Active Plugins (22) Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3 AutomateWoo: by WooCommerce – 6.0.9 Crowdsignal Forms: by Automattic – 1.7.0 WordPress.com Editing Toolkit: by Automattic – 4.3633 Gutenberg: by Gutenberg Team – 17.0.2 Jetpack: by Automattic – 12.9-a.9 Layout Grid: by Automattic – 1.8.4 Page Optimize: by Automattic – 0.5.4 Crowdsignal Polls & Ratings: by Automattic Inc. – 3.1.1 Woo AI: by WooCommerce – 0.5.0 WooCommerce Back In Stock Notifications: by WooCommerce – 1.6.6 WooCommerce Brands: by WooCommerce – 1.6.62 WooCommerce Gift Cards: by WooCommerce – 1.16.6 WooCommerce Google Analytics Integration: by WooCommerce – 1.8.9 WooCommerce Min/Max Quantities: by WooCommerce – 4.1.3 WooPayments: by Automattic – 6.8.0 WooCommerce Product Add-ons: by WooCommerce – 6.5.0 WooCommerce Product Bundles: by WooCommerce – 6.22.4 WooCommerce Product Recommendations: by WooCommerce – 3.0.3 WooCommerce Shipping & Tax: by WooCommerce – 2.4.0 WooCommerce Shipment Tracking: by WooCommerce – 2.4.1 WooCommerce: by Automattic – 8.4.0.10 Inactive Plugins (10) Avalara AvaTax: by Avalara – 2.6.1 Classic Editor: by WordPress Contributors – 1.6.3 TaxJar - Sales Tax Automation for WooCommerce: by TaxJar – 4.2.1 WooCommerce Australia Post Shipping: by WooCommerce – 2.5.7 WooCommerce Canada Post Shipping: by WooCommerce – 2.8.4 WooCommerce EU VAT Number: by WooCommerce – 2.8.8 WooCommerce FedEx Shipping: by WooCommerce – 3.8.5 WooCommerce Royal Mail: by WooCommerce – 3.0.1 WooCommerce UPS Shipping: by WooCommerce – 3.5.7 WooCommerce USPS Shipping: by WooCommerce – 4.7.5 Dropin Plugins (2) advanced-cache.php: advanced-cache.php object-cache.php: Memcached Must Use Plugins (1) WP.com Site Helper: by – Settings API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to Woo.com: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature screen enabled: ✔ HPOS feature enabled: ✔ Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore HPOS data sync enabled: – WC Pages Shop base: #47 - /shop/ Basket: #48 - /basket/ Checkout: #49 - /checkout/ My account: #50 - /my-account/ Terms and conditions: ❌ Page not set Theme Name: Tsubaki Version: 1.3.0 Author URL: https://automattic.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ Templates Overrides: /wordpress/plugins/woocommerce-accelerated-frequency/8.4.0.10/packages/woocommerce-blocks/templates/notices/error.php /wordpress/plugins/woocommerce-accelerated-frequency/8.4.0.10/packages/woocommerce-blocks/templates/notices/notice.php /wordpress/plugins/woocommerce-accelerated-frequency/8.4.0.10/packages/woocommerce-blocks/templates/notices/success.php WooPayments Version: 6.8.0 Connected to WPCOM: Yes WPCOM Blog ID: 226217957 Account ID: ❌ Not connected Logging: Disabled Back In Stock Database Version: 1.6.6 Loopback Test: – Gift Cards Database Version: 1.16.6 Loopback Test: – Task Queueing Test: ✔ Product Bundles Database Version: 6.22.4 Loopback Test: – Template Overrides: – Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner onboarding onboarding-tasks product-variation-management remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: customize-store minified-js navigation new-product-management-experience product-virtual-downloadable product-external-affiliate settings async-product-editor-category-field Daily Cron: ✔ Next scheduled: 2023-11-27 10:45:54 +05:30 Options: ✔ Notes: 3 Onboarding: skipped Action Scheduler Complete: 227 Oldest: 2023-11-23 16:17:04 +0530 Newest: 2023-11-27 10:45:29 +0530 Pending: 12 Oldest: 2023-11-27 10:47:29 +0530 Newest: 2023-11-29 09:14:03 +0530 Product Recommendations Database Version: 3.0.3 Loopback Test: – Task Queueing Test: ✔ Page Cache Test: – Status report information Generated at: 2023-11-27 10:45:45 +05:30I Tested in Postman it works pefectly the customer are exported to woocommece
But i Tested in Pure python i copied same code from postman
i still get same issueimport requests
url = “https://example.com/wp-json/wc/v3/customers”
payload = {
“email”: “[email protected]”,
“username”: “[email protected]”,
“role”: ‘customer’,
}
headers = {
‘Authorization’: ‘Basic Y2tfN2EwNGFhNWZmMDg0NDAxZGYzNDg2NjFkYWI4MmRkMWY0OGE5NDNhZDpjc19mYWY3NjkzMWY0ODgwZjgzZTRmMWQyYTRiMjg3NTMzZmNiY2JhYmE1’,
‘Cookie’: ‘wp_automatewoo_session_started=1; wp_automatewoo_visitor_9c4a19a7f6d148f532e765928623a973=b978vzwfjx6gbhbfq927’
}
response = requests.request(“POST”, url, headers=headers, data=payload)
print(response.json()
{‘code’: ’empty_data’, ‘message’: ‘Not enough data to create this user.’, ‘data’: {‘status’: 400}}I Tested in Postman it works pefectly the customer are exported to woocommece
Glad to know there’s some progress! :)
But i Tested in Pure python i copied same code from postman
I see you’re using the
requestslibrary to POST the data manually. Please use the Python WooCommerce library instead. :)- First, run
pip install woocommerce - Copy the same code here.
Kindly note that we can only help with the WooCommerce side of things here, if you require the assistance of a developer consider hiring a WooExpert.
Let us know if there’s anything else we can assist with.
I used the package first then it shows same error , Can you Test Integration to see if any Issue i tried defining every possible field and tested it its getting same error like
{‘code’: ’empty_data’, ‘message’: ‘Not enough data to create this user.’, ‘data’: {‘status’: 400}}.
Did WooCommerce get Updated Recently?This is my code please check from woocommerce import API url = "my url" consumer_key = "consumerkey" consumer_secret = "secret key" wcapi = API( url=url, consumer_key=consumer_key, consumer_secret=consumer_secret, version="wc/v3" ) data = { "email": "[email protected]", "first_name": "John", "last_name": "Doe", "username": "john.doe", "billing": { "first_name": "John", "last_name": "Doe", "company": "", "address_1": "969 Market", "address_2": "", "city": "San Francisco", "state": "CA", "postcode": "94103", "country": "US", "email": "[email protected]", "phone": "(555) 555-5555" }, "shipping": { "first_name": "John", "last_name": "Doe", "company": "", "address_1": "969 Market", "address_2": "", "city": "San Francisco", "state": "CA", "postcode": "94103", "country": "US" } } response = wcapi.post("customers", data) print(response.json()) {'code': 'empty_data', 'message': 'Not enough data to create this user.', 'data': {'status': 400}} Process finished with exit code 0Hello , I am also getting the Issue as well i cant export customers from my custom made app i developed ,It was working before but now its not at all working.
Same case for orders when exporting orders customer are not exported.Please check Woocommerce Support
-
This reply was modified 2 years, 6 months ago by
mustafa123kju.
Hello , I am also getting the Issue as well i cant export customers from my custom made app i developed ,It was working before but now its not at all working.
I’m unable to replicate the problem using the same sample code from the documentation; the customer gets created without any issues.
Link to image: https://d.pr/i/I2wpMnSince everything is working in Postman, the problem likely stems from your configuration.
You could also try performing a conflict test to check if any of your other plugins or your theme might be causing this issue.
Hope this helps!
Hello, I created an account from this Website
https://woo.com/feature-request/a-stand-alone-free-trial/
To test your latest Woocommerce Can you try to creating an account and test on this website.This where i get the issue {‘code’: ’empty_data’, ‘message’: ‘Not enough data to create this user.’, ‘data’: {‘status’: 400}}
Can you create a free trail account and test the integration or can you share your email so i can sent my woocommece account to you and set the configurations and try testing in my account
-
This reply was modified 2 years, 6 months ago by
king1344.
Hello, I created an account from this Website
https://woo.com/feature-request/a-stand-alone-free-trial/
To test your latest Woocommerce Can you try to creating an account and test on this website.I’ve been under the impression that you’re utilizing the WooCommerce core REST API. Are you having trouble creating a Subscription through the Woo Subscriptions REST API instead?
Also, can you please confirm if you’ve performed the conflict test? If so, what were your findings?Can you create a free trail account and test the integration or can you share your email so i can sent my woocommece account to you and set the configurations and try testing in my account
If this is indeed related to Woo Subscriptions, please feel free to open a new ticket about this from WooCommerce.com > MY profile > Support.
Make sure to include a link to this thread so we know what has been done already, and to contact us from the same account you used to purchase Woo Subscriptions as we can only provide support if your account has a valid license.
Cheers! - First, run
The topic ‘Unable to export Customer Integration’ is closed to new replies.