Jump to content

Get order of prestashop using api call


neha

Recommended Posts

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

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...