Styles/OrderDocuments

Lists tracing documents attached to POs and SOs that reference a style. Scoped to the caller's company via style ownership + the caller's own order books. Cross-company docs surface via the supply-chain tracing_link — this is by design (buyer sees supplier-uploaded docs and vice versa). Response is aggregated by (file, document type): a single file with heterogeneous document types yields one entry per type. orderList includes both purchase and sales orders, discriminated by the orderType field. Archived (is_removed) documents are excluded by default; only returned when isArchived=true. Returns 404 (code: style_not_found) if the style is unknown or belongs to another company.

get/api/styles/{id}/style-order-documents

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/styles/{id}/style-order-documents
  • Auth
    none declared

Path parameters

idstring required

Query parameters

namestring
documentTypeIdstring
orderNumberstring
supplierstring
buyerstring
string
OR
boolean
pageinteger
countinteger
order'asc' | 'desc' | 'ASC' | 'DESC'
sort'updatedAt' | 'name' | 'documentType' | 'orderNumber' | 'supplier' | 'buyer'

Response

Default Response

Changes

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the // response's property type changed from no type to object for status

    • info

      removed subschema #1 subschema #2 from the // response property anyOf list for the response status

    • info

      response property data/items/createdAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/items/documentId list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/items/documentTypeId list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/items/fileUrl list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/items/updatedAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the required property /// to the response with the status

    • info

      added the required property /// to the response with the status

    • info

      added the required property /// to the response with the status

    • info

      added the required property /// to the response with the status

    • info

      added the required property /// to the response with the status