Please refer to Inventory Planner documentation for API specifications.
You can install the package via composer:
composer require dansmaculotte/inventoryplanner-php
use DansMaCulotte\InventoryPlanner\PurchaseOrder;
$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->list();
print_r($results['purchase-orders']);
use DansMaCulotte\InventoryPlanner\PurchaseOrder;
$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->listOpened();
print_r($results['purchase-orders']);
use DansMaCulotte\InventoryPlanner\PurchaseOrder;
$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->getById('aaaaaabbbbbbccccccdddddd');
print_r($results['purchase-order']);
The MIT License (MIT). Please see License File for more information.