Check Order Compliance
Definition
Service Location: https://gateway.pharmx.com.au/Gateway3/OrderManagement.asmx
Method Name: CheckOrderCompliance
Evaluates an order’s compliance against validation rules configured for the supplier account.
Parameters
userDetail UserDetail
User credentials to authenticate the request.
The order that will be evaluated for compliance.
Returns
CheckOrderComplianceResult ActionResult (with an array of OrderComplianceResponse)
Remarks
A ResultCode of 0 within the actionResult indicates no compliance failures.
A ResultCode of 99 indicates a compliance failure. The value of the Message property will provide a summary of compliance failures, while the OrderComplianceStatusReason within each OrderComplianceResponseLine will provide line-specific error messaging. For example, an order failing a compliance check due to minimum order value criteria not being met, the Message will read something like "Order value is $n.nn which is below the minimum order value $m.mm. This may be due to the order containing invalid line/s", where "$n.nn" is the minimum order value associated to the account. Where a line-specific compliance error occurs due to a line not meeting the minimum order quantity criteria, the he relevant OrderComplianceResponseLines will have OrderComplianceStatus of 1 and the OrderComplianceStatusReason would read "MOQ validation failure - item must be ordered in multiples of n.”, where n is the valid MOQ for that product
Individual OrderComplianceResponseLines can be matched back the original line in the POS order via the value of OrderLineUID.