Upload Document to WITR - Sellercloud API Docs

Overview

You can use this endpoint to upload a document to an existing Warehouse Inventory Transfer (WITR). To do that, you must be an Authenticated User.

As soon as you authenticate and receive a valid token, it needs to be passed to the service call.

Endpoint

An example of such an endpoint for XX server is:

https://xx.api.sellercloud.com/rest/api/WarehouseInventoryTransfers/{id}/Documents

For your server, the endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/WarehouseInventoryTransfers/{id}/Documents

Request

{
  "FileContent": "string",
  "FileName": "string",
  "ItemID": 0
}
Parameter Data Type Description Is Required
FileContent string Base 64 encoded string representing the file content.
Example of how to get Base 64 encoded string of a file in c#:
var fileContent = Convert.ToBase64String(File.ReadAllBytes(“”));
Yes
FileName string The name of the file to upload. The file extension should be included. Example “document.xlsx”. Yes
ItemID integer The ID of the warehouse inventory transfer product item. Can be obtained by calling Get WITR Products. No

Response