REST API
The API package manages matrix headers, product-condition rows and direct customer assignments.
composer require mageb2b/pricesystem-productcustomermatrix-api:*
php bin/magento setup:upgrade
php bin/magento cache:flush
| Resource | Base endpoint |
|---|---|
| Matrix header | /V1/pricesystem/productcustomermatrix |
| Product condition | /V1/pricesystem/productcustomermatrixattribute |
| Customer assignment | /V1/pricesystem/productcustomermatrixcustomer |
Each resource supports:
GET /:idfor one record;GET /searchwith Magento search criteria;POSTto create;PUT /:idto update;DELETE /:idto remove.
Create the matrix header before its condition and customer rows. During synchronization, remove or update child rows deliberately so stale conditions do not continue matching products.
Use a Magento integration with the Product-Customer Matrix ACL resources. Calculated price operations are documented under Pricesystem REST.