Edit in GitHubLog an issue
Adobe Commerce featureExclusive feature only in Adobe Commerce (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 {
attribute
operator
... on PurchaseOrderApprovalRuleConditionAmount {
amount {
value
currency
}
}
... 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"
}
}
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.