shipstation-client
Version:
ShipStation V2 SDK
75 lines (52 loc) • 2.1 kB
Markdown
All URIs are relative to *https://api.shipstation.com*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**downloadFile**](
> File downloadFile()
Download labels and other shipment-related documents.
### Example
```typescript
import {
DownloadsApi,
Configuration
} from 'shipstation-client';
const configuration = new Configuration();
const apiInstance = new DownloadsApi(configuration);
let subdir: string; // (default to undefined)
let filename: string; // (default to undefined)
let dir: string; // (default to undefined)
let download: string; // (optional) (default to undefined)
let rotation: number; // (optional) (default to undefined)
const { status, data } = await apiInstance.downloadFile(
subdir,
filename,
dir,
download,
rotation
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **subdir** | [**string**] | | defaults to undefined|
| **filename** | [**string**] | | defaults to undefined|
| **dir** | [**string**] | | defaults to undefined|
| **download** | [**string**] | | (optional) defaults to undefined|
| **rotation** | [**number**] | | (optional) defaults to undefined|
**File**
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/pdf, image/png, application/zpl, application/json, text/plain
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | The request was a success | - |
|**400** | The request contained errors. | - |
|**404** | The specified resource does not exist. | - |
|**500** | The request was successful. | - |
[[Back to top]](