michaelbonds / ship-station

A php wrapper for ShipStation's api.
10 stars 32 forks source link

Stores endpoint wrong URL #10

Open hippoduck opened 4 years ago

hippoduck commented 4 years ago
$stores = $shipstation->stores;
$refresh = $stores->refreshStore(12345);

results in:

https://ssapi.shipstation.com/storesrefreshstore?storeId=12345&refreshDate=resulted in a404 Not Found` response: {"Message":"No HTTP resource was found that matches the request URI

The path should be "stores/refreshstore"

I fixed this by changing line 10 on Endpoints/Stores.php

from: protected $endpoint = '/stores'; to: protected $endpoint = '/stores/';

This is how it is for the Orders endpoint, but most of the others are wrong too.

zack6849 commented 4 years ago

This is fixed in my fork, since this repo seems to be un-maintained https://github.com/zack6849/ship-station/