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}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class InventoryItemType : InventoryTreeNode()
{
    var Type:String? = null
    var ObjectId:String? = null
    var Workspace:String? = null
    var ExternalId:String? = null
    var Created:String? = null
    var LastUpdated:String? = null
    var ItemType:String? = null
    var Desc:String? = null
    var VendorNum:String? = null
    var PurchasingUOM:String? = null
    var SalesUOM:String? = null
    var ReorderLevel:Int? = null
    var ReorderQty:Int? = null
    var DefaultUnitCost:Double? = null
    var DefaultUnitPrice:Double? = null
    var Barcode:String? = null
    var UseSerialNumbers:Boolean? = null
    var Template:String? = null
    var Data:HashMap<String,String> = HashMap<String,String>()
    var Enabled:Boolean? = null
    var ParentCategoryId:String? = null
    var IncludeInactive:Boolean? = null
}

open class InventoryTreeNode
{
    var Type:String? = null
    var DescendantCount:Int? = null
}

Kotlin InventoryItemType DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"Type":"ItemType","ObjectId":"String","Workspace":"String","ExternalId":"String","Created":"String","LastUpdated":"String","ItemType":"String","Desc":"String","VendorNum":"String","PurchasingUOM":"String","SalesUOM":"String","ReorderLevel":0,"ReorderQty":0,"DefaultUnitCost":0,"DefaultUnitPrice":0,"Barcode":"String","UseSerialNumbers":false,"Template":"String","Data":{"String":"String"},"Enabled":false,"ParentCategoryId":"String","IncludeInactive":false,"DescendantCount":0}