Upload Order Document - Sellercloud API Docs

Overview

In order to upload document for order, you can consume the endpoint presented in this article. In order to consume it, you must:

For information on how you can authenticate, see: Authentication

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

Endpoint

Example for such endpoint for TT server is:

https://tt.api.sellercloud.com/rest/api/Orders/{id}/UploadDocument

For your server endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/Orders/{id}/UploadDocument

Request

Information about expected request parameters can be found on swagger UI https://tt/api.sellercloud.com/rest/swagger.

{
  "FileContent": "string",
  "FileName": "string"
}
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(“”));
true
FileName string The name of the file to upload.
NOTE: The file extension should be included. Example “document.xlsx”
true

Response