src/Client.php
public function getOrder($id)
    {
        try {
            $response = $this->getHttpClient()
                ->method(Http::GET)
                ->uri($this->baseUrl . 'orders/' . $id . '/')
                ->send();

            if ($response->hasErrors()) {
                throw new \Exception($response->raw_body, $response->code);
            }

            return Order::fromArray($response->body);
        } catch (\Exception $exception) {
            if ($exception->getCode() == 404) {
                throw new OrderNotFoundException('No order with that ID was found.', 404, $exception);
            }
            throw new ClientException(
                'An error occurred while getting the order: '.$exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }
    }
public function getOrder($id)
    {
        try {
            $response = $this->getHttpClient()
                ->method(Http::GET)
                ->uri($this->baseUrl . 'orders/' . $id . '/')
                ->send();

            if ($response->hasErrors()) {
                throw new \Exception($response->raw_body, $response->code);
            }

            return Order::fromArray($response->body);
        } catch (\Exception $exception) {
            if ($exception->getCode() == 404) {
                throw new OrderNotFoundException('No order with that ID was found.', 404, $exception);
            }
            throw new ClientException(
                'An error occurred while getting the order: '.$exception->getMessage(),
                $exception->getCode(),
                $exception
            );
        }
    }
Get a single order.

@param string $id The order ID.
@return Order