Field Squared API Services

<back to all web services

InventoryTransfer

The following routes are available for this service:
GET,PUT,POST,DELETE/{Workspace}/InventoryTransfer
GET,PUT,POST,DELETE/{Workspace}/InventoryTransfer/{ObjectId}

export class InventoryTransaction
{
    public ItemTypeId: string;
    public Qty: number;
    public Items: string[];
    public SerialNumbers: string[];
    public UseSerialNumbers: boolean;

    public constructor(init?: Partial<InventoryTransaction>) { (Object as any).assign(this, init); }
}

export class InventoryTransfer
{
    public ObjectId: string;
    public Workspace: string;
    public ExternalId: string;
    public Created: string;
    public LastUpdated: string;
    public Description: string;
    public FromAsset: string;
    public FromTask: string;
    public ToAsset: string;
    public ToTask: string;
    public SubmittedBy: string;
    public ApprovedBy: string;
    public Approved?: boolean;
    public Transactions: InventoryTransaction[];

    public constructor(init?: Partial<InventoryTransfer>) { (Object as any).assign(this, init); }
}

TypeScript InventoryTransfer 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}/InventoryTransfer HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

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