ShipEngine 3.0.0
dotnet add package ShipEngine --version 3.0.0
NuGet\Install-Package ShipEngine -Version 3.0.0
<PackageReference Include="ShipEngine" Version="3.0.0" />
paket add ShipEngine --version 3.0.0
#r "nuget: ShipEngine, 3.0.0"
// Install ShipEngine as a Cake Addin #addin nuget:?package=ShipEngine&version=3.0.0 // Install ShipEngine as a Cake Tool #tool nuget:?package=ShipEngine&version=3.0.0
ShipEngine .NET SDK
The official ShipEngine SDK for .NET
Quick Start
Install ShipEngine .NET SDK via the .NET CLI.
dotnet add package ShipEngine
The only configuration requirement is an API key.
using ShipEngineSDK;
var shipengine = new ShipEngine("___YOUR_API_KEY_HERE__");
Overview
This C# SDK is automatically generated by the OpenAPI Generator project:
- API version: 1.1.202501091801
- SDK version: 3.0.0
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen For more information, please visit https://www.shipengine.com/contact/
<a id="frameworks-supported"></a>
Frameworks supported
- .NET Standard >=2.0
- .NET Core >=2.0
- .NET Framework >=4.6.2
<a id="documentation-for-api-endpoints"></a>
Methods
API | Method | Description |
---|---|---|
Account | CreateAccountImage | Create an Account Image |
Account | DeleteAccountImageById | Delete Account Image By Id |
Account | GetAccountSettingsImagesById | Get Account Image By ID |
Account | ListAccountImages | List Account Images |
Account | ListAccountSettings | List Account Settings |
Account | UpdateAccountSettingsImagesById | Update Account Image By ID |
Addresses | ParseAddress | Parse an address |
Addresses | ValidateAddress | Validate An Address |
Batches | AddToBatch | Add to a Batch |
Batches | CreateBatch | Create A Batch |
Batches | DeleteBatch | Delete Batch By Id |
Batches | GetBatchByExternalId | Get Batch By External ID |
Batches | GetBatchById | Get Batch By ID |
Batches | ListBatchErrors | Get Batch Errors |
Batches | ListBatches | List Batches |
Batches | ProcessBatch | Process Batch ID Labels |
Batches | RemoveFromBatch | Remove From Batch |
Batches | UpdateBatch | Update Batch By Id |
CarrierAccounts | ConnectCarrier | Connect a carrier account |
CarrierAccounts | DisconnectCarrier | Disconnect a carrier |
CarrierAccounts | GetCarrierSettings | Get carrier settings |
CarrierAccounts | UpdateCarrierSettings | Update carrier settings |
Carriers | AddFundsToCarrier | Add Funds To Carrier |
Carriers | DisconnectCarrierById | Disconnect Carrier by ID |
Carriers | GetCarrierById | Get Carrier By ID |
Carriers | GetCarrierOptions | Get Carrier Options |
Carriers | ListCarrierPackageTypes | List Carrier Package Types |
Carriers | ListCarrierServices | List Carrier Services |
Carriers | ListCarriers | List Carriers |
Downloads | DownloadFile | Download File |
Insurance | AddFundsToInsurance | Add Funds To Insurance |
Insurance | ConnectInsurer | Connect a Shipsurance Account |
Insurance | DisconnectInsurer | Disconnect a Shipsurance Account |
Insurance | GetInsuranceBalance | Get Insurance Funds Balance |
Labels | CreateLabel | Purchase Label |
Labels | CreateLabelFromRate | Purchase Label with Rate ID |
Labels | CreateLabelFromShipment | Purchase Label with Shipment ID |
Labels | CreateReturnLabel | Create a return label |
Labels | GetLabelByExternalShipmentId | Get Label By External Shipment ID |
Labels | GetLabelById | Get Label By ID |
Labels | GetTrackingLogFromLabel | Get Label Tracking Information |
Labels | ListLabels | List labels |
Labels | VoidLabel | Void a Label By ID |
Manifests | CreateManifest | Create Manifest |
Manifests | GetManifestById | Get Manifest By Id |
Manifests | GetManifestRequestById | Get Manifest Request By Id |
Manifests | ListManifests | List Manifests |
PackagePickups | DeleteScheduledPickup | Delete a Scheduled Pickup |
PackagePickups | GetPickupById | Get Pickup By ID |
PackagePickups | ListScheduledPickups | List Scheduled Pickups |
PackagePickups | SchedulePickup | Schedule a Pickup |
PackageTypes | CreatePackageType | Create Custom Package Type |
PackageTypes | DeletePackageType | Delete A Custom Package By ID |
PackageTypes | GetPackageTypeById | Get Custom Package Type By ID |
PackageTypes | ListPackageTypes | List Custom Package Types |
PackageTypes | UpdatePackageType | Update Custom Package Type By ID |
Rates | CalculateRates | Get Shipping Rates |
Rates | CompareBulkRates | Get Bulk Rates |
Rates | EstimateRates | Estimate Rates |
Rates | GetRateById | Get Rate By ID |
ServicePoints | ServicePointsGetById | Get Service Point By ID |
ServicePoints | ServicePointsList | List Service Points |
Shipments | CancelShipments | Cancel a Shipment |
Shipments | CreateShipments | Create Shipments |
Shipments | GetShipmentByExternalId | Get Shipment By External ID |
Shipments | GetShipmentById | Get Shipment By ID |
Shipments | ListShipmentRates | Get Shipment Rates |
Shipments | ListShipments | List Shipments |
Shipments | ParseShipment | Parse shipping info |
Shipments | ShipmentsListTags | Get Shipment Tags |
Shipments | ShipmentsUpdateTags | Update Shipments Tags |
Shipments | TagShipment | Add Tag to Shipment |
Shipments | UntagShipment | Remove Tag from Shipment |
Shipments | UpdateShipment | Update Shipment By ID |
Tags | CreateTag | Create a New Tag |
Tags | DeleteTag | Delete Tag |
Tags | ListTags | Get Tags |
Tags | RenameTag | Update Tag Name |
Tokens | TokensGetEphemeralToken | Get Ephemeral Token |
Tracking | GetTrackingLog | Get Tracking Information |
Tracking | StartTracking | Start Tracking a Package |
Tracking | StopTracking | Stop Tracking a Package |
Warehouses | CreateWarehouse | Create Warehouse |
Warehouses | DeleteWarehouse | Delete Warehouse By ID |
Warehouses | GetWarehouseById | Get Warehouse By Id |
Warehouses | ListWarehouses | List Warehouses |
Warehouses | UpdateWarehouse | Update Warehouse By Id |
Warehouses | UpdateWarehouseSettings | Update Warehouse Settings |
Webhooks | CreateWebhook | Create a Webhook |
Webhooks | DeleteWebhook | Delete Webhook By ID |
Webhooks | GetWebhookById | Get Webhook By ID |
Webhooks | ListWebhooks | List Webhooks |
Webhooks | UpdateWebhook | Update a Webhook |
Legacy Methods
These methods have been deprecated in favor of the methods listed above, but are still in the SDK.
CreateLabelFromRate
- When retrieving rates for shipments using theGetRatesWithShipmentDetails
method, the returned information contains aRateId
property that can be used to purchase a label without having to refill in the shipment information repeatedly.CreateLabelFromShipmentDetails
- Purchase and print a label for shipment.GetRatesWithShipmentDetails
- Given some shipment details and rate options, this method returns a list of rate quotes.ListCarriers
- Returns a list of carrier accounts that have been connected through the ShipEngine dashboard.TrackUsingLabelId
- Track a package by its associated label ID.TrackUsingCarrierCodeAndTrackingNumber
- Track a package for a given carrier and tracking number.ValidateAddresses
- Indicates whether the provided addresses are valid. If the addresses are valid, the method returns a normalized version based on the standards of the country in which the address resides. If an address cannot be normalized, an error is returned.VoidLabelWithLabelId
- Void a label with its Label ID.CreateManifests
- Create a shipment manifest.
Contributing
Contributions, enhancements, and bug-fixes are welcome! Open an issue on GitHub and submit a pull request.
Building
To build the project locally on your computer:
Clone this repo<br>
git clone https://github.com/ShipEngine/shipengine-dotnet.git
Install .NET 8.x
Install dependencies<br>
dotnet restore
Build the code<br>
dotnet build
Format the code<br>
dotnet format
Run the tests<br>
dotnet test
<br><br> By default, the test project targets all supported frameworks, if your environment only supports a subset then you can specify in the CLI. <br><br>dotnet test -f net8.0
Generating from OpenAPI
To regenerate the SDK from the OpenAPI spec, you will first need to get the latest version of the spec. It can be downloaded from the online documentation
and should be saved to ./generation/swagger.json
. Then run npm run generate
from the command line. This will regenerate all the API calls and models, but not docs or tests.
The templates for autogeneration were extracted using the command:
npx @openapitools/openapi-generator-cli author template -g csharp -o generation/templates
Release
Create a fork for your changes.
Update the Changelog with any relevant new features or bug fixes and modify the packageVersion
property in the .openapitools.json
file to match the new version.
In the ShipEngine.csproj
file, update to the desired version (using semantic versioning) and push to your fork.
Run dotnet format
Create a pull request.
Once a member of the ShipEngine team reviews your PR and it's merged to main, the build pipeline will handle all the necessary github tags and nuget packaging and publishing.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Macross.Json.Extensions (>= 3.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Hosting (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Text.Json (>= 9.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ShipEngine:
Package | Downloads |
---|---|
Apsy.Elemental.ECommerce
Package Description |
|
Apsy.Elemental.ShippingAddress
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 68 | 2/19/2025 |
3.0.0-beta.16 | 570 | 10/16/2024 |
3.0.0-beta.15 | 872 | 10/9/2024 |
3.0.0-beta.14 | 56 | 10/8/2024 |
3.0.0-beta.13 | 162 | 10/3/2024 |
3.0.0-beta.12 | 972 | 9/11/2024 |
3.0.0-beta.11 | 513 | 8/26/2024 |
3.0.0-beta.10 | 53 | 8/26/2024 |
3.0.0-beta.9 | 934 | 7/28/2024 |
3.0.0-beta.8 | 80 | 7/24/2024 |
3.0.0-beta.7 | 54 | 7/24/2024 |
3.0.0-beta.6 | 113 | 7/23/2024 |
3.0.0-beta.5 | 86 | 7/23/2024 |
3.0.0-beta.4 | 87 | 7/19/2024 |
3.0.0-beta.3 | 76 | 7/17/2024 |
3.0.0-beta.2 | 78 | 7/16/2024 |
3.0.0-beta.1 | 63 | 7/16/2024 |
2.3.6 | 103 | 2/5/2025 |
2.3.5 | 84 | 1/9/2025 |
2.3.4 | 501 | 11/12/2024 |
2.3.3 | 2,988 | 10/9/2024 |
2.3.2 | 2,717 | 9/12/2024 |
2.3.1 | 115 | 9/3/2024 |
2.3.0 | 126 | 8/26/2024 |
2.2.1 | 4,267 | 7/22/2024 |
2.2.0 | 118 | 7/16/2024 |
2.0.5 | 117 | 7/10/2024 |
2.0.4 | 1,090 | 7/2/2024 |
2.0.3 | 174 | 6/28/2024 |
2.0.2 | 129 | 6/28/2024 |
2.0.1 | 148 | 6/12/2024 |
2.0.0 | 1,806 | 6/5/2024 |
1.1.9 | 4,203 | 5/21/2024 |
1.1.8 | 24,956 | 4/22/2024 |
1.1.7 | 128 | 4/19/2024 |
1.1.6 | 674 | 3/21/2024 |
1.1.5 | 1,984 | 1/12/2024 |
1.1.3 | 2,623 | 10/3/2023 |
1.1.2 | 179 | 9/18/2023 |
1.1.1 | 5,940 | 8/7/2023 |
1.1.0 | 4,802 | 11/10/2022 |
1.0.7 | 2,590 | 11/1/2022 |
1.0.6 | 802 | 10/19/2022 |
1.0.5 | 621 | 9/23/2022 |
1.0.4 | 724 | 6/9/2022 |