REST API security set R/W but can’t write
-
We’re setting up EDI to interface with our ERP software via SPS Commerce. We’ve successfully imported new orders but are having issues writing back the 856 Advance Ship Notice.
The API key is set to read/write, and the userID assigned is as an administrator.
Per our SPS contact:
This is the call we are making:
method=POST, url=https://www.malcosaw.com/wp-json/wc/v3/orders/7789/notesThe body of that request is:
"payload" : {
"note" : "UPS Ground Tracking # 1Z4722810398437428",
"customer_note" : "true"
}and we get this error in response:
{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}
-
Status report:
System Status Report
### WordPress Environment ###
WordPress address (URL): [Redacted]
Site address (URL): [Redacted]
WC Version: 10.3.7
Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
Action Scheduler Version: ✔ 3.9.3
Log Directory Writable: ✔
WP Version: 6.9
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: ✔
### Server Environment ###
Server Info: nginx
Server Architecture: Linux 6.12.48+deb13-amd64 x86_64
PHP Version: 8.3.30
PHP Post Max Size: 2 GB
PHP Time Limit: 850
PHP Max Input Vars: 6144
cURL Version: 8.18.0
OpenSSL/3.5.4
SUHOSIN Installed: –
MySQL Version: 11.8.3-MariaDB-log
Max Upload Size: 2 GB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔
### Database ###
[REDACTED]
### Post Type Counts ###
attachment: 1782
custom_css: 1
jetpack_migration: 2
nav_menu_item: 41
page: 10
product: 1862
product_variation: 1
shop_coupon: 2
shop_order: 3576
shop_order_refund: 2
wc_product_table: 16
### Security ###
Secure connection (HTTPS): ✔
Hide errors from visitors: ✔
### Active Plugins (25) ###
Advanced Woo Search: by ILLID – 3.49
Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.6
Atomic Blocks - Gutenberg Blocks Collection: by atomicblocks – 2.9.0
Automattic for Agencies Client: by Automattic – 0.7.2
ELEX WooCommerce Bulk Edit Products, Prices & Attributes (Basic): by ELEXtensions – 1.5.1
Gravity Forms: by Gravity Forms – 2.9.23.2
Gravity Forms Cloudflare Turnstile Add-On: by Gravity Forms – 1.4.0
Gravity SMTP: by Gravity Forms – 2.1.1
Imagify: by Imagify Image Optimizer – Optimize Images & Convert WebP & Avif – 2.2.6
Jetpack: by Automattic – 15.5-a.1
Login with Google: by rtCamp – 1.4.1
Storefront Footer Bar: by WooThemes – 1.0.4
Storefront Hamburger Menu: by WooCommerce – 1.2.2
Storefront Powerpack: by WooCommerce – 1.6.3
Storefront Product Hero: by WooThemes – 1.2.13
Stream: by XWP – 4.1.1
WooCommerce UPS Shipping Plugin with Print Label: by PluginHive – 6.3.7
User Switching: by John Blackbourn – 1.11.0
Product Table and List Builder for WooCommerce PRO: by WC Product Table – 4.6.2
WooCommerce Customer/Order/Coupon Export: by SkyVerge – 5.5.5
WooCommerce Authorize.Net Gateway: by SkyVerge – 3.10.13 (update to version 3.10.14 is available)
WooCommerce Stripe Gateway: by Stripe – 10.1.0
WooCommerce Tax: by WooCommerce – 3.2.3 (update to version 3.3.1 is available)
WooCommerce: by Automattic – 10.3.7 (update to version 10.4.3 is available)
Yoast SEO: by Team Yoast – 26.5
### Inactive Plugins (3) ###
Jetpack Protect: by Automattic - Jetpack Security team – 4.4.1
Query Monitor: by John Blackbourn – 3.20.0
WP Rocket: by WP Media – 3.20.1.2
### Dropin Plugins () ###
advanced-cache.php: advanced-cache.php
object-cache.php: Memcached
### Settings ###
Legacy API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: 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 WooCommerce.com: ✔
Enforce Approved Product Download Directories: –
HPOS feature enabled: –
Order datastore: WC_Order_Data_Store_CPT
HPOS data sync enabled: –
Enabled Features: analytics
marketplace
order_attribution
site_visibility_badge
remote_logging
email_improvements
blueprint
point_of_sale
### Logging ###
Enabled: ✔
Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
Retention period: 30 days
Level threshold: –
Log directory size: 19 KB
### WC Pages ###
Shop base: #10 - /shop/
Cart: #11 - /cart/ - Contains the [woocommerce_cart] shortcode
Checkout: #12 - /checkout/ - Contains the [woocommerce_checkout] shortcode
My account: #13 - /my-account/ - Contains the [woocommerce_my_account] shortcode
Terms and conditions: #85 - /policies/
### Theme ###
Name: Malco Saw
Version: 1.7.27
Author URL: https://linchpin.com/
Child Theme: ✔
Parent Theme Name: Storefront
Parent Theme Version: 4.6.1 – 4.6.2 is available
Parent Theme Author URL: https://woocommerce.com/
Theme type: Classic theme
WooCommerce Support: ✔
### Templates ###
Overrides: malco-child/woocommerce/archive-product.php
### WooCommerce Stripe Payment Gateway ###
Version: 10.1.0
Account ID: acct_1GL8wNA4PPw2HomP
Account Email: [email protected]
Test Mode Enabled: ✔
No
OAuth Connected: No
Sync Enabled: No
Legacy Checkout Experience: ✔
No
Optimized Checkout Enabled: No
Enabled Payment Methods: card
Express Checkout: ✔
Enabled (product,cart)
Auth and Capture: ✔
Yes
Logging: No
### Authorize.Net Credit Card ###
Environment: Production
Tokenization Enabled: ✔
Debug Mode: Off
Webhooks Enabled: ✔
### Admin ###
Enabled Features: activity-panels
analytics
product-block-editor
coupons
core-profiler
customize-store
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
pattern-toolkit-full-composability
product-custom-fields
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
printful
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page
launch-your-store
Disabled Features: product-data-views
experimental-blocks
experimental-iapi-mini-cart
experimental-iapi-runtime
coming-soon-newsletter-template
minified-js
product-pre-publish-modal
settings
async-product-editor-category-field
product-editor-template-system
use-wp-horizon
rest-api-v4
Daily Cron: ✔ Next scheduled: 2026-01-17 16:34:47 -05:00
Options: ✔
Notes: 29
Onboarding: completed
### WooCommerce Customer/Order/Coupon Export ###
Automated exports: 1
Custom formats: 0
Next export: Scheduled on January 17
2026 4:17 am
### Action Scheduler ###
Complete: 524
Oldest: 2025-12-16 16:52:32 -0500
Newest: 2026-01-16 05:33:29 -0500
Failed: 2
Oldest: 2025-11-18 23:15:40 -0500
Newest: 2025-11-21 13:53:02 -0500
Pending: 15
Oldest: 2026-01-16 17:33:29 -0500
Newest: 2026-01-20 22:39:46 -0500
### Status report information ###
Generated at: 2026-01-16 12:54:45 -05:00Hi there,
Thank you for the detailed information regarding your SPS Commerce integration.
Please note that WooCommerce support covers core WooCommerce functionality, and issues involving third-party integrations or custom API implementations fall outside our supported scope.
If you need more in-depth support or want to consider professional assistance for customization, I can recommend WooExperts and Codeable.io as options for getting professional help.
Alternatively, you can also ask your development questions in the WooCommerce Community Slack as custom code falls outside our usual scope of support.
Olá amigo, estou tendo problema para configurar o sistema ERP Bling com o WooCommerce, através da API REST, retorna a seguinte mensagem de erro (
Erro: Não foi possível estabelecer a conexão com a plataforma: Ocorreu algum problema de conexão ou erro na leitura da resposta (404) 404 Not Found @media (prefers-color-scheme:dark){body{background-color:#000!important}} 404 Not Found The resource requested could not be found on this server!
Já tentei gerar novas chaves mas não funcionou
Poderia me ajudar?
@onofertas: sorry, I’m not able to help. Try starting your own thread?
Desculpe, não consigo ajudar. Que tal criar sua própria discussão? (Google Translate)
Hi @Onefertas,
To keep the forum organized, could you please open a new thread for your question? This makes it easier for others to follow and for responses to stay relevant.
Thanks!
It’s been a while since we heard back from you for this reason we are closing this thread.
If WooCommerce has been useful for your store and you appreciate the support you’ve received, we’d truly appreciate it if you could leave us a quick review here:
https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post
Feel free to open a new forum topic if you run into any other problem.
You must be logged in to reply to this topic.