neha Posted March 22, 2018 Share Posted March 22, 2018 Hello Support, I have created prestashop and able to view front-end and back-end but when I am calling api to get order of pretashop then I am getting following error: This call to PrestaShop Web Services returned an unexpected HTTP status of:503. My shop url is: http://34.243.135.96/presta/ I am using code to call api: // TODO: Implement fetchOrders() method. try { // TODO: Implement fetchOrders() method. $webService = new PrestaShopWebservice( $this->webshop->shop_url, $this->webshop->api_username, false ); $opt[ 'resource' ] = 'orders'; $xml = $webService->get($opt); $resources = $xml->children()->children(); //fetched all order id's } catch (Exception $e) { print_r($e->getMessage()); exit; } Please provide any solution, if any one knows. Link to comment Share on other sites More sharing options...
gajofe Posted July 18, 2019 Share Posted July 18, 2019 $opt['resource'] ='orders'; $opt['display'] ='full' u need add.. that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now