Orders requesting is made to obtain informations about an order but shouldn't be used to identify new orders.
To know more about new orders request, see the documentation about orders queue.
For more information, access the official documentation.
Orders searching can be necessary to update order status in your platform, for example.
This method allow to request only an order a time.
// ...
/** @var \SkyHub\Api\Handler\Request\Sales\OrderHandler $requestHandler */
$requestHandler = $api->order();
$orderId = 'Marketplace-000000001';
/** @var SkyHub\Api\Handler\Response\HandlerInterface $response */
$response = $requestHandler->order($orderId);
// ...
For more information, access the official_documentation.
The following method returns a list with all your orders in SkyHub.
// ...
/** @var \SkyHub\Api\Handler\Request\Sales\OrderHandler $requestHandler */
$requestHandler = $api->order();
/** @var SkyHub\Api\Handler\Response\HandlerInterface $response */
$response = $requestHandler->orders();
// ...
For more information, access the official_documentation.