Skip to main content

Replace EDI Document Content

POST 

/api/spscommerce/:integrationInstance/documents/:document/replace-content

Replace an unreadable warehouse shipping advice (945) with a corrected file and queue it to be applied. Send multipart/form-data with a file field of at most 5 MB. The unreadable file is kept with the document. Every usual check still runs, including the sender check, so a replacement can't record what a resend couldn't.

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 document isn't an unreadable 945 or the file isn't a readable 945, and changes nothing; 404 when it belongs to another connection.

Request​

Responses​

Accepted

Response Headers
    Content-Type