dansmaculotte/inventoryplanner-php

PHP SDK for Inventory Planner API

dev-master 2022-05-30 07:45 UTC

This package is auto-updated.

Last update: 2024-11-20 00:48:34 UTC


README

Please refer to Inventory Planner documentation for API specifications.

Documentation

Installation

You can install the package via composer:

composer require dansmaculotte/inventoryplanner-php

Usage

Purchase Order

List purchase orders

use DansMaCulotte\InventoryPlanner\PurchaseOrder;

$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->list();

print_r($results['purchase-orders']);

Get opened purchase orders

use DansMaCulotte\InventoryPlanner\PurchaseOrder;

$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->listOpened();

print_r($results['purchase-orders']);

Get purchase order by Id

use DansMaCulotte\InventoryPlanner\PurchaseOrder;

$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->getById('aaaaaabbbbbbccccccdddddd');

print_r($results['purchase-order']);

License

The MIT License (MIT). Please see License File for more information.