| Requires any of the roles: | dealer-api-mds, dealer-api-nop |
| All Verbs | /diagram-single/{DiagramId} |
|---|
import Foundation
import ServiceStack
public class DiagramSingle : Codable
{
public var diagramId:Int
required public init(){}
}
public class DiagramSingleResponse : Codable
{
public var responseStatus:ResponseStatus
public var parts:[MyobStockItemMapping] = []
required public init(){}
}
public class MyobStockItemMapping : Codable
{
public var stockItemId:Int
public var id:Int
public var number:Int
public var inventoryId:String
public var groupId:Int
public var name:String
public var retailPrice:Double?
public var dealerPrice:Double?
public var tradePrice:Double?
public var retailPriceNz:Double?
public var tradePriceNz:Double?
public var dealerPriceNz:Double?
public var salesUom:String
public var stockingIndicator:String
public var color:String
public var colorCode:String
public var noteText:String
public var coordinates:[Coordinate] = []
public var partQuantity:Int
public var avaiableQuantity:Int
public var showAvailabilityPopUp:Bool
public var isFd:Bool
required public init(){}
}
public class Coordinate : Codable
{
public var x1:Int
public var y1:Int
public var x2:Int
public var y2:Int
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"DiagramId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}]}