Skip to main content

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.

Required scope: integrations:write

Grant 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​

Accepted

Response Headers
    Content-Type