priceDefinitionByExternalRef
Returns price definitions of type BASE and DISCOUNT by external reference
This page contains
Arguments
ref String! | Unique identifier of the reference |
type ExternalReferenceType! PREVIEW | Type of reference for price definition |
Return Fields
[PriceDefinition!] PREVIEW |
Interactive example
This is an example query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
xxxxxxxxxx
query priceDefinitionByExternalRef($ref: String!, $type: ExternalReferenceType!) {
priceDefinitionByExternalRef(ref: $ref, type: $type) {
id
parentPriceDefinitionId
productId
}
}
xxxxxxxxxx
{
"ref": "YOUR_REF",
"type": "SHOPPING_CART"
}