Trendsic Platform Service

<back to all web services

ContainersRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/records/warehouse/containers

export class ContainerItemDto
{
    public Id: string;
    public Name: string;
    public Flag: string;
    public Warn: boolean;

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

export class RecordContainerDto
{
    public ContainerId: number;
    public Barcode: string;
    public Kind: string;
    public Icon: string;
    public Name: string;
    public ZoneKey: string;
    public Slot: string;
    public Status: string;
    public CheckoutJson: string;
    public Items: ContainerItemDto[] = [];

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

export class ContainersResponse
{
    public ResponseStatus: ResponseStatus;
    public Containers: RecordContainerDto[] = [];

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

export class ContainersRequest
{

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

TypeScript ContainersRequest 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.

GET /v1/records/warehouse/containers HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Containers: 
	[
		{
			ContainerId: 0,
			Barcode: String,
			Kind: String,
			Icon: String,
			Name: String,
			ZoneKey: String,
			Slot: String,
			Status: String,
			CheckoutJson: String,
			Items: 
			[
				{
					Id: String,
					Name: String,
					Flag: String,
					Warn: False
				}
			]
		}
	]
}