developers program  

Welcome, Guest Help
Login Login | Register
 

eBay Developer Forums > Technical Questions: eBay Trading API, Feedback API & Large Merchant Services
RSS | NNTP Reader | FAQ | Usage Policies | Advanced Search | Print

in current forum  
in all Developer Forums

Replies: 6 - Pages: 1     Last Post: Nov 4, 2009 5:49 AM by: nabazbook »



Posts: 6
Member Since: 11/2/09



Beginner problem about GetOrders Request
Posted: Nov 2, 2009 5:10 AM
  Click to reply to this thread Reply

Hello,
I'm trying to retrieve all the orders from an user.
I retrieved well the authtoken and then I call this function :


<?php
include ("ebay.inc.php5");//Config ebay

$EBAY = array(
'trade' => 'https://api.ebay.com/ws/api.dll',
'signin' => 'https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&',

// you get these values from your developer account
'devid' => $devID,
'appid' => $appid,
'certid' => $certID,
'RuName' => $RuName
);

global $EBAY;

if (($response = @file_get_contents($EBAY['trade'], 'r', stream_context_create(array('http' => array(
'method' => 'POST',

'header' =>
"Content-Type: text/xml; charset=utf-8\r\n"
. "X-EBAY-API-SITEID: 0\r\n"
. "X-EBAY-API-COMPATIBILITY-LEVEL: 635\r\n"
. "X-EBAY-API-CALL-NAME: GetOrdersRequest\r\n"

// these headers are only required for GetSessionID and FetchToken
. "X-EBAY-API-DEV-NAME: {$EBAY['devid']}\r\n"
. "X-EBAY-API-APP-NAME: {$EBAY['appid']}\r\n"
. "X-EBAY-API-CERT-NAME: {$EBAY['certid']}\r\n",

'content' => $request =
"<?xml version='1.0' encoding='utf-8'?>\n"
. "<GetOrdersRequest xmlns='urn:ebay:apis:eBLBaseComponents'>\n"
."<RequesterCredentials><eBayAuthToken>AgAAAA...dO</eBayAuthToken>\n"
."</RequesterCredentials>\n"
."<CreateTimeFrom>2009-01-20T20:34:44.000Z</CreateTimeFrom>\n"
."<CreateTimeTo>2009-11-19T20:34:44.000Z</CreateTimeTo>\n"
."<OrderRole>Seller</OrderRole>\n"
."<OrderStatus>Active</OrderStatus>\n"
."</GetOrdersRequest>\n"

))))) === FALSE)
{
exit('No response from eBay server!');
}

echo $response;

?>


returns me this:

<{GetOrdersRequest}Response xmlns="urn:ebay:apis:eBLBaseComponents">2009-11-02 13:08:14FailureUnsupported API call.The API call "{GetOrdersRequest}" is invalid or not supported in this release.2ErrorRequestError63510202911

Who can help me ?

Thanks for reading,

N




Posts: 6
Member Since: 11/2/09



Re: Beginner problem about GetOrders Request
Posted: Nov 2, 2009 7:40 AM
  Click to reply to this thread Reply

For info, I've exactly the same error message when I use the call GetAccountRequest.


<?xml version="1.0" encoding="UTF-8" ?>
- <GetAccountRequestResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2009-11-02 15:41:15</Timestamp>
<Ack>Failure</Ack>
- <Errors>
<ShortMessage>Unsupported API call.</ShortMessage>
<LongMessage>The API call "GetAccountRequest" is invalid or not supported in this release.</LongMessage>
<ErrorCode>2</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>635</Version>
<Build>10202911</Build>
</GetAccountRequestResponse>




Posts: 503
Member Since: 5/12/09



Re: Beginner problem about GetOrders Request
Posted: Nov 3, 2009 4:36 AM
  Click to reply to this thread Reply

Hi nabazbook,

Welcome to eBay Developer Forums.

The call name is GetOrders not GetOrdersRequest.
Replace this line of code

. "X-EBAY-API-CALL-NAME: GetOrdersRequest\r\n"


with

. "X-EBAY-API-CALL-NAME: GetOrders\r\n"


Hope this helps. Feel free to come back with questions if you have any.

Have a nice day.

Best Regards,
Devanathan Sampath
eBay Developer Support




Posts: 6
Member Since: 11/2/09



Re: Beginner problem about GetOrders Request
Posted: Nov 3, 2009 1:59 PM
  Click to reply to this thread Reply

Wow, it works better now ;o)
Thanks a lot.

Don't allow me to ask question or I'll do it...

I do it: which function should I call to see all the active objects the user is still following?

I thought it was GetOrders.

Thanks for your help,

N




Posts: 503
Member Since: 5/12/09



Re: Beginner problem about GetOrders Request
Posted: Nov 4, 2009 1:53 AM
  Click to reply to this thread Reply

Hi nabazbook,

Correct me if I'm wrong.

As a seller on eBay, you want to track and monitor your active items. There are a few options for you to retrieve this information via eBay Web Services.

You can use GetMyeBaySelling with <ActiveList> container in the request.

You can also use GetSellerList which returns a list of all items for a given eBay Seller UserID. This call is recommended when dealing with large powersellers.

Please refer to our knowledge base article for more clarification on this.
http://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=477

Have a nice day.

Best Regards,
Devanathan Sampath
eBay Developer Support




Posts: 6
Member Since: 11/2/09



Re: Beginner problem about GetOrders Request
Posted: Nov 4, 2009 4:18 AM
  Click to reply to this thread Reply

Thanks again for your fast answer.
I'm developing for the moment an appli for the buyers, not (yet) for sellers. I would like to display on my appli page the objects that are already stored in "My ebay" list of the user.
I suppose it's possible...or not?

V




Posts: 6
Member Since: 11/2/09



Re: Beginner problem about GetOrders Request
Posted: Nov 4, 2009 5:49 AM
  Click to reply to this thread Reply

With the two active neurons I have and with your last message I found the GetMyeBayBuying...
It returns what I actually want...
Thanks a lot !
Have a nice day,

Happy N

PS:I'm afraid (for you) I'll surely need your input later but I'll create new topic(s)



thread.rss_message