Field Squared API Services

<back to all web services

InventoryTransferRequest

The following routes are available for this service:
PUT/{Workspace}/v2/InventoryTransfer
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.V2.Model.Inventory;
using Field2Office.DomainObjects.Mappers.Model.Inventory;

namespace Field2Office.API.V2.Model.Inventory
{
    public partial class InventoryTransferRequest
    {
        public InventoryTransferRequest()
        {
            Transactions = new List<InventoryTransaction>{};
        }

        public virtual string ObjectId { get; set; }
        public virtual string Workspace { get; set; }
        public virtual string Created { get; set; }
        public virtual string FromAsset { get; set; }
        public virtual string FromTask { get; set; }
        public virtual string ToAsset { get; set; }
        public virtual string ToTask { get; set; }
        public virtual string SubmittedBy { get; set; }
        public virtual string ApprovedBy { get; set; }
        public virtual bool? Approved { get; set; }
        public virtual string Description { get; set; }
        public virtual List<InventoryTransaction> Transactions { get; set; }
    }

}

namespace Field2Office.DomainObjects.Mappers.Model.Inventory
{
    public partial class InventoryTransaction
    {
        public InventoryTransaction()
        {
            Items = new List<string>{};
            SerialNumbers = new List<string>{};
        }

        public virtual string ItemTypeId { get; set; }
        public virtual int Qty { get; set; }
        public virtual List<string> Items { get; set; }
        public virtual List<string> SerialNumbers { get; set; }
        public virtual bool UseSerialNumbers { get; set; }
    }

}

C# InventoryTransferRequest DTOs

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

HTTP + JSV

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

PUT /{Workspace}/v2/InventoryTransfer HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ObjectId: String,
	Workspace: String,
	Created: String,
	FromAsset: String,
	FromTask: String,
	ToAsset: String,
	ToTask: String,
	SubmittedBy: String,
	ApprovedBy: String,
	Approved: False,
	Description: String,
	Transactions: 
	[
		{
			ItemTypeId: String,
			Qty: 0,
			Items: 
			[
				String
			],
			SerialNumbers: 
			[
				String
			],
			UseSerialNumbers: False
		}
	]
}