Field Squared API Services

<back to all web services

InventoryItemType

The following routes are available for this service:
GET,PUT,POST/{Workspace}/InventoryItemType
GET,PUT,POST/{Workspace}/InventoryItemType/{ObjectId}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Inventory;

namespace Field2Office.API.Model.Inventory
{
    public partial class InventoryItemType
        : InventoryTreeNode
    {
        public InventoryItemType()
        {
            Data = new Dictionary<string, string>{};
        }

        public virtual string Type { get; set; }
        public virtual string ObjectId { get; set; }
        public virtual string Workspace { get; set; }
        public virtual string ExternalId { get; set; }
        public virtual string Created { get; set; }
        public virtual string LastUpdated { get; set; }
        public virtual string ItemType { get; set; }
        public virtual string Desc { get; set; }
        public virtual string VendorNum { get; set; }
        public virtual string PurchasingUOM { get; set; }
        public virtual string SalesUOM { get; set; }
        public virtual int? ReorderLevel { get; set; }
        public virtual int? ReorderQty { get; set; }
        public virtual double? DefaultUnitCost { get; set; }
        public virtual double? DefaultUnitPrice { get; set; }
        public virtual string Barcode { get; set; }
        public virtual bool? UseSerialNumbers { get; set; }
        public virtual string Template { get; set; }
        public virtual Dictionary<string, string> Data { get; set; }
        public virtual bool? Enabled { get; set; }
        public virtual string ParentCategoryId { get; set; }
        public virtual bool IncludeInactive { get; set; }
    }

    public partial class InventoryTreeNode
    {
        public virtual string Type { get; set; }
        public virtual int DescendantCount { get; set; }
    }

}

C# InventoryItemType DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Workspace}/InventoryItemType HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InventoryItemType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.Inventory">
  <DescendantCount>0</DescendantCount>
  <Barcode>String</Barcode>
  <Created>String</Created>
  <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Data>
  <DefaultUnitCost>0</DefaultUnitCost>
  <DefaultUnitPrice>0</DefaultUnitPrice>
  <Desc>String</Desc>
  <Enabled>false</Enabled>
  <ExternalId>String</ExternalId>
  <IncludeInactive>false</IncludeInactive>
  <ItemType>String</ItemType>
  <LastUpdated>String</LastUpdated>
  <ObjectId>String</ObjectId>
  <ParentCategoryId>String</ParentCategoryId>
  <PurchasingUOM>String</PurchasingUOM>
  <ReorderLevel>0</ReorderLevel>
  <ReorderQty>0</ReorderQty>
  <SalesUOM>String</SalesUOM>
  <Template>String</Template>
  <UseSerialNumbers>false</UseSerialNumbers>
  <VendorNum>String</VendorNum>
  <Workspace>String</Workspace>
</InventoryItemType>