All URIs are relative to https://app.shipmondo.com/api/public/v3
Method | HTTP request | Description |
---|---|---|
WaybillsClose | PUT /waybills/{id}/close | Close an open waybill |
WaybillsGet | GET /waybills | List all waybills |
WaybillsPost | POST /waybills | Create a waybill |
WaybillsShow | GET /waybills/{id} | Retrieve a waybill |
Waybill WaybillsClose (int id, CloseWaybillRequest closeWaybillRequest)
Close an open waybill
Closes an open waybill and returns its details. The response include the Base64 for the waybill PDF.
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class WaybillsCloseExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new WaybillsApi(config);
var id = 56; // int | ID for the waybill to be included in the filter
var closeWaybillRequest = new CloseWaybillRequest(); // CloseWaybillRequest |
try
{
// Close an open waybill
Waybill result = apiInstance.WaybillsClose(id, closeWaybillRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsClose: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Close an open waybill
ApiResponse<Waybill> response = apiInstance.WaybillsCloseWithHttpInfo(id, closeWaybillRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsCloseWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID for the waybill to be included in the filter | |
closeWaybillRequest | CloseWaybillRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | - |
401 | Unauthorized. | - |
404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<WaybillNoBase64> WaybillsGet (int? id = null, string reference = null, string carrierCode = null, int? perPage = null, int? page = null)
List all waybills
Returns a list of waybills (excluding Base64 PDF).
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class WaybillsGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new WaybillsApi(config);
var id = 56; // int? | ID for the waybill to be included in the filter (optional)
var reference = "reference_example"; // string | Reference for the waybill that need to be considered for filter (optional)
var carrierCode = "bring"; // string | Carrier code to be included in the filter Examples: bring (optional)
var perPage = 20; // int? | For pagination. Defines how many entries are returned per page. (optional) (default to 20)
var page = 1; // int? | For pagination. Defines which page the results are fetched from. (optional) (default to 1)
try
{
// List all waybills
List<WaybillNoBase64> result = apiInstance.WaybillsGet(id, reference, carrierCode, perPage, page);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsGet: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List all waybills
ApiResponse<List<WaybillNoBase64>> response = apiInstance.WaybillsGetWithHttpInfo(id, reference, carrierCode, perPage, page);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
id | int? | ID for the waybill to be included in the filter | [optional] |
reference | string | Reference for the waybill that need to be considered for filter | [optional] |
carrierCode | string | Carrier code to be included in the filter Examples: bring | [optional] |
perPage | int? | For pagination. Defines how many entries are returned per page. | [optional] [default to 20] |
page | int? | For pagination. Defines which page the results are fetched from. | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | * X-Current-Page - Pagination - Current Page. * X-Per-Page - Pagination - Per Page. * X-Total-Count - Pagination - Total Count. * X-Total-Pages - Pagination - Total Pages Count. |
401 | Unauthorized. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Waybill WaybillsPost (CreateWaybillRequest body)
Create a waybill
Creates a new waybill and associated routing label shipments.
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class WaybillsPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new WaybillsApi(config);
var body = new CreateWaybillRequest(); // CreateWaybillRequest | Waybill Object. **Note**: loading (except date if carrier is Bring) and delivery are optional. If not all fields are given, loading will be overwritten by sender (except date) and delivery will be overwritten by receiver.
try
{
// Create a waybill
Waybill result = apiInstance.WaybillsPost(body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsPost: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create a waybill
ApiResponse<Waybill> response = apiInstance.WaybillsPostWithHttpInfo(body);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
body | CreateWaybillRequest | Waybill Object. Note: loading (except date if carrier is Bring) and delivery are optional. If not all fields are given, loading will be overwritten by sender (except date) and delivery will be overwritten by receiver. |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | - |
401 | Unauthorized. | - |
404 | Resource not found. | - |
422 | Invalid or not found parameter(s) | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Waybill WaybillsShow (int id)
Retrieve a waybill
Returns the details of a waybill. The response includes the Base64 for the waybill PDF.
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class WaybillsShowExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new WaybillsApi(config);
var id = 56; // int | ID for the waybill to be included in the filter
try
{
// Retrieve a waybill
Waybill result = apiInstance.WaybillsShow(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsShow: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Retrieve a waybill
ApiResponse<Waybill> response = apiInstance.WaybillsShowWithHttpInfo(id);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WaybillsApi.WaybillsShowWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID for the waybill to be included in the filter |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | - |
401 | Unauthorized. | - |
404 | Resource not found. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]