Magidoc

setLinePrice
Mutation

Apply a custom price to an existing selection line, overriding Centra's pricing logic for the units covered by customPrice.quantity. If customPrice.quantity is less than the line's quantity, the line is split.

Required operating mode : SHARED_SECRET Required permissions: must have price injections allowed in the Storefront API plugin.

Arguments

#

lineId

Non-null

customPrice

Non-null

Response

#

Returns SelectionMutationPayload !.

Example

#