Update Walmart Integration Settings
PATCH/api/walmart/:integrationInstance
Update the settings of a connected Walmart seller account. Accepts PUT (full replace) or PATCH (deep merge into the stored settings — send only the keys you want to change).
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Request fields — all optional; omit any key to leave it unchanged.
name(string) — display name of the connection.is_automatic_sync_enabled(boolean) — turns scheduled syncing on or off.connection_settings.clientId(string) — Walmart API client ID.connection_settings.clientSecret(string) — Walmart API client secret.integration_settings.start_date(dateYYYY-MM-DD) — orders placed before this date are ignored.integration_settings.store_id(integer) — store this connection sells into. Must exist.integration_settings.auto_link_products(boolean) — match incoming Walmart items to existing products by identifier.integration_settings.auto_create_products(boolean) — create a product when no match is found.integration_settings.emailCustomers(boolean) — send order emails to the buyer.integration_settings.sales_nominal_code_id,cogs_nominal_code_id,shipping_revenue_nominal_code_id,shipping_refund_nominal_code_id,sales_returns_allowances_nominal_code_id(integer, nullable) — accounting codes. Each must exist.integration_settings.proforma_marketplace_cost_percentage,proforma_payment_cost_percentage(number, nullable) — estimated marketplace and payment costs, as percentages.integration_settings.sync_sales_order_invoices_to_accounting,sync_sales_credit_to_accounting(boolean) — push invoices and credits to the accounting connection.integration_settings.batch_period_sales_order_fulfillments,batch_period_customer_returns(string, nullable) — batching period used when posting to accounting.integration_settings.refunds.allow_refunds_from_sku(boolean) — allow refunds to be issued against Walmart orders.
Pricing — integration_settings.pricing:
masterOfPrice(object) — which system owns price.idis one ofsku,channel,neither;nameis its display label. Changing it re-caches every listing price for this connection.pricingTier(object, nullable) — the pricing tier listings inherit their price from. Send{ "id": <tier id>, "name": "<tier name>" }, or{ "id": null, "name": null }to clear it.idmust be an existing pricing tier. This is the canonical field; a legacy flatpricing_tier_idis still accepted but is deprecated and is not read back.
Inventory — integration_settings.inventory:
masterOfStock(string) — which system owns stock levels.selectedWarehouses(array of integers) — warehouses whose stock is published to Walmart. Sent as a whole list; it replaces the stored value rather than merging into it, onPATCHtoo.fulfillmentLatency(integer, nullable) — handling days reported to Walmart.
Behaviour to be aware of
- Changed credentials are validated against Walmart before anything is stored. Invalid credentials fail the whole request with
422and nothing is saved. - Saving valid credentials on a connection that is disconnected or awaiting authorization switches it to credential-based authentication and reactivates it.
- Changing
masterOfPrice,pricingTier, or any inventory setting triggers a background re-cache of prices and stock, so listing values may take a few moments to settle.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.