Tradecloud API v2 manual
  • Introduction
    • Welcome
      • Checklist
      • Support
    • API
      • Rules
      • Requests
      • JSON versus XML
      • Environments
      • Standards
      • Compatibility
      • Tools
        • Swagger UI
        • Postman
        • .NET SDK
      • Webhook versus polling
        • Polling usage
        • Polling echo
      • Delivery schedule
    • Security
      • Security overview
      • Authentication
      • Authorization
      • Encryption
      • Document storage
  • Guide
    • 1. Getting an Account
    • 2. Sending your first order
      • Option A: Sending a Delivery Schedule per order line
      • Option B: Sending a Single Delivery per order line
  • Processes
    • Forecasts
      • Issue a new forecast
      • Issue a new Slimstock forecast
    • Orders
      • Buyer order process
        • Issue a new order
          • Delivery schedule
          • Indicators
          • No delivery expected
          • Propose when accepted
          • Attach a document to an order
          • Choose attach document API
        • Update an existing order
        • Receive an order response
          • Download a document attached to an order response
          • Single delivery order response
        • Receive goods
        • Complete an order
        • Reopen an order
        • Cancel an order
      • Supplier order process
        • Receive an order
          • Download a document attached to an order
          • Single delivery order
        • Send order response
          • Attach a document to an order response
        • Reopen an order
        • Cancel an order
    • Shipments
      • Supplier shipment process
        • Send despatch advice
      • Buyer shipment process
        • Receive a shipment event
          • Download a document attached to a shipment
Powered by GitBook
On this page
  • Method 1. Attach a document using the Tradecloud object-storage
  • Step 1. Upload a document to the Tradecloud object-storage
  • Step 2. Attach the uploaded document in the order message using the /order/order-response API
  • Documents body
  • Method 2. Attach a document using your company's content server
  • Step 1. Upload to your company's content server
  • Step 2. Provide the url in the order message using the /order/order-response API
  • Documents body
  • Method 3. Only provide document meta data
  • Documents body
  1. Processes
  2. Orders
  3. Supplier order process
  4. Send order response

Attach a document to an order response

How to attach a document to an order or line response

PreviousSend order responseNextReopen an order

Last updated 1 year ago

You can attach documents using three methods:

  1. Upload your document to the Tradecloud object-storage and attach the objectId to the order or line.

  2. Upload your document to your company's content server and attach the url to the order or line.

  3. Only attach document meta data, such as document code/number, revision and name.

Method 1. Attach a document using the Tradecloud object-storage

Step 1. Upload a document to the Tradecloud object-storage

Use the endpoint to upload the document to the Tradecloud object-storage and remember the returned document objectId.

Step 2. Attach the uploaded document in the order message using the /order/order-response API

You can attach documents using the documents field on either order or lines level in the body of the endpoint:

This will NOT create an OrderDocumentsAttachedBySupplier activity and NO acknowledge task for the buyer.

The total number of documents is limited to 100 documents per order header and per order line.

Documents body

  • code : optional document code or number. The document code should be unique within your company and immutable.

If a document with the same code is already attached to the order or line, the document will be replaced, else it will be appended.

  • revision: optional document revision (or version) code or number

  • name : optional document short (file) name

  • description : optional document description or long name

  • type: optional document business type

  • objectId: the Tradecloud object identifier which was returned by the Tradecloud object-storage upload

Method 2. Attach a document using your company's content server

Step 1. Upload to your company's content server

Upload documents to your company's content server and remember the returned document url.

Step 2. Provide the url in the order message using the /order/order-response API

This will NOT create an OrderDocumentsAttachedBySupplier activity and NO acknowledge task for the buyer.

Documents body

  • code : optional document code or number. The document code should be unique within your company and immutable.

If a document with the same code is already attached to the order or line, the document will be replaced, else it will be appended.

  • revision: optional document revision (or version) code or number

  • name : optional document short (file) name

  • description : optional document description or long name

  • type: optional document business type

  • url: the document location on the company's content server

Method 3. Only provide document meta data

Only provide document meta data like code, revision, name, description and type.

This will NOT create an OrderDocumentsAttachedBySupplier activity and NO acknowledge task for the buyer.

Documents body

  • code : optional document code or number. The document code should be unique within your company and immutable.

If a document with the same code is already attached to the order or line, the document will be replaced, else it will be appended.

  • revision: optional document revision (or version) code or number

  • name : optional document short (file) name

  • description : optional document description or long name

  • type: optional document business type

You can provide the url using the documents field on either order or lines level in the order body of the endpoint.

You can provide the meta data using the documents field on either order or lines level in the order body of the endpoint.

Upload document
Send order response
Send order response
Send order response
Send order response