All URIs are relative to https://inventory.dearsystems.com/ExternalApi/v2
| Method | HTTP request | Description |
|---|---|---|
| InventorywriteoffIdVoidDelete | DELETE /inventoryWriteOff?ID={ID}&Void={Void} | Delete |
| InventorywriteoffPost | POST /inventoryWriteOff | POST |
| InventorywriteoffPut | PUT /inventoryWriteOff | PUT |
| InventorywriteoffTaskidGet | GET /inventoryWriteOff?TaskID={TaskID} | GET |
| InventorywriteofflistPgLmtStsSrchGet | GET /inventoryWriteOffList?Page={Page}&Limit={Limit}&Status={Status}&Search={Search} | GET |
InventorywriteoffIdVoidDelete200Response InventorywriteoffIdVoidDelete (string ID, bool varVoid, 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 InventorywriteoffIdVoidDeleteExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new InventoryWriteOffApi(config);
var ID = "ID_example"; // string | ID of Inventory Write-Off to Void or Undo
var varVoid = false; // bool | (default to false)
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
InventorywriteoffIdVoidDelete200Response result = apiInstance.InventorywriteoffIdVoidDelete(ID, varVoid, apiAuthAccountid, apiAuthApplicationkey);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InventoryWriteOffApi.InventorywriteoffIdVoidDelete: " + 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<InventorywriteoffIdVoidDelete200Response> response = apiInstance.InventorywriteoffIdVoidDeleteWithHttpInfo(ID, varVoid, 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 InventoryWriteOffApi.InventorywriteoffIdVoidDeleteWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| ID | string | ID of Inventory Write-Off to Void or Undo | |
| varVoid | bool | [default to false] | |
| apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
| apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
InventorywriteoffIdVoidDelete200Response
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]
InventorywriteoffPost200Response InventorywriteoffPost (string? apiAuthAccountid = null, string? apiAuthApplicationkey = null, InventorywriteoffPostRequest? inventorywriteoffPostRequest = 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 InventorywriteoffPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new InventoryWriteOffApi(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 inventorywriteoffPostRequest = new InventorywriteoffPostRequest?(); // InventorywriteoffPostRequest? | (optional)
try
{
// POST
InventorywriteoffPost200Response result = apiInstance.InventorywriteoffPost(apiAuthAccountid, apiAuthApplicationkey, inventorywriteoffPostRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InventoryWriteOffApi.InventorywriteoffPost: " + 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<InventorywriteoffPost200Response> response = apiInstance.InventorywriteoffPostWithHttpInfo(apiAuthAccountid, apiAuthApplicationkey, inventorywriteoffPostRequest);
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 InventoryWriteOffApi.InventorywriteoffPostWithHttpInfo: " + 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] |
| inventorywriteoffPostRequest | InventorywriteoffPostRequest? | [optional] |
InventorywriteoffPost200Response
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]
InventorywriteoffPut200Response InventorywriteoffPut (string? apiAuthAccountid = null, string? apiAuthApplicationkey = null, InventorywriteoffPutRequest? inventorywriteoffPutRequest = 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 InventorywriteoffPutExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new InventoryWriteOffApi(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 inventorywriteoffPutRequest = new InventorywriteoffPutRequest?(); // InventorywriteoffPutRequest? | (optional)
try
{
// PUT
InventorywriteoffPut200Response result = apiInstance.InventorywriteoffPut(apiAuthAccountid, apiAuthApplicationkey, inventorywriteoffPutRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InventoryWriteOffApi.InventorywriteoffPut: " + 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<InventorywriteoffPut200Response> response = apiInstance.InventorywriteoffPutWithHttpInfo(apiAuthAccountid, apiAuthApplicationkey, inventorywriteoffPutRequest);
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 InventoryWriteOffApi.InventorywriteoffPutWithHttpInfo: " + 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] |
| inventorywriteoffPutRequest | InventorywriteoffPutRequest? | [optional] |
InventorywriteoffPut200Response
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]
InventorywriteoffPost200Response InventorywriteoffTaskidGet (string taskID, 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 InventorywriteoffTaskidGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new InventoryWriteOffApi(config);
var taskID = "taskID_example"; // string | Returns detailed info of a particular Inventory Write-Off
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
InventorywriteoffPost200Response result = apiInstance.InventorywriteoffTaskidGet(taskID, apiAuthAccountid, apiAuthApplicationkey);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InventoryWriteOffApi.InventorywriteoffTaskidGet: " + 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<InventorywriteoffPost200Response> response = apiInstance.InventorywriteoffTaskidGetWithHttpInfo(taskID, 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 InventoryWriteOffApi.InventorywriteoffTaskidGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| taskID | string | Returns detailed info of a particular Inventory Write-Off | |
| apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
| apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
InventorywriteoffPost200Response
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]
InventorywriteofflistPgLmtStsSrchGet200Response InventorywriteofflistPgLmtStsSrchGet (decimal page, decimal limit, string status, string search, 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 InventorywriteofflistPgLmtStsSrchGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://inventory.dearsystems.com/ExternalApi/v2";
var apiInstance = new InventoryWriteOffApi(config);
var page = 8.14D; // decimal | Page (Default: 1)
var limit = 8.14D; // decimal | Specifies the page size for pagination. Default page size is 100. (Default: 100)
var status = "status_example"; // string | Only return Inventory Write-Off with specified status (Default: null)
var search = "search_example"; // string | Only return Inventory Write-Off with search value contained in one of these fields: InventoryWriteOffNumber, Location, Status, Notes (Default: null)
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
InventorywriteofflistPgLmtStsSrchGet200Response result = apiInstance.InventorywriteofflistPgLmtStsSrchGet(page, limit, status, search, apiAuthAccountid, apiAuthApplicationkey);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InventoryWriteOffApi.InventorywriteofflistPgLmtStsSrchGet: " + 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<InventorywriteofflistPgLmtStsSrchGet200Response> response = apiInstance.InventorywriteofflistPgLmtStsSrchGetWithHttpInfo(page, limit, status, search, 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 InventoryWriteOffApi.InventorywriteofflistPgLmtStsSrchGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| page | decimal | Page (Default: 1) | |
| limit | decimal | Specifies the page size for pagination. Default page size is 100. (Default: 100) | |
| status | string | Only return Inventory Write-Off with specified status (Default: null) | |
| search | string | Only return Inventory Write-Off with search value contained in one of these fields: InventoryWriteOffNumber, Location, Status, Notes (Default: null) | |
| apiAuthAccountid | string? | e.g. 704ef231-cd93-49c9-a201-26b4b5d0d35b | [optional] |
| apiAuthApplicationkey | string? | e.g. 0342a546-e0c2-0dff-f0be-6a5e17154033 | [optional] |
InventorywriteofflistPgLmtStsSrchGet200Response
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]