GuiStracini.Mandae 8.0.906

There is a newer version of this package available.
See the version list below for details.
dotnet add package GuiStracini.Mandae --version 8.0.906
                    
NuGet\Install-Package GuiStracini.Mandae -Version 8.0.906
                    
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.906" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GuiStracini.Mandae" Version="8.0.906" />
                    
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.906
                    
#r "nuget: GuiStracini.Mandae, 8.0.906"
                    
#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.906
                    
#: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.906
                    
Install as a Cake Addin
#tool nuget:?package=GuiStracini.Mandae&version=8.0.906
                    
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.986 241 9/15/2025
8.0.983 232 9/15/2025
8.0.978 160 9/8/2025
8.0.975 150 9/8/2025
8.0.972 151 9/8/2025
8.0.965 174 9/4/2025
8.0.962 171 9/3/2025
8.0.957 184 8/29/2025
8.0.950 181 8/29/2025
8.0.945 156 8/18/2025
8.0.934 192 8/8/2025
8.0.931 238 8/7/2025
8.0.926 134 7/28/2025
8.0.923 530 7/23/2025
8.0.918 532 7/23/2025
8.0.911 162 7/14/2025
8.0.906 156 7/14/2025
8.0.903 183 6/23/2025
8.0.900 182 6/16/2025
8.0.897 247 6/9/2025
8.0.894 193 5/19/2025
8.0.891 183 5/9/2025
8.0.882 223 4/8/2025
8.0.877 186 4/8/2025
8.0.872 199 3/31/2025
8.0.869 188 3/17/2025
8.0.866 181 3/3/2025
8.0.863 150 2/26/2025
8.0.860 144 2/26/2025
8.0.855 156 2/26/2025
8.0.847 157 2/22/2025
8.0.844 181 2/17/2025
8.0.841 135 2/3/2025
8.0.838 149 1/27/2025
8.0.835 141 1/20/2025
8.0.832 156 1/20/2025
8.0.827 150 1/20/2025
8.0.820 135 1/13/2025
8.0.817 140 1/13/2025
8.0.814 134 1/13/2025
8.0.809 130 1/13/2025
8.0.800 131 1/13/2025
8.0.789 151 1/6/2025
8.0.786 156 1/6/2025
8.0.783 154 1/6/2025
8.0.776 140 1/6/2025
8.0.767 144 12/31/2024
8.0.764 173 12/31/2024
8.0.757 172 12/30/2024
8.0.751 145 12/30/2024
8.0.735 155 12/23/2024
8.0.732 144 12/23/2024
8.0.729 158 12/23/2024
8.0.722 152 12/23/2024
8.0.713 169 12/9/2024
8.0.710 144 12/9/2024
8.0.705 145 12/2/2024
8.0.702 154 12/2/2024
8.0.697 163 12/2/2024
8.0.687 166 11/25/2024
8.0.682 155 11/25/2024
8.0.675 142 11/18/2024
8.0.672 145 10/28/2024
8.0.666 176 10/21/2024
8.0.663 208 10/14/2024
8.0.660 174 10/2/2024
8.0.657 161 10/2/2024
8.0.652 140 9/23/2024
8.0.649 192 9/23/2024
8.0.643 183 9/16/2024
8.0.640 188 9/10/2024
8.0.629 190 9/3/2024
8.0.623 149 8/29/2024
8.0.616 171 8/29/2024
8.0.613 174 8/29/2024
8.0.606 137 8/28/2024
8.0.599 169 8/27/2024
8.0.594 176 8/26/2024
8.0.591 179 8/26/2024
8.0.586 155 8/26/2024
8.0.581 160 8/26/2024
8.0.566 187 8/19/2024
8.0.563 172 8/12/2024
8.0.560 143 7/29/2024
8.0.557 159 7/22/2024
8.0.549 170 7/16/2024
8.0.546 173 7/16/2024
8.0.541 168 7/16/2024
8.0.532 159 7/16/2024
8.0.529 169 7/16/2024
8.0.501 201 6/19/2024
8.0.500 177 6/18/2024
8.0.498 204 6/18/2024
8.0.492 154 6/3/2024
8.0.489 156 6/3/2024
8.0.484 156 5/28/2024
8.0.481 173 5/28/2024
8.0.476 195 5/28/2024
8.0.469 166 5/28/2024
8.0.460 140 5/20/2024
8.0.457 163 5/15/2024
8.0.442 173 4/29/2024
8.0.439 152 4/29/2024
8.0.434 161 4/29/2024
8.0.427 159 4/29/2024
8.0.418 183 4/22/2024
8.0.415 156 4/22/2024
8.0.410 174 4/22/2024
8.0.403 185 4/15/2024
8.0.400 193 4/15/2024
8.0.395 186 4/15/2024
8.0.388 165 4/15/2024
8.0.379 211 4/8/2024
8.0.376 198 4/8/2024
8.0.371 196 4/8/2024
8.0.364 231 4/1/2024
8.0.361 232 3/25/2024
8.0.358 217 3/25/2024
8.0.353 227 3/18/2024
8.0.350 249 3/18/2024
8.0.345 285 3/11/2024
8.0.342 348 2/26/2024
8.0.339 324 2/26/2024
8.0.334 338 2/26/2024
8.0.327 335 2/26/2024
8.0.318 358 2/19/2024
8.0.310 347 2/19/2024
8.0.303 349 2/19/2024
8.0.294 373 2/14/2024
8.0.288 381 2/12/2024
8.0.285 409 2/5/2024
8.0.282 389 2/5/2024
8.0.277 414 1/30/2024
8.0.272 425 1/29/2024
8.0.269 416 1/29/2024
8.0.264 417 1/29/2024
8.0.254 454 1/22/2024
8.0.251 413 1/22/2024
8.0.246 419 1/22/2024
8.0.239 424 1/22/2024
8.0.230 482 1/16/2024
8.0.227 450 1/16/2024
8.0.222 447 1/15/2024
8.0.215 484 1/8/2024
8.0.212 464 1/8/2024
8.0.207 519 12/25/2023
8.0.204 500 12/25/2023
8.0.199 506 12/25/2023
8.0.192 502 12/25/2023
8.0.183 526 12/18/2023
8.0.178 516 12/18/2023
8.0.166 513 12/14/2023
8.0.157 540 12/12/2023
8.0.154 510 12/12/2023
8.0.149 524 12/12/2023
8.0.142 528 12/11/2023
8.0.137 505 12/11/2023
8.0.134 496 12/11/2023
8.0.114 552 12/8/2023
8.0.111 514 12/8/2023
8.0.108 534 12/8/2023
8.0.105 519 12/8/2023
8.0.96 509 12/8/2023
8.0.85 560 12/8/2023
8.0.59 1,982 11/14/2023
8.0.54 560 11/14/2023
8.0.49 532 11/13/2023
8.0.44 514 11/13/2023
8.0.37 551 11/9/2023
8.0.32 575 11/7/2023
8.0.27 545 11/6/2023
8.0.24 600 10/30/2023
8.0.21 554 10/30/2023
8.0.18 545 10/30/2023
8.0.13 604 10/22/2023
7.1.346 609 10/9/2023
7.1.343 588 10/9/2023
7.1.338 612 10/9/2023
7.1.335 618 10/9/2023
7.1.330 601 10/9/2023
7.1.323 609 10/7/2023
7.1.313 633 9/25/2023
7.1.308 635 9/24/2023
7.1.305 629 9/24/2023
7.1.298 627 9/23/2023
7.1.294 657 9/13/2023
7.1.287 661 9/13/2023
7.1.284 637 9/12/2023
7.1.281 649 9/12/2023
7.1.271 834 8/28/2023
7.1.263 904 8/14/2023
7.1.260 741 8/13/2023
7.1.227 728 8/13/2023
7.1.220 960 7/29/2023
7.1.218 807 7/29/2023
7.1.204 810 7/28/2023
7.1.200 847 7/25/2023
7.1.197 823 7/25/2023
7.1.190 886 7/19/2023
7.1.182 801 7/19/2023
7.1.157 1,022 6/27/2023
7.1.150 832 6/26/2023
7.1.145 923 6/19/2023
7.1.138 848 6/19/2023
7.1.135 838 6/19/2023
7.1.126 826 6/18/2023
7.1.107 1,018 6/6/2023
7.1.104 849 6/6/2023
7.1.95 847 6/6/2023
7.1.75 898 6/5/2023
7.1.17 1,263 5/4/2023
7.1.16 820 5/2/2023
7.1.15 913 4/28/2023
7.1.10 858 4/21/2023
7.1.8 893 4/21/2023
7.1.2 1,057 4/10/2023
7.0.101 848 4/8/2023
7.0.97 910 4/4/2023
7.0.92 1,013 4/3/2023
7.0.86 926 4/3/2023
7.0.64 968 3/26/2023
7.0.59 912 3/26/2023
7.0.43 927 3/22/2023
7.0.36 1,019 2/4/2023
7.0.31 1,100 1/24/2023
7.0.28 1,007 1/24/2023
7.0.25 1,003 1/24/2023
7.0.13 989 1/23/2023
7.0.8 961 1/23/2023
6.0.46 1,255 1/16/2023
6.0.43 1,011 1/16/2023
6.0.31 1,024 1/9/2023
6.0.30 1,023 12/25/2022
6.0.29 949 12/25/2022
6.0.17 1,985 4/24/2020
6.0.13 1,292 4/24/2020
6.0.12 1,293 4/18/2020
6.0.11 1,306 4/18/2020
6.0.10 1,312 4/18/2020
6.0.9 1,316 4/18/2020
6.0.8 1,391 9/24/2019
6.0.5 1,384 9/24/2019
5.0.37 1,432 6/18/2019
4.0.33 1,455 2/23/2019
4.0.30 1,405 2/23/2019
4.0.28 1,419 2/23/2019
4.0.27 1,487 2/14/2019
4.0.26 1,468 2/14/2019
4.0.25 1,477 2/14/2019
4.0.24 1,460 2/12/2019
4.0.23 1,455 1/29/2019
3.1.20 1,585 12/5/2018
3.1.17 1,668 9/8/2018
3.1.16 1,730 9/8/2018
3.1.15 1,606 9/8/2018
3.1.14 1,595 9/7/2018
3.1.13 1,620 9/7/2018
3.1.12 1,649 9/7/2018
3.1.11 1,670 8/23/2018
3.1.10 1,675 8/22/2018
3.1.8 1,626 8/16/2018
3.1.6 1,808 8/1/2018
3.1.5 1,717 8/1/2018
3.1.4 1,795 7/27/2018
3.1.3 1,752 7/27/2018
3.1.2 1,763 7/27/2018
3.1.1 1,746 7/26/2018
2.0.5 1,747 7/19/2018
2.0.4 2,051 5/24/2018
2.0.3 1,985 5/24/2018
2.0.1 2,027 5/9/2018
1.4.8 1,995 4/18/2018
1.4.7 1,964 4/18/2018
1.4.5 2,119 1/9/2018
1.4.1 2,099 1/9/2018
1.3.25 2,027 1/9/2018
1.3.19 2,063 12/20/2017
1.3.18 1,821 12/18/2017
1.3.17 2,033 12/15/2017
1.3.16 2,071 12/15/2017
1.3.14 2,061 12/15/2017
1.3.9 2,063 12/15/2017
1.3.8 2,055 12/15/2017
1.3.7 2,090 12/15/2017
1.3.5 2,068 12/15/2017
1.3.4 2,122 12/15/2017
1.3.3 2,085 12/15/2017
1.3.2 1,989 12/15/2017
1.3.1 1,862 11/30/2017
1.2.36 1,796 11/30/2017
1.2.34 1,844 11/29/2017
1.2.33 1,834 11/29/2017
1.2.31 1,805 11/29/2017
1.2.29 1,804 10/5/2017
1.2.28 1,813 10/4/2017
1.2.26 1,867 10/3/2017
1.2.25 1,838 10/3/2017
1.2.24 2,068 10/3/2017

Upgrade to .NET Standard 2.0 and 2.1