Order Tracing - Documents

Replaces a tracing document the caller's company uploaded with one of its uploaded files. The old document is removed and a new one — same type, same Order Hub order, named after the new file — is attached to the purchase order's link; the file is moved to the private bucket. 404 not_found (purchase order, document or link missing or removed), 403 insufficient_rights (another company's document), 400 document_type_not_valid (documentType differs from the document's type), 404 invalid_document_id (the file is not the caller's). The links' document figures are refreshed in the background.

post/api/cascade-tracing/documents/replace

Request

  • Base URL
    https://api.retraced.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.retraced.com/api/cascade-tracing/documents/replace
  • Auth
    none declared

Request body

oldTracingDocumentIdstring required
tracingPurchaseOrderIdstring required
documentTypestring required
documentsstring[] required

Response

Default Response

Changes