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 /:id for one record;
  • GET /search with Magento search criteria;
  • POST to create;
  • PUT /:id to update;
  • DELETE /:id to 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.