B2B feature. Learn more
PurchaseOrderApprovalRuleConditionInterface attributes and implementations
PurchaseOrderApprovalRuleConditionInterface
provides details about the approval rule conditions. It has the following implementations:
Example usage
The following example returns information about the purchase order approval rule condition.
Request:
Copied to your clipboard{customer {purchase_order_approval_rule(uid: "Mg==") {condition {attributeoperator... on PurchaseOrderApprovalRuleConditionAmount {amount {valuecurrency}}... on PurchaseOrderApprovalRuleConditionQuantity {quantity}}}}}
Response:
Copied to your clipboard{"data": {"customer": {"purchase_order_approval_rule": {"condition": {"attribute": "GRAND_TOTAL","operator": "MORE_THAN","amount": {"value": 5,"currency": "USD"}}}}}}