From 02095555c2bde130deefef714241c22d6e7a4235 Mon Sep 17 00:00:00 2001 From: Sander de Jonge Date: Wed, 14 Jan 2026 09:49:29 +0100 Subject: [PATCH 1/2] Add basic Receipt endpoints --- src/Client.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index bb2236c..4d910e1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -769,10 +769,26 @@ public function getPurchaseorderComments($idpurchaseorder) return $this->sendRequest('/purchaseorders/' . $idpurchaseorder . '/comments'); } - /** - * New receipt endpoints have not added yet, so added it below purchase orders for now - */ + public function getReceipt($idreceipt) + { + return $this->sendRequest('/receipts/' . $idreceipt); + } + + public function getReceipts($filters = []) + { + return $this->sendRequest('/receipts', null, null, $filters); + } + public function getAllReceipts($filters = []) + { + return $this->getAllResults('receipt', $filters); + } + + public function deleteReceipt($idreceipt) + { + return $this->sendRequest('/receipts/' . $idreceipt, [], self::METHOD_DELETE); + } + public function addReceiptComment($idreceipt, $params) { return $this->sendRequest('/receipts/' . $idreceipt . '/comments', $params, self::METHOD_POST); From d8282996e0213c577636c6752380a22cb4c37bce Mon Sep 17 00:00:00 2001 From: Sander de Jonge Date: Thu, 22 Jan 2026 12:09:49 +0100 Subject: [PATCH 2/2] Update Client.php --- src/Client.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Client.php b/src/Client.php index 4d910e1..e09cc66 100644 --- a/src/Client.php +++ b/src/Client.php @@ -989,6 +989,11 @@ public function getBackorder($idbackorder) return $this->sendRequest('/backorders/' . $idbackorder); } + public function getAllBackorders($filters = []) + { + return $this->getAllResults('backorder', $filters); + } + public function processBackorders() { return $this->sendRequest('/backorders/process', null, self::METHOD_POST);