Skip to main content

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​

NameTypeOptionalDescription
_requestMGCEarmarkBuildPriceWireRequestNoThe 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.

MemberTypeListDescription
CompanystrNoGets or sets the legal entity the line belongs to; blank means the session company.
LineTablestrNoGets or sets the line table: SalesLine or PurchLine.
InventTransIdstrNoGets or sets the line's lot id, its natural key.
BasePriceSuppliedbooleanNoGets or sets whether BasePrice is supplied; false keeps the line's own basis.
BasePricerealNoGets or sets the base price per price unit, in the line's currency.
OverBasisSuppliedbooleanNoGets or sets whether OverBasis is supplied; false builds with an over-basis of zero.
OverBasisrealNoGets or sets the over-basis per price unit, in the line's currency.
AcceptAllEligiblebooleanNoGets or sets whether every eligible targeting deal is included.
IdempotencyKeystrNoGets or sets the caller's idempotency key; required on this operation.

MGCEarmarkBuildPriceWireResult​

The JSON result of the Conduit operation buildPrice.

MemberTypeListDescription
BuiltbooleanNoGets or sets whether a current build exists for the line after this call.
AlreadyBuiltbooleanNoGets or sets whether this call was an idempotent repeat that wrote nothing.
LinePriceRecIdint64NoGets or sets the RecId of the line's price build, 0 when there is none.
BuildNumberintNoGets or sets the build number: monotonic per line, never reused.
UnitPricerealNoGets or sets the composed unit price per price unit, in the line's currency.
DealMoneyrealNoGets or sets the grossed-up deal money per price unit: the part of UnitPrice that is deal money.
AllowancerealNoGets or sets the off-invoice allowance per price unit.
InstanceCountintNoGets or sets how many accrual instances the build froze.
VerdictsList of MGCEarmarkWireVerdictYesGets or sets the verdicts, in the order they were stated.

MGCEarmarkWireVerdict​

One verdict as the Conduit JSON services carry it: Id, Type and Message.

MemberTypeListDescription
IdstrNoGets or sets the verdict's label id: the stable key a caller branches on.
TypestrNoGets or sets the disposition: Blocking or Informational.
MessagestrNoGets or sets the rendered sentence.