Mds.Api

<back to all web services

DiagramSingle

Requires Authentication
Requires any of the roles:dealer-api-mds, dealer-api-nop
The following routes are available for this service:
All Verbs/diagram-single/{DiagramId}

export class Coordinate
{
    public x1: number;
    public y1: number;
    public x2: number;
    public y2: number;

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

export class MyobStockItemMapping
{
    public StockItemId: number;
    public Id: number;
    public Number: number;
    public InventoryId: string;
    public GroupId: number;
    public Name: string;
    public RetailPrice?: number;
    public DealerPrice?: number;
    public TradePrice?: number;
    public RetailPriceNz?: number;
    public TradePriceNz?: number;
    public DealerPriceNz?: number;
    public SalesUom: string;
    public StockingIndicator: string;
    public Color: string;
    public ColorCode: string;
    public NoteText: string;
    public Coordinates: Coordinate[];
    public PartQuantity: number;
    public AvaiableQuantity: number;
    public ShowAvailabilityPopUp: boolean;
    public IsFd: boolean;

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

export class DiagramSingleResponse
{
    public ResponseStatus: ResponseStatus;
    public Parts: MyobStockItemMapping[];

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

export class DiagramSingle
{
    public DiagramId: number;

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

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

POST /diagram-single/{DiagramId} HTTP/1.1 
Host: mds-api.mojomotorcycles.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	DiagramId: 0
}
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
		}
	},
	Parts: 
	[
		{
			StockItemId: 0,
			Id: 0,
			Number: 0,
			InventoryId: String,
			GroupId: 0,
			Name: String,
			RetailPrice: 0,
			DealerPrice: 0,
			TradePrice: 0,
			RetailPriceNz: 0,
			TradePriceNz: 0,
			DealerPriceNz: 0,
			SalesUom: String,
			StockingIndicator: String,
			Color: String,
			ColorCode: String,
			NoteText: String,
			Coordinates: 
			[
				{
					x1: 0,
					y1: 0,
					x2: 0,
					y2: 0
				}
			],
			PartQuantity: 0,
			AvaiableQuantity: 0,
			ShowAvailabilityPopUp: False,
			IsFd: False
		}
	]
}