/** * Fetch an order * * @param $reference * * @return Order * @throws BpostCurlException * @throws BpostInvalidResponseException * @throws BpostInvalidSelectionException * @throws Exception\XmlException\BpostXmlNoReferenceFoundException */ public function fetchOrder($reference) { $url = '/orders/' . (string) $reference; $headers = array('Accept: application/vnd.bpost.shm-order-v3.3+XML'); $xml = $this->doCall($url, null, $headers); return Order::createFromXML($xml); }