composer require productflowbv/php-client
$client = new \ProductFlow\API\Client($companyId, $secret);
$productFlow = new \ProductFlow\API\ProductFlow($client);
$products = $productFlow->product($locale)->setPage(1)->list();
$product = $productFlow->product($locale)->show($sku);
$productFlow->product($locale)->upsert($sku, ['title' => 'Awesome product']);
$productFlow->product($locale)->delete($sku);
$orders = $productFlow->order()->setPage(1)->list(['open']);
$order = $productFlow->order()->show($identifier);
$productFlow->order()->accept($identifier);
$productFlow->shipment()->create($identifier, [
'identifier' => 'PACK01',
'method' => 'Shipment name',
'track_and_trace' => 'ATRACKANDTRACECODE'
]);
$productFlow->cancel()->create($identifier, []);
$productFlow->note()->create($identifier, [
'message' => 'Sample note for this order',
]);
$productFlow->offer()->setPage(1)->list();
$productFlow->offer()->show($sku);
$productFlow->offer()->upsert($sku, [
'title' => 'Awesome product',
'qty_available' => 2,
'proposition' => 'Fast delivery',
'prices' => [
'EUR' => [
'sell_price' => 19.95,
'base_price' => 24.95,
'suggested_retail_price' => 29.95,
'purchase_price' => 9.25,
'cost_price' => 4.50
]
]
]);
$productFlow->offer()->delete($sku);
$languages = $productFlow->language()->list();
$marketplaces = $productFlow->marketplace()->list();