diff --git a/lib/RetailCrm/Methods/V5/Customers.php b/lib/RetailCrm/Methods/V5/Customers.php index 9489ceb..e4fb992 100644 --- a/lib/RetailCrm/Methods/V5/Customers.php +++ b/lib/RetailCrm/Methods/V5/Customers.php @@ -174,7 +174,7 @@ trait Customers /* @noinspection PhpUndefinedMethodInspection */ return $this->client->makeRequest( - sprintf('/customer/%s/subscriptions', $customerId), + sprintf('/customers/%s/subscriptions', $customerId), 'POST', $this->fillSite( $site, diff --git a/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php b/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php index 89bbee0..2cb2e20 100644 --- a/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php +++ b/tests/RetailCrm/Tests/Methods/Version5/ApiClientCustomersTest.php @@ -11,7 +11,6 @@ namespace RetailCrm\Tests\Methods\Version5; -use RetailCrm\Http\Client; use RetailCrm\Response\ApiResponse; use RetailCrm\Test\TestCase;