Regenerate Ship Notice
POST/api/spscommerce/:integrationInstance/documents/:document/regenerate
Rebuild a ship notice (856) that hasn't gone out yet from its shipment as it is now. Every 856 of the shipment is rebuilt (a shipment sent one 856 per carton has several). The old documents are kept for the record, marked superseded (is_superseded, superseded_reason "regenerated") and set to not_sent so they can never be sent. The new 856 takes the next revision of the control number (SH12, then SH12-R2, SH12-R3...). One that failed or was rejected is sent again; one never attempted goes out through the normal flow.
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 856 already went out (or is being sent), a newer 856 already replaced it, the 3PL sends this retailer's ship notice, or something about the shipment now holds its ship notice back (nothing is changed then); 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.