shipstation-client
Version:
ShipStation V2 SDK
244 lines (164 loc) • 7.75 kB
Markdown
All URIs are relative to *https://api.shipstation.com*
|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteScheduledPickup**](
|[**getPickupById**](
|[**listScheduledPickups**](
|[**schedulePickup**](
> DeletePickupByIdResponseBody deleteScheduledPickup()
Delete a previously-scheduled pickup by ID
### Example
```typescript
import {
PackagePickupsApi,
Configuration
} from 'shipstation-client';
const configuration = new Configuration();
const apiInstance = new PackagePickupsApi(configuration);
let pickupId: string; // (default to undefined)
const { status, data } = await apiInstance.deleteScheduledPickup(
pickupId
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **pickupId** | [**string**] | | defaults to undefined|
**DeletePickupByIdResponseBody**
[](../README.md
- **Content-Type**: Not defined
- **Accept**: application/json, text/plain
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Return the &
|**400** | The request contained errors. | - |
|**404** | The specified resource does not exist. | - |
|**500** | The request was successful. | - |
[[Back to top]](
> GetPickupByIdResponseBody getPickupById()
Get Pickup By ID
### Example
```typescript
import {
PackagePickupsApi,
Configuration
} from 'shipstation-client';
const configuration = new Configuration();
const apiInstance = new PackagePickupsApi(configuration);
let pickupId: string; // (default to undefined)
const { status, data } = await apiInstance.getPickupById(
pickupId
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **pickupId** | [**string**] | | defaults to undefined|
**GetPickupByIdResponseBody**
[](../README.md
- **Content-Type**: Not defined
- **Accept**: 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]](
> GetPickupsResponseBody listScheduledPickups()
List all pickups that have been scheduled for this carrier
### Example
```typescript
import {
PackagePickupsApi,
Configuration
} from 'shipstation-client';
const configuration = new Configuration();
const apiInstance = new PackagePickupsApi(configuration);
let carrierId: string; //Carrier ID (optional) (default to undefined)
let warehouseId: string; //Warehouse ID (optional) (default to undefined)
let createdAtStart: string; //Used to create a filter for when a resource was created (ex. A shipment that was created after a certain time) (optional) (default to undefined)
let createdAtEnd: string; //Used to create a filter for when a resource was created, (ex. A shipment that was created before a certain time) (optional) (default to undefined)
let page: number; //Return a specific page of results. Defaults to the first page. If set to a number that\'s greater than the number of pages of results, an empty page is returned. (optional) (default to 1)
let pageSize: number; //The number of results to return per response. (optional) (default to 25)
const { status, data } = await apiInstance.listScheduledPickups(
carrierId,
warehouseId,
createdAtStart,
createdAtEnd,
page,
pageSize
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **carrierId** | [**string**] | Carrier ID | (optional) defaults to undefined|
| **warehouseId** | [**string**] | Warehouse ID | (optional) defaults to undefined|
| **createdAtStart** | [**string**] | Used to create a filter for when a resource was created (ex. A shipment that was created after a certain time) | (optional) defaults to undefined|
| **createdAtEnd** | [**string**] | Used to create a filter for when a resource was created, (ex. A shipment that was created before a certain time) | (optional) defaults to undefined|
| **page** | [**number**] | Return a specific page of results. Defaults to the first page. If set to a number that\'s greater than the number of pages of results, an empty page is returned. | (optional) defaults to 1|
| **pageSize** | [**number**] | The number of results to return per response. | (optional) defaults to 25|
**GetPickupsResponseBody**
[](../README.md
- **Content-Type**: Not defined
- **Accept**: 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]](
> SchedulePickupResponseBody1 schedulePickup(schedulePickupRequestBody)
Schedule a package pickup with a carrier
### Example
```typescript
import {
PackagePickupsApi,
Configuration,
SchedulePickupRequestBody
} from 'shipstation-client';
const configuration = new Configuration();
const apiInstance = new PackagePickupsApi(configuration);
let schedulePickupRequestBody: SchedulePickupRequestBody; //
const { status, data } = await apiInstance.schedulePickup(
schedulePickupRequestBody
);
```
|Name | Type | Description | Notes|
|------------- | ------------- | ------------- | -------------|
| **schedulePickupRequestBody** | **SchedulePickupRequestBody**| | |
**SchedulePickupResponseBody1**
[](../README.md
- **Content-Type**: application/json
- **Accept**: 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]](