Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.49 KB

CONSULT.md

File metadata and controls

49 lines (30 loc) · 1.49 KB

Requesting Orders

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.

Requesting an Order

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.

Obtaining a List of Orders

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.

Back

Continue: Working With Orders Queue