Update SPS Commerce Settings
PATCH/api/spscommerce/integrations/:id/settings
Update a connection's name, trading-partner IDs, automatic polling, EDI invoicing, inventory advice and carton-level ship notices. Send only the fields you change.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Authentication: Requires Bearer token and the integrations.update permission.
Fields: name, receiver_id, sender_id (null to clear), is_auto_polling_enabled, send_invoices (when true, an 810 invoice is sent to the trading partner for each shipment after its 856 advance ship notice is sent, billing the shipped quantities at the purchase order price; defaults to false), send_inventory_advice (when true, each trading partner is sent a daily 846 inventory advice with the available quantity of every item it has ordered; defaults to false), pack_level_asn (when true, each 856 reports the shipment carton by carton with an SSCC-18 per carton; requires gs1_company_prefix), gs1_company_prefix (7–10 digit GS1 company prefix the SSCC-18 numbers are built from; required when pack_level_asn is true), sscc_extension_digit (0–9, default 0), carton_label_ids (object mapping each trading partner ID to the SPS label template used to render its carton labels).
- inventory_advice_warehouse_ids (array of integers, optional): warehouses whose available stock the daily 846 counts; an empty array counts available-to-sell across every warehouse
- inventory_advice_buffer (integer, optional, min 0): units held back from every item's 846 quantity
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.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
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.