Replace an inbound PO document
Replaces an attached file, matched by documentId or, when that is omitted, by fileName. The same file rules apply as for uploads.
Authentication
AuthorizationBasic
Basic authentication of the form Basic <base64(username:password)>.
Headers
RushOrderMomCode
All requests require the header to contain RushOrderMomCode, a 3 character string that represents the client internally in Rush Order. This should be given to you by Rush Order.
Request
This endpoint expects an object.
poRef
The PO reference number.
fileName
Must end in .csv, .txt, .pdf, .xls, or .xlsx.
content
The file, base64-encoded. A data:<type>;base64, prefix is accepted. Up to 25 MB, and the content must match the file extension.
lading
If the PO was submitted with a bill of lading, include it here, or the PO will not be found.
documentId
The document to replace. Omit it to replace the document with the same fileName. The document ID stays the same.
Response
Replaced.
Success
Error
Why the request failed. Null on success.
Message
Same as Error.
Document
Errors
400
Bad Request Error
404
Not Found Error
409
Conflict Error
