GraphQL
The GraphQL package provides read queries for matrices, product conditions and customer assignments.
composer require mageb2b/pricesystem-productcustomermatrix-graph-ql:*
php bin/magento setup:upgrade
php bin/magento cache:flush
| Single record | Paginated list |
|---|---|
productCustomerMatrix(id) |
productCustomerMatrices(filter, pageSize, currentPage) |
productCustomerMatrixAttribute(id) |
productCustomerMatrixAttributes(filter, pageSize, currentPage) |
productCustomerMatrixCustomer(id) |
productCustomerMatrixCustomers(filter, pageSize, currentPage) |
All queries require an admin or integration token with MageB2B_PricesystemProductCustomerMatrix::list. Customer and guest requests are rejected.
Filters cover stored fields such as matrix ID, name, customer attribute value, website, quantity, priority, product condition and customer assignment. Paginate list queries and request only the required fields.
The ProductCustomerMatrixAttribute type does not expose the condition operator (eq, neq, in, nin). The operator is stored on the record and maintained through the Admin or REST, but it is not readable through GraphQL.
For calculated storefront prices, use Pricesystem GraphQL.