GuiStracini.Mandae 8.0.891

There is a newer version of this package available.
See the version list below for details.
dotnet add package GuiStracini.Mandae --version 8.0.891
                    
NuGet\Install-Package GuiStracini.Mandae -Version 8.0.891
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GuiStracini.Mandae" Version="8.0.891" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GuiStracini.Mandae" Version="8.0.891" />
                    
Directory.Packages.props
<PackageReference Include="GuiStracini.Mandae" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GuiStracini.Mandae --version 8.0.891
                    
#r "nuget: GuiStracini.Mandae, 8.0.891"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GuiStracini.Mandae@8.0.891
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GuiStracini.Mandae&version=8.0.891
                    
Install as a Cake Addin
#tool nuget:?package=GuiStracini.Mandae&version=8.0.891
                    
Install as a Cake Tool

Mandaê SDK .NET

🇧🇷🚚 Mandaê API .NET client wrapper

Para a versão em português, por favor siga me.

GitHub license Time tracker GitHub issues by-label

Mandae logo

This is a client for the Mandaê API V2


CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality (main branch)

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities

DeepSource


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
GuiStracini.Mandae GuiStracini.Mandae NuGet Version GuiStracini.Mandae NuGet Downloads

Features

This client supports the following operations/features of the API:

  1. Get rates for a delivery (postal code and package dimensions)
  2. Schedule a collect (register a collect in the customer distribution center with one or more packages. Each package can have one or more items/SKU)
  3. Get tracking data of a shipment (Get all tracking data available from one package - tracking code is set by the customer or provided by webhook)
  4. Webhooks schema ready (The webhooks models, ready for implementation)
  5. Experimental Querying orders (API V1 - non-public API)
  6. Experimental Querying occurrences (API V1 - non-public API). Issue #1 GitHub labels
  7. Experimental Querying reverses (API V1 - non-public API). Issue #2 GitHub labels
  8. Experimental Request reverse (API V1 - non-public API). Issue #3 GitHub labels

Usage

Setup the MandaeClient

Initializes a new instance of the MandaeClient class.

Example:

//Request your API token to ti@mandae.com.br 
//Each environment has its own API token!
var apiToken = "my API token";

//Call the constructor with the API token and the API environment (SANDBOX | PRODUCTION).
//var client = new MandaeClient(apiToken); //<= Environment.SANDBOX is the default environment.
var client = new MandaeClient(apiToken, Environment.PRODUCTION);

Get rates for a package/delivery

Get the rates (Rápido & Econômico) values and delivery time for a specified postal code and package dimensions.

Example:

//The MandaeClient
var client = new MandaeClient("my API token");

//The RatesModel
var delivery = new RatesModel {
    PostalCode = "22041080",
    ...
}
var rates = client.GetRates(delivery);
var fast = rates.ShippingServices.Single(s => s.Name == "Rápido");
var economic = rates.ShippingServices.Single(s => s.Name == "Econômico");
var option = ShippingService.ECONOMICO;
if(fast.Price < economic.Price)
    option = ShippingService.RAPIDO;

//The OrderModel (order collect request model)
var order = new OrderModel { ... };
order.Items = new [] {
    new NewItem 
    {
        ....
        ShippingService = option
    }
};
var order = client.RegisterOrderCollectRequest(order);

Schedule a collect request

Schedule a collect request (pickup in a distribution center/origin location).

Inform which type of Vehicle, when, which rate (Rapido | Economico) and the order items (a.k.a packages or clients orders).

Each package means an order/volume that can have one or more items (SKUs).

Example:

//The MandaeClient
var client = new MandaeClient("my API token");

//The OrderModel (order collect request model)
var order = new OrderModel { ... };
order.Items = new [] {
    new NewItem 
    {
        ....
        ShippingService = option
    }
};

//Makes the request
var order = client.RegisterOrderCollectRequest(order);
**
//order.Id is the id for further use (maybe cancel the request ?)

Get tracking of a package

Example:

//The MandaeClient
var client = new MandaeClient("my API token");

//The tracking identifier (Generated by the Mandae or sent by the order collection request
var trackingId = "MyCompany-00001";
var tracking = client.GetTracking(tracking);
//tracking.CarrierName;
//tracking.CarrierCode;
//tracking.Events;

Querying orders (API V1 - Search) EXPERIMENTAL/NON-PUBLIC API

For the V1 you'll need to use the e-mail/password combination of the Mandaê panel to log in V1 API.

Example:

//The MandaeClient
var client = new MandaeClient("V2 API token");
client.ConfigureV1Authentication("myEmail@example.com", "password");
var trackingCode = "XYZ000001";//The tracking code of some order
var result = client.Search(SearchMethod.TRACKING_CODE, trackingCode);
if(result.Total == 1)
    Console.WriteLine(result.Orders.Single().SituationDescription);    

Release notes

  • Release v6.0.0 and higher DEPRECATED methods: Get Latest Order
  • Release v5.0.0 and higher DEPRECATED methods: Large Request, Cancel Request, Cancel Item Request
  • Release v3.0.0 and higher changes the V1 authentication method. Now use your e-mail/password of the Mandaê panel to log in to the V1 API.
  • Release v1.4.1 and higher also includes an experimental (non-public) V1 endpoint for search/querying orders (the same interface as available through the Mandaê administration panel).

Warning

The API V1 is not officially public, so there is no warranty that it will still be working


Product 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 is compatible.  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 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 is compatible. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.996 76 9/29/2025
8.0.993 75 9/29/2025
8.0.986 258 9/15/2025
8.0.983 246 9/15/2025
8.0.978 173 9/8/2025
8.0.975 165 9/8/2025
8.0.972 163 9/8/2025
8.0.965 186 9/4/2025
8.0.962 184 9/3/2025
8.0.957 195 8/29/2025
8.0.950 192 8/29/2025
8.0.945 167 8/18/2025
8.0.934 204 8/8/2025
8.0.931 250 8/7/2025
8.0.926 155 7/28/2025
8.0.923 549 7/23/2025
8.0.918 551 7/23/2025
8.0.911 172 7/14/2025
8.0.906 166 7/14/2025
8.0.903 195 6/23/2025
8.0.900 192 6/16/2025
8.0.897 260 6/9/2025
8.0.894 204 5/19/2025
8.0.891 193 5/9/2025
8.0.882 235 4/8/2025
8.0.877 208 4/8/2025
8.0.872 211 3/31/2025
8.0.869 198 3/17/2025
8.0.866 193 3/3/2025
8.0.863 160 2/26/2025
8.0.860 154 2/26/2025
8.0.855 168 2/26/2025
8.0.847 168 2/22/2025
8.0.844 192 2/17/2025
8.0.841 155 2/3/2025
8.0.838 159 1/27/2025
8.0.835 151 1/20/2025
8.0.832 170 1/20/2025
8.0.827 161 1/20/2025
8.0.820 145 1/13/2025
8.0.817 152 1/13/2025
8.0.814 145 1/13/2025
8.0.809 141 1/13/2025
8.0.800 141 1/13/2025
8.0.789 161 1/6/2025
8.0.786 166 1/6/2025
8.0.783 164 1/6/2025
8.0.776 151 1/6/2025
8.0.767 154 12/31/2024
8.0.764 188 12/31/2024
8.0.757 182 12/30/2024
8.0.751 155 12/30/2024
8.0.735 168 12/23/2024
8.0.732 157 12/23/2024
8.0.729 172 12/23/2024
8.0.722 163 12/23/2024
8.0.713 180 12/9/2024
8.0.710 154 12/9/2024
8.0.705 155 12/2/2024
8.0.702 165 12/2/2024
8.0.697 185 12/2/2024
8.0.687 177 11/25/2024
8.0.682 160 11/25/2024
8.0.675 152 11/18/2024
8.0.672 156 10/28/2024
8.0.666 190 10/21/2024
8.0.663 222 10/14/2024
8.0.660 188 10/2/2024
8.0.657 176 10/2/2024
8.0.652 160 9/23/2024
8.0.649 203 9/23/2024
8.0.643 193 9/16/2024
8.0.640 200 9/10/2024
8.0.629 200 9/3/2024
8.0.623 159 8/29/2024
8.0.616 182 8/29/2024
8.0.613 187 8/29/2024
8.0.606 157 8/28/2024
8.0.599 181 8/27/2024
8.0.594 186 8/26/2024
8.0.591 191 8/26/2024
8.0.586 164 8/26/2024
8.0.581 170 8/26/2024
8.0.566 200 8/19/2024
8.0.563 192 8/12/2024
8.0.560 154 7/29/2024
8.0.557 169 7/22/2024
8.0.549 181 7/16/2024
8.0.546 185 7/16/2024
8.0.541 178 7/16/2024
8.0.532 169 7/16/2024
8.0.529 180 7/16/2024
8.0.501 214 6/19/2024
8.0.500 198 6/18/2024
8.0.498 215 6/18/2024
8.0.492 164 6/3/2024
8.0.489 166 6/3/2024
8.0.484 167 5/28/2024
8.0.481 184 5/28/2024
8.0.476 207 5/28/2024
8.0.469 179 5/28/2024
8.0.460 150 5/20/2024
8.0.457 175 5/15/2024
8.0.442 183 4/29/2024
8.0.439 162 4/29/2024
8.0.434 173 4/29/2024
8.0.427 170 4/29/2024
8.0.418 194 4/22/2024
8.0.415 166 4/22/2024
8.0.410 186 4/22/2024
8.0.403 195 4/15/2024
8.0.400 204 4/15/2024
8.0.395 192 4/15/2024
8.0.388 175 4/15/2024
8.0.379 223 4/8/2024
8.0.376 209 4/8/2024
8.0.371 206 4/8/2024
8.0.364 241 4/1/2024
8.0.361 245 3/25/2024
8.0.358 227 3/25/2024
8.0.353 244 3/18/2024
8.0.350 259 3/18/2024
8.0.345 295 3/11/2024
8.0.342 359 2/26/2024
8.0.339 334 2/26/2024
8.0.334 348 2/26/2024
8.0.327 346 2/26/2024
8.0.318 368 2/19/2024
8.0.310 360 2/19/2024
8.0.303 359 2/19/2024
8.0.294 384 2/14/2024
8.0.288 395 2/12/2024
8.0.285 419 2/5/2024
8.0.282 401 2/5/2024
8.0.277 424 1/30/2024
8.0.272 437 1/29/2024
8.0.269 430 1/29/2024
8.0.264 429 1/29/2024
8.0.254 465 1/22/2024
8.0.251 420 1/22/2024
8.0.246 430 1/22/2024
8.0.239 436 1/22/2024
8.0.230 494 1/16/2024
8.0.227 461 1/16/2024
8.0.222 458 1/15/2024
8.0.215 496 1/8/2024
8.0.212 474 1/8/2024
8.0.207 530 12/25/2023
8.0.204 511 12/25/2023
8.0.199 517 12/25/2023
8.0.192 512 12/25/2023
8.0.183 537 12/18/2023
8.0.178 527 12/18/2023
8.0.166 523 12/14/2023
8.0.157 550 12/12/2023
8.0.154 518 12/12/2023
8.0.149 535 12/12/2023
8.0.142 540 12/11/2023
8.0.137 515 12/11/2023
8.0.134 506 12/11/2023
8.0.114 565 12/8/2023
8.0.111 534 12/8/2023
8.0.108 544 12/8/2023
8.0.105 530 12/8/2023
8.0.96 519 12/8/2023
8.0.85 570 12/8/2023
8.0.59 1,995 11/14/2023
8.0.54 571 11/14/2023
8.0.49 542 11/13/2023
8.0.44 522 11/13/2023
8.0.37 561 11/9/2023
8.0.32 588 11/7/2023
8.0.27 555 11/6/2023
8.0.24 611 10/30/2023
8.0.21 564 10/30/2023
8.0.18 555 10/30/2023
8.0.13 614 10/22/2023
7.1.346 629 10/9/2023
7.1.343 601 10/9/2023
7.1.338 624 10/9/2023
7.1.335 631 10/9/2023
7.1.330 612 10/9/2023
7.1.323 619 10/7/2023
7.1.313 645 9/25/2023
7.1.308 646 9/24/2023
7.1.305 639 9/24/2023
7.1.298 637 9/23/2023
7.1.294 667 9/13/2023
7.1.287 671 9/13/2023
7.1.284 647 9/12/2023
7.1.281 660 9/12/2023
7.1.271 845 8/28/2023
7.1.263 917 8/14/2023
7.1.260 751 8/13/2023
7.1.227 739 8/13/2023
7.1.220 971 7/29/2023
7.1.218 817 7/29/2023
7.1.204 822 7/28/2023
7.1.200 858 7/25/2023
7.1.197 833 7/25/2023
7.1.190 898 7/19/2023
7.1.182 807 7/19/2023
7.1.157 1,032 6/27/2023
7.1.150 842 6/26/2023
7.1.145 936 6/19/2023
7.1.138 859 6/19/2023
7.1.135 849 6/19/2023
7.1.126 837 6/18/2023
7.1.107 1,033 6/6/2023
7.1.104 860 6/6/2023
7.1.95 858 6/6/2023
7.1.75 911 6/5/2023
7.1.17 1,276 5/4/2023
7.1.16 831 5/2/2023
7.1.15 921 4/28/2023
7.1.10 869 4/21/2023
7.1.8 906 4/21/2023
7.1.2 1,069 4/10/2023
7.0.101 869 4/8/2023
7.0.97 923 4/4/2023
7.0.92 1,029 4/3/2023
7.0.86 937 4/3/2023
7.0.64 991 3/26/2023
7.0.59 923 3/26/2023
7.0.43 938 3/22/2023
7.0.36 1,030 2/4/2023
7.0.31 1,103 1/24/2023
7.0.28 1,019 1/24/2023
7.0.25 1,014 1/24/2023
7.0.13 1,000 1/23/2023
7.0.8 973 1/23/2023
6.0.46 1,288 1/16/2023
6.0.43 1,022 1/16/2023
6.0.31 1,036 1/9/2023
6.0.30 1,042 12/25/2022
6.0.29 960 12/25/2022
6.0.17 2,010 4/24/2020
6.0.13 1,313 4/24/2020
6.0.12 1,305 4/18/2020
6.0.11 1,328 4/18/2020
6.0.10 1,335 4/18/2020
6.0.9 1,339 4/18/2020
6.0.8 1,412 9/24/2019
6.0.5 1,396 9/24/2019
5.0.37 1,435 6/18/2019
4.0.33 1,456 2/23/2019
4.0.30 1,417 2/23/2019
4.0.28 1,438 2/23/2019
4.0.27 1,512 2/14/2019
4.0.26 1,481 2/14/2019
4.0.25 1,488 2/14/2019
4.0.24 1,472 2/12/2019
4.0.23 1,467 1/29/2019
3.1.20 1,628 12/5/2018
3.1.17 1,670 9/8/2018
3.1.16 1,754 9/8/2018
3.1.15 1,620 9/8/2018
3.1.14 1,607 9/7/2018
3.1.13 1,642 9/7/2018
3.1.12 1,650 9/7/2018
3.1.11 1,682 8/23/2018
3.1.10 1,685 8/22/2018
3.1.8 1,627 8/16/2018
3.1.6 1,810 8/1/2018
3.1.5 1,748 8/1/2018
3.1.4 1,806 7/27/2018
3.1.3 1,754 7/27/2018
3.1.2 1,776 7/27/2018
3.1.1 1,770 7/26/2018
2.0.5 1,763 7/19/2018
2.0.4 2,076 5/24/2018
2.0.3 1,989 5/24/2018
2.0.1 2,030 5/9/2018
1.4.8 2,011 4/18/2018
1.4.7 1,977 4/18/2018
1.4.5 2,131 1/9/2018
1.4.1 2,115 1/9/2018
1.3.25 2,032 1/9/2018
1.3.19 2,084 12/20/2017
1.3.18 1,832 12/18/2017
1.3.17 2,064 12/15/2017
1.3.16 2,087 12/15/2017
1.3.14 2,066 12/15/2017
1.3.9 2,077 12/15/2017
1.3.8 2,069 12/15/2017
1.3.7 2,102 12/15/2017
1.3.5 2,072 12/15/2017
1.3.4 2,125 12/15/2017
1.3.3 2,109 12/15/2017
1.3.2 1,992 12/15/2017
1.3.1 1,875 11/30/2017
1.2.36 1,813 11/30/2017
1.2.34 1,857 11/29/2017
1.2.33 1,849 11/29/2017
1.2.31 1,807 11/29/2017
1.2.29 1,818 10/5/2017
1.2.28 1,845 10/4/2017
1.2.26 1,878 10/3/2017
1.2.25 1,852 10/3/2017
1.2.24 2,071 10/3/2017

Upgrade to .NET Standard 2.0 and 2.1