From 52fc0ba1c5c8803ef85ff909f4715586a64ad750 Mon Sep 17 00:00:00 2001 From: Gerben Peters Date: Tue, 29 Aug 2017 18:24:29 +0200 Subject: [PATCH] Update updateCustomerAddress method to send a PUT request Calling the updateCustomerAddress method resulted in a 404. Changing the method to PUT fixes this. --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 28f555c..f9d6b93 100644 --- a/src/Client.php +++ b/src/Client.php @@ -98,7 +98,7 @@ public function addCustomerAddress($idcustomer, $params) public function updateCustomerAddress($idcustomer, $idaddress, $params) { - return $this->sendRequest('/customers/' . $idcustomer . '/addresses/' . $idaddress, $params, self::METHOD_POST); + return $this->sendRequest('/customers/' . $idcustomer . '/addresses/' . $idaddress, $params, self::METHOD_PUT); } public function deleteCustomerAddress($idcustomer, $idaddress)