GuiStracini.Mandae 8.0.903

dotnet add package GuiStracini.Mandae --version 8.0.903
                    
NuGet\Install-Package GuiStracini.Mandae -Version 8.0.903
                    
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.903" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GuiStracini.Mandae" Version="8.0.903" />
                    
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.903
                    
#r "nuget: GuiStracini.Mandae, 8.0.903"
                    
#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.
#addin nuget:?package=GuiStracini.Mandae&version=8.0.903
                    
Install as a Cake Addin
#tool nuget:?package=GuiStracini.Mandae&version=8.0.903
                    
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.903 130 6/23/2025
8.0.900 135 6/16/2025
8.0.897 211 6/9/2025
8.0.894 154 5/19/2025
8.0.891 149 5/9/2025
8.0.882 184 4/8/2025
8.0.877 158 4/8/2025
8.0.872 159 3/31/2025
8.0.869 156 3/17/2025
8.0.866 140 3/3/2025
8.0.863 119 2/26/2025
8.0.860 113 2/26/2025
8.0.855 112 2/26/2025
8.0.847 118 2/22/2025
8.0.844 138 2/17/2025
8.0.841 117 2/3/2025
8.0.838 121 1/27/2025
8.0.835 111 1/20/2025
8.0.832 119 1/20/2025
8.0.827 114 1/20/2025
8.0.820 103 1/13/2025
8.0.817 97 1/13/2025
8.0.814 96 1/13/2025
8.0.809 89 1/13/2025
8.0.800 101 1/13/2025
8.0.789 124 1/6/2025
8.0.786 116 1/6/2025
8.0.783 121 1/6/2025
8.0.776 101 1/6/2025
8.0.767 118 12/31/2024
8.0.764 135 12/31/2024
8.0.757 141 12/30/2024
8.0.751 114 12/30/2024
8.0.735 114 12/23/2024
8.0.732 105 12/23/2024
8.0.729 116 12/23/2024
8.0.722 110 12/23/2024
8.0.713 128 12/9/2024
8.0.710 117 12/9/2024
8.0.705 116 12/2/2024
8.0.702 114 12/2/2024
8.0.697 135 12/2/2024
8.0.687 126 11/25/2024
8.0.682 118 11/25/2024
8.0.675 112 11/18/2024
8.0.672 111 10/28/2024
8.0.666 141 10/21/2024
8.0.663 171 10/14/2024
8.0.660 132 10/2/2024
8.0.657 121 10/2/2024
8.0.652 121 9/23/2024
8.0.649 151 9/23/2024
8.0.643 152 9/16/2024
8.0.640 152 9/10/2024
8.0.629 149 9/3/2024
8.0.623 121 8/29/2024
8.0.616 126 8/29/2024
8.0.613 131 8/29/2024
8.0.606 121 8/28/2024
8.0.599 132 8/27/2024
8.0.594 136 8/26/2024
8.0.591 134 8/26/2024
8.0.586 127 8/26/2024
8.0.581 131 8/26/2024
8.0.566 146 8/19/2024
8.0.563 143 8/12/2024
8.0.560 104 7/29/2024
8.0.557 131 7/22/2024
8.0.549 125 7/16/2024
8.0.546 142 7/16/2024
8.0.541 127 7/16/2024
8.0.532 130 7/16/2024
8.0.529 125 7/16/2024
8.0.501 157 6/19/2024
8.0.500 149 6/18/2024
8.0.498 162 6/18/2024
8.0.492 129 6/3/2024
8.0.489 129 6/3/2024
8.0.484 122 5/28/2024
8.0.481 134 5/28/2024
8.0.476 154 5/28/2024
8.0.469 128 5/28/2024
8.0.460 112 5/20/2024
8.0.457 123 5/15/2024
8.0.442 134 4/29/2024
8.0.439 123 4/29/2024
8.0.434 127 4/29/2024
8.0.427 121 4/29/2024
8.0.418 143 4/22/2024
8.0.415 119 4/22/2024
8.0.410 142 4/22/2024
8.0.403 157 4/15/2024
8.0.400 159 4/15/2024
8.0.395 151 4/15/2024
8.0.388 137 4/15/2024
8.0.379 175 4/8/2024
8.0.376 158 4/8/2024
8.0.371 162 4/8/2024
8.0.364 180 4/1/2024
8.0.361 195 3/25/2024
8.0.358 189 3/25/2024
8.0.353 210 3/18/2024
8.0.350 214 3/18/2024
8.0.345 253 3/11/2024
8.0.342 310 2/26/2024
8.0.339 295 2/26/2024
8.0.334 304 2/26/2024
8.0.327 293 2/26/2024
8.0.318 320 2/19/2024
8.0.310 313 2/19/2024
8.0.303 321 2/19/2024
8.0.294 335 2/14/2024
8.0.288 342 2/12/2024
8.0.285 369 2/5/2024
8.0.282 352 2/5/2024
8.0.277 377 1/30/2024
8.0.272 382 1/29/2024
8.0.269 379 1/29/2024
8.0.264 377 1/29/2024
8.0.254 416 1/22/2024
8.0.251 384 1/22/2024
8.0.246 381 1/22/2024
8.0.239 386 1/22/2024
8.0.230 444 1/16/2024
8.0.227 408 1/16/2024
8.0.222 409 1/15/2024
8.0.215 446 1/8/2024
8.0.212 436 1/8/2024
8.0.207 481 12/25/2023
8.0.204 468 12/25/2023
8.0.199 473 12/25/2023
8.0.192 472 12/25/2023
8.0.183 489 12/18/2023
8.0.178 475 12/18/2023
8.0.166 486 12/14/2023
8.0.157 503 12/12/2023
8.0.154 475 12/12/2023
8.0.149 487 12/12/2023
8.0.142 490 12/11/2023
8.0.137 479 12/11/2023
8.0.134 471 12/11/2023
8.0.114 517 12/8/2023
8.0.111 488 12/8/2023
8.0.108 509 12/8/2023
8.0.105 487 12/8/2023
8.0.96 486 12/8/2023
8.0.85 523 12/8/2023
8.0.59 1,857 11/14/2023
8.0.54 535 11/14/2023
8.0.49 512 11/13/2023
8.0.44 496 11/13/2023
8.0.37 531 11/9/2023
8.0.32 548 11/7/2023
8.0.27 518 11/6/2023
8.0.24 572 10/30/2023
8.0.21 534 10/30/2023
8.0.18 524 10/30/2023
8.0.13 571 10/22/2023
7.1.346 581 10/9/2023
7.1.343 554 10/9/2023
7.1.338 578 10/9/2023
7.1.335 580 10/9/2023
7.1.330 575 10/9/2023
7.1.323 583 10/7/2023
7.1.313 598 9/25/2023
7.1.308 600 9/24/2023
7.1.305 595 9/24/2023
7.1.298 599 9/23/2023
7.1.294 629 9/13/2023
7.1.287 635 9/13/2023
7.1.284 609 9/12/2023
7.1.281 611 9/12/2023
7.1.271 788 8/28/2023
7.1.263 855 8/14/2023
7.1.260 691 8/13/2023
7.1.227 687 8/13/2023
7.1.220 914 7/29/2023
7.1.218 767 7/29/2023
7.1.204 759 7/28/2023
7.1.200 786 7/25/2023
7.1.197 781 7/25/2023
7.1.190 836 7/19/2023
7.1.182 752 7/19/2023
7.1.157 981 6/27/2023
7.1.150 786 6/26/2023
7.1.145 874 6/19/2023
7.1.138 809 6/19/2023
7.1.135 781 6/19/2023
7.1.126 776 6/18/2023
7.1.107 955 6/6/2023
7.1.104 793 6/6/2023
7.1.95 792 6/6/2023
7.1.75 841 6/5/2023
7.1.17 1,211 5/4/2023
7.1.16 777 5/2/2023
7.1.15 863 4/28/2023
7.1.10 816 4/21/2023
7.1.8 833 4/21/2023
7.1.2 1,000 4/10/2023
7.0.101 814 4/8/2023
7.0.97 861 4/4/2023
7.0.92 959 4/3/2023
7.0.86 875 4/3/2023
7.0.64 930 3/26/2023
7.0.59 870 3/26/2023
7.0.43 885 3/22/2023
7.0.36 976 2/4/2023
7.0.31 1,043 1/24/2023
7.0.28 947 1/24/2023
7.0.25 958 1/24/2023
7.0.13 937 1/23/2023
7.0.8 908 1/23/2023
6.0.46 1,216 1/16/2023
6.0.43 966 1/16/2023
6.0.31 966 1/9/2023
6.0.30 979 12/25/2022
6.0.29 905 12/25/2022
6.0.17 1,923 4/24/2020
6.0.13 1,228 4/24/2020
6.0.12 1,234 4/18/2020
6.0.11 1,246 4/18/2020
6.0.10 1,247 4/18/2020
6.0.9 1,259 4/18/2020
6.0.8 1,319 9/24/2019
6.0.5 1,333 9/24/2019
5.0.37 1,373 6/18/2019
4.0.33 1,402 2/23/2019
4.0.30 1,343 2/23/2019
4.0.28 1,368 2/23/2019
4.0.27 1,436 2/14/2019
4.0.26 1,408 2/14/2019
4.0.25 1,419 2/14/2019
4.0.24 1,410 2/12/2019
4.0.23 1,403 1/29/2019
3.1.20 1,512 12/5/2018
3.1.17 1,604 9/8/2018
3.1.16 1,665 9/8/2018
3.1.15 1,540 9/8/2018
3.1.14 1,541 9/7/2018
3.1.13 1,543 9/7/2018
3.1.12 1,591 9/7/2018
3.1.11 1,616 8/23/2018
3.1.10 1,610 8/22/2018
3.1.8 1,569 8/16/2018
3.1.6 1,713 8/1/2018
3.1.5 1,625 8/1/2018
3.1.4 1,698 7/27/2018
3.1.3 1,661 7/27/2018
3.1.2 1,670 7/27/2018
3.1.1 1,650 7/26/2018
2.0.5 1,650 7/19/2018
2.0.4 1,924 5/24/2018
2.0.3 1,851 5/24/2018
2.0.1 1,903 5/9/2018
1.4.8 1,863 4/18/2018
1.4.7 1,828 4/18/2018
1.4.5 1,995 1/9/2018
1.4.1 1,957 1/9/2018
1.3.25 1,896 1/9/2018
1.3.19 1,941 12/20/2017
1.3.18 1,721 12/18/2017
1.3.17 1,904 12/15/2017
1.3.16 1,915 12/15/2017
1.3.14 1,916 12/15/2017
1.3.9 1,940 12/15/2017
1.3.8 1,924 12/15/2017
1.3.7 1,960 12/15/2017
1.3.5 1,931 12/15/2017
1.3.4 2,001 12/15/2017
1.3.3 1,954 12/15/2017
1.3.2 1,865 12/15/2017
1.3.1 1,775 11/30/2017
1.2.36 1,698 11/30/2017
1.2.34 1,744 11/29/2017
1.2.33 1,736 11/29/2017
1.2.31 1,718 11/29/2017
1.2.29 1,711 10/5/2017
1.2.28 1,720 10/4/2017
1.2.26 1,766 10/3/2017
1.2.25 1,729 10/3/2017
1.2.24 1,945 10/3/2017

Upgrade to .NET Standard 2.0 and 2.1