MGCEarmarkBuildPriceService.buildPriceWire
The JSON service operation buildPrice: answers the call and counts it.
- HTTP method:
POST - Route:
/api/services/MGCEarmarkServiceGroup/MGCEarmarkBuildPriceService/buildPrice - Service class:
MGCEarmarkBuildPriceService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCEarmarkBuildPriceWireRequest | No | The wire request. |
Returns
MGCEarmarkBuildPriceWireResult
The wire result: the build, or the verdicts that prevented one.
Security
- Requires privilege
MGCEarmarkBuildPricePriv
Data contracts
The data contracts this operation takes and returns, with their members. A member whose type is another data contract links to that contract below.
MGCEarmarkBuildPriceWireRequest
The JSON request of the Conduit operation buildPrice.
| Member | Type | List | Description |
|---|---|---|---|
Company | str | No | Gets or sets the legal entity the line belongs to; blank means the session company. |
LineTable | str | No | Gets or sets the line table: SalesLine or PurchLine. |
InventTransId | str | No | Gets or sets the line's lot id, its natural key. |
BasePriceSupplied | boolean | No | Gets or sets whether BasePrice is supplied; false keeps the line's own basis. |
BasePrice | real | No | Gets or sets the base price per price unit, in the line's currency. |
OverBasisSupplied | boolean | No | Gets or sets whether OverBasis is supplied; false builds with an over-basis of zero. |
OverBasis | real | No | Gets or sets the over-basis per price unit, in the line's currency. |
AcceptAllEligible | boolean | No | Gets or sets whether every eligible targeting deal is included. |
IdempotencyKey | str | No | Gets or sets the caller's idempotency key; required on this operation. |
MGCEarmarkBuildPriceWireResult
The JSON result of the Conduit operation buildPrice.
| Member | Type | List | Description |
|---|---|---|---|
Built | boolean | No | Gets or sets whether a current build exists for the line after this call. |
AlreadyBuilt | boolean | No | Gets or sets whether this call was an idempotent repeat that wrote nothing. |
LinePriceRecId | int64 | No | Gets or sets the RecId of the line's price build, 0 when there is none. |
BuildNumber | int | No | Gets or sets the build number: monotonic per line, never reused. |
UnitPrice | real | No | Gets or sets the composed unit price per price unit, in the line's currency. |
DealMoney | real | No | Gets or sets the grossed-up deal money per price unit: the part of UnitPrice that is deal money. |
Allowance | real | No | Gets or sets the off-invoice allowance per price unit. |
InstanceCount | int | No | Gets or sets how many accrual instances the build froze. |
Verdicts | List of MGCEarmarkWireVerdict | Yes | Gets or sets the verdicts, in the order they were stated. |
MGCEarmarkWireVerdict
One verdict as the Conduit JSON services carry it: Id, Type and Message.
| Member | Type | List | Description |
|---|---|---|---|
Id | str | No | Gets or sets the verdict's label id: the stable key a caller branches on. |
Type | str | No | Gets or sets the disposition: Blocking or Informational. |
Message | str | No | Gets or sets the rendered sentence. |