All URIs are relative to https://inventory.dearsystems.com/ExternalApi/v2
Method | HTTP request | Description |
---|---|---|
RefCarrierIdDelete | DELETE /ref/carrier?ID={ID} | DELETE |
RefCarrierPgLmtCarrieridDescriptionGet | GET /ref/carrier?Page={Page}&Limit={Limit}&CarrierID={CarrierID}&Description={Description} | GET |
RefCarrierPost | POST /ref/carrier | POST |
RefCarrierPut | PUT /ref/carrier | PUT |
MeAddressesIdDelete200Response RefCarrierIdDelete (string ID, string? apiAuthAccountid = null, string? apiAuthApplicationkey = null)
DELETE
using System.Collections.Generic;
using System.Diagnostics;
using CIN7.DearInventory.Api;
using CIN7.DearInventory.Client;
using CIN7.DearInventory.Model;
namespace Example
{
public class RefCarrierIdDeleteExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new CarrierApi(config);
var ID = "ID_example"; // string | ID of Carrier to Delete
var apiAuthAccountid = 704ef231-cd93-49c9-a201-26b4b5d0d35b; // string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b (optional)
var apiAuthApplicationkey = 0342a546-e0c2-0dff-f0be-6a5e17154033; // string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 (optional)
try
{
// DELETE
MeAddressesIdDelete200Response result = apiInstance.RefCarrierIdDelete(ID, apiAuthAccountid, apiAuthApplicationkey);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CarrierApi.RefCarrierIdDelete: " + 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
{
// DELETE
ApiResponse<MeAddressesIdDelete200Response> response = apiInstance.RefCarrierIdDeleteWithHttpInfo(ID, apiAuthAccountid, apiAuthApplicationkey);
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 CarrierApi.RefCarrierIdDeleteWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
ID | string | ID of Carrier to Delete | |
apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
MeAddressesIdDelete200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RefCarrierPgLmtCarrieridDescriptionGet200Response RefCarrierPgLmtCarrieridDescriptionGet (decimal page, decimal limit, string carrierID, string description, string? apiAuthAccountid = null, string? apiAuthApplicationkey = null)
GET
using System.Collections.Generic;
using System.Diagnostics;
using CIN7.DearInventory.Api;
using CIN7.DearInventory.Client;
using CIN7.DearInventory.Model;
namespace Example
{
public class RefCarrierPgLmtCarrieridDescriptionGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new CarrierApi(config);
var page = 1MD; // decimal | (default to 1M)
var limit = 100MD; // decimal | (default to 100M)
var carrierID = "carrierID_example"; // string | Only return Carrier with the specific CarrierID
var description = "description_example"; // string | Only return Carriers that start with the specific Description
var apiAuthAccountid = 704ef231-cd93-49c9-a201-26b4b5d0d35b; // string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b (optional)
var apiAuthApplicationkey = 0342a546-e0c2-0dff-f0be-6a5e17154033; // string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 (optional)
try
{
// GET
RefCarrierPgLmtCarrieridDescriptionGet200Response result = apiInstance.RefCarrierPgLmtCarrieridDescriptionGet(page, limit, carrierID, description, apiAuthAccountid, apiAuthApplicationkey);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CarrierApi.RefCarrierPgLmtCarrieridDescriptionGet: " + 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
{
// GET
ApiResponse<RefCarrierPgLmtCarrieridDescriptionGet200Response> response = apiInstance.RefCarrierPgLmtCarrieridDescriptionGetWithHttpInfo(page, limit, carrierID, description, apiAuthAccountid, apiAuthApplicationkey);
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 CarrierApi.RefCarrierPgLmtCarrieridDescriptionGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
page | decimal | [default to 1M] | |
limit | decimal | [default to 100M] | |
carrierID | string | Only return Carrier with the specific CarrierID | |
description | string | Only return Carriers that start with the specific Description | |
apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
RefCarrierPgLmtCarrieridDescriptionGet200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RefCarrierPost200Response RefCarrierPost (string? apiAuthAccountid = null, string? apiAuthApplicationkey = null, RefCarrierPostRequest? refCarrierPostRequest = null)
POST
using System.Collections.Generic;
using System.Diagnostics;
using CIN7.DearInventory.Api;
using CIN7.DearInventory.Client;
using CIN7.DearInventory.Model;
namespace Example
{
public class RefCarrierPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new CarrierApi(config);
var apiAuthAccountid = 704ef231-cd93-49c9-a201-26b4b5d0d35b; // string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b (optional)
var apiAuthApplicationkey = 0342a546-e0c2-0dff-f0be-6a5e17154033; // string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 (optional)
var refCarrierPostRequest = new RefCarrierPostRequest?(); // RefCarrierPostRequest? | (optional)
try
{
// POST
RefCarrierPost200Response result = apiInstance.RefCarrierPost(apiAuthAccountid, apiAuthApplicationkey, refCarrierPostRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CarrierApi.RefCarrierPost: " + 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
{
// POST
ApiResponse<RefCarrierPost200Response> response = apiInstance.RefCarrierPostWithHttpInfo(apiAuthAccountid, apiAuthApplicationkey, refCarrierPostRequest);
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 CarrierApi.RefCarrierPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
refCarrierPostRequest | RefCarrierPostRequest? | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RefCarrierPut200Response RefCarrierPut (string? apiAuthAccountid = null, string? apiAuthApplicationkey = null, RefCarrierPutRequest? refCarrierPutRequest = null)
PUT
using System.Collections.Generic;
using System.Diagnostics;
using CIN7.DearInventory.Api;
using CIN7.DearInventory.Client;
using CIN7.DearInventory.Model;
namespace Example
{
public class RefCarrierPutExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new CarrierApi(config);
var apiAuthAccountid = 704ef231-cd93-49c9-a201-26b4b5d0d35b; // string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b (optional)
var apiAuthApplicationkey = 0342a546-e0c2-0dff-f0be-6a5e17154033; // string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 (optional)
var refCarrierPutRequest = new RefCarrierPutRequest?(); // RefCarrierPutRequest? | (optional)
try
{
// PUT
RefCarrierPut200Response result = apiInstance.RefCarrierPut(apiAuthAccountid, apiAuthApplicationkey, refCarrierPutRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CarrierApi.RefCarrierPut: " + 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
{
// PUT
ApiResponse<RefCarrierPut200Response> response = apiInstance.RefCarrierPutWithHttpInfo(apiAuthAccountid, apiAuthApplicationkey, refCarrierPutRequest);
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 CarrierApi.RefCarrierPutWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
refCarrierPutRequest | RefCarrierPutRequest? | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]