AutoCount WebAPI

<back to all web services

HowerCreateSalesOrderContract

The following routes are available for this service:
POST/HowerAPI/CreateSalesOrder
HowerCreateSalesOrderContract Parameters:
NameParameterData TypeRequiredDescription
DocNobodystringNo
CustomerTrackingNobodystringNo
DebtorCodebodystringNo
BranchCodebodystringNo
JobDescriptionbodystringNo
JobRemarkbodystringNo
PreferredDatebodyDateTime?No
PreferredTimebodyDateTime?No
SalesAgentbodystringNo
DetailsbodyCreateOrderDetail[]No
ContractBase Parameters:
NameParameterData TypeRequiredDescription
TokenformstringNo
CreateOrderDetail Parameters:
NameParameterData TypeRequiredDescription
ItemCodeformstringNo
DescriptionformstringNo
Desc2formstringNo
FurtherDescriptionformstringNo
UOMformstringNo
QtyformdecimalNo
UnitPriceformdecimalNo

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 /HowerAPI/CreateSalesOrder HTTP/1.1 
Host: hoxt.hower.com.my 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	DocNo: String,
	CustomerTrackingNo: String,
	DebtorCode: String,
	BranchCode: String,
	JobDescription: String,
	JobRemark: String,
	PreferredDate: 0001-01-01,
	PreferredTime: 0001-01-01,
	SalesAgent: String,
	Details: 
	[
		{
			ItemCode: String,
			Description: String,
			Desc2: String,
			FurtherDescription: String,
			UOM: String,
			Qty: 0,
			UnitPrice: 0
		}
	],
	Token: String
}