Method | Description |
---|---|
DeleteScheduledPickup | Delete a Scheduled Pickup |
GetPickupById | Get Pickup By ID |
ListScheduledPickups | List Scheduled Pickups |
SchedulePickup | Schedule a Pickup |
DeletePickupByIdResponseBody DeleteScheduledPickup (string pickupId, CancellationToken cancellationToken = default)
DeletePickupByIdResponseBody DeleteScheduledPickup (HttpClient methodClient, string pickupId, CancellationToken cancellationToken = default)
Delete a Scheduled Pickup
Delete a previously-scheduled pickup by ID
using System.Collections.Generic;
using System.Diagnostics;
using ShipEngineSDK;
using ShipEngineSDK.Model;
namespace Example
{
public class DeleteScheduledPickupExample
{
public static async Task Main()
{
var shipEngine = new ShipEngine("api_key");
var pickupId = "pickupId_example";
try
{
// Delete a Scheduled Pickup
DeletePickupByIdResponseBody result = await shipEngine.DeleteScheduledPickup(pickupId);
Debug.WriteLine(result);
}
catch (ShipEngineException e)
{
Debug.Print("Exception when calling PackagePickupsApi.DeleteScheduledPickup: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
methodClient | HttpClient | The HttpClient instance to use for the request. | |
pickupId | string | ||
cancellationToken | CancellationToken | The cancellation token to use for the request. |
GetPickupByIdResponseBody GetPickupById (string pickupId, CancellationToken cancellationToken = default)
GetPickupByIdResponseBody GetPickupById (HttpClient methodClient, string pickupId, CancellationToken cancellationToken = default)
Get Pickup By ID
Get Pickup By ID
using System.Collections.Generic;
using System.Diagnostics;
using ShipEngineSDK;
using ShipEngineSDK.Model;
namespace Example
{
public class GetPickupByIdExample
{
public static async Task Main()
{
var shipEngine = new ShipEngine("api_key");
var pickupId = "pickupId_example";
try
{
// Get Pickup By ID
GetPickupByIdResponseBody result = await shipEngine.GetPickupById(pickupId);
Debug.WriteLine(result);
}
catch (ShipEngineException e)
{
Debug.Print("Exception when calling PackagePickupsApi.GetPickupById: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
methodClient | HttpClient | The HttpClient instance to use for the request. | |
pickupId | string | ||
cancellationToken | CancellationToken | The cancellation token to use for the request. |
GetPickupsResponseBody ListScheduledPickups (DateTimeOffset createdAtStart = null, DateTimeOffset createdAtEnd = null, string carrierId = null, string warehouseId = null, int page = null, int pageSize = null, CancellationToken cancellationToken = default)
GetPickupsResponseBody ListScheduledPickups (HttpClient methodClient, DateTimeOffset createdAtStart = null, DateTimeOffset createdAtEnd = null, string carrierId = null, string warehouseId = null, int page = null, int pageSize = null, CancellationToken cancellationToken = default)
List Scheduled Pickups
List all pickups that have been scheduled for this carrier
using System.Collections.Generic;
using System.Diagnostics;
using ShipEngineSDK;
using ShipEngineSDK.Model;
namespace Example
{
public class ListScheduledPickupsExample
{
public static async Task Main()
{
var shipEngine = new ShipEngine("api_key");
var createdAtStart = 2019-03-12T19:24:13.657Z;
var createdAtEnd = 2019-03-12T19:24:13.657Z;
var carrierId = "carrierId_example";
var warehouseId = "warehouseId_example";
var page = 2;
var pageSize = 50;
try
{
// List Scheduled Pickups
GetPickupsResponseBody result = await shipEngine.ListScheduledPickups(createdAtStart, createdAtEnd, carrierId, warehouseId, page, pageSize);
Debug.WriteLine(result);
}
catch (ShipEngineException e)
{
Debug.Print("Exception when calling PackagePickupsApi.ListScheduledPickups: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
methodClient | HttpClient | The HttpClient instance to use for the request. | |
createdAtStart | DateTimeOffset | Only return scheduled pickups that were created on or after a specific date/time | [optional] |
createdAtEnd | DateTimeOffset | Only return scheduled pickups that were created on or before a specific date/time | [optional] |
carrierId | string | Carrier ID | [optional] |
warehouseId | string | Warehouse ID | [optional] |
page | int | 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] |
pageSize | int | The number of results to return per response. | [optional] [default to 25] |
cancellationToken | CancellationToken | The cancellation token to use for the request. |
SchedulePickupResponseBody SchedulePickup (SchedulePickupRequestBody schedulePickupRequestBody, CancellationToken cancellationToken = default)
SchedulePickupResponseBody SchedulePickup (HttpClient methodClient, SchedulePickupRequestBody schedulePickupRequestBody, CancellationToken cancellationToken = default)
Schedule a Pickup
Schedule a package pickup with a carrier
using System.Collections.Generic;
using System.Diagnostics;
using ShipEngineSDK;
using ShipEngineSDK.Model;
namespace Example
{
public class SchedulePickupExample
{
public static async Task Main()
{
var shipEngine = new ShipEngine("api_key");
var schedulePickupRequestBody = new SchedulePickupRequestBody();
try
{
// Schedule a Pickup
SchedulePickupResponseBody result = await shipEngine.SchedulePickup(schedulePickupRequestBody);
Debug.WriteLine(result);
}
catch (ShipEngineException e)
{
Debug.Print("Exception when calling PackagePickupsApi.SchedulePickup: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
methodClient | HttpClient | The HttpClient instance to use for the request. | |
schedulePickupRequestBody | SchedulePickupRequestBody | ||
cancellationToken | CancellationToken | The cancellation token to use for the request. |