From 89a8d337c014d72f69d2fcc2eda832960161fcb1 Mon Sep 17 00:00:00 2001 From: Justintime50 Date: Wed, 6 May 2020 10:02:15 -0600 Subject: [PATCH] Swap GET to POST on Refund method --- easypost/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easypost/__init__.py b/easypost/__init__.py index 7c3b8e5c..c215121f 100644 --- a/easypost/__init__.py +++ b/easypost/__init__.py @@ -734,7 +734,7 @@ def refund(self, **params): requestor = Requestor(self._api_key) url = "%s/%s" % (self.instance_url(), "refund") - response, api_key = requestor.request('get', url, params) + response, api_key = requestor.request('post', url, params) self.refresh_from(response, api_key) return self