Send Corrected Ship Notice
POST/api/spscommerce/:integrationInstance/documents/:document/send-corrected
Send the retailer a replacement for a ship notice (856) that already went out: a new 856 with TsetPurposeCode 05 (replace) and the same ShipmentIdentification, rebuilt from the shipment as it is now, queued to send at once. Only for a trading partner whose document rules include accepts_replacement_ship_notice ("Accepts a replacement 856 (purpose 05)"), which is off by default. The sent 856 stays sent, marked superseded (superseded_reason "corrected").
integrations:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token and the integrations.update permission.
Returns 422 when the trading partner doesn't accept replacements, the shipment's 856 hasn't gone out yet (regenerate it instead), or a newer 856 already replaced it; 404 when it belongs to another connection.
Request
Responses
- 202
- 401
- 403
- 404
- 422
- 429
Accepted
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.