michaelbonds / ship-station

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

Stores endpoints not functioning properly. #2

Open zack6849 opened 7 years ago

zack6849 commented 7 years ago

It seems that anything that sends posts to the stores endpoint where the actual receiving end isn't just "/stores" is broken.

EG.

$this->shipstation->getStoresService()->listMarketplaces()

results in

Client error: GET https://ssapi.shipstation.com/storesmarketplaces resulted in a 404 Not Found response: {"Message":"No HTTP resource was found that matches the request URI

Or

$this->shipstation->getStoresService()->refreshStores()

results in

Client error: POST https://ssapi.shipstation.com/storesrefreshstore?storeId=&refreshDate= resulted in a 404 Not Found response: {"Message":"No HTTP resource was found that matches the request URI 'http://ssapi6-internal.shipstation.com/storesrefresh

It almost looks like you're missing a / at the end of your endpoint for the stores or something, but you use the same formatting on other endpoints and they seem to work, so I'm not quite sure WHY it's leaving off that trailing / after the endpoint name

I'd attempt to fix it myself, but i couldn't figure out anything that looked like it was an obvious issue.

bryantAXS commented 6 years ago

I'm running into this as well with the shipments service

zack6849 commented 6 years ago

@bryantAXS Try using this version: https://packagist.org/packages/zack6849/ship-station#v1.2.2