php - Amazon MWS ListOrders Misiing orders with different Currency/ Timezone -


i using listorders api orders amazon store https://sellercentral.amazon.co.uk

i have set timezone europe/london

but orders missing listorders api , these orders having different currency (euro) , perhaps placed different country (spain).

all orders currency pound listed api. tried changing time zone europe/madrid, still these orders not listed. can cause? please help.

thanks

i added method amazon orders api class , returned me 100 orders , gave me nexttoken access next 100 or remaining orders. need set createdafter date , marketplaceid other not required fields.

public function getorderlist()     {         $this->config['serviceurl'] = "https://mws-eu.amazonservices.com/orders/2013-09-01";         $this->serviceurl = "https://mws-eu.amazonservices.com/orders/2013-09-01";          $service = new marketplacewebserviceorders_client($this->aws_access_key, $this->aws_secret_access_key, $this->application_name, $this->application_version, $this->config);          $request = new \marketplacewebserviceorders_model_listordersrequest();         $request->setsellerid($this->seller_id);         $request->setmarketplaceid($this->marketplace_id);         $request->setcreatedafter(date('y-m-d\th:i:s\z', strtotime('-49 hours')));         //new datetime('-7 days', new datetimezone('utc'))           try         {             $response = $service->listorders($request);              echo ("service response\n");             echo ("=============================================================================\n");              $dom = new domdocument();             $dom->loadxml($response->toxml());             $dom->preservewhitespace = false;             $dom->formatoutput = true;             echo $dom->savexml();             echo("responseheadermetadata: " . $response->getresponseheadermetadata() . "\n");         }         catch(marketplacewebserviceorders_exception $ex)         {             echo("caught exception: " . $ex->getmessage() . "\n");             echo("response status code: " . $ex->getstatuscode() . "\n");             echo("error code: " . $ex->geterrorcode() . "\n");             echo("error type: " . $ex->geterrortype() . "\n");             echo("request id: " . $ex->getrequestid() . "\n");             echo("xml: " . $ex->getxml() . "\n");             echo("responseheadermetadata: " . $ex->getresponseheadermetadata() . "\n");         }     } 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -