PDA

View Full Version : Problem with AW API


xlcus
31-08-07, 20:05
I'm having a problem with the AW (as opposed to PS) API.

If I call getTransactionList with certain dates, the call seems to work. But with other dates it seems to fail. For example...

$params = array( 'dStartDate' => '2007-08-30T12:00:00',
'dEndDate' => '2007-08-31T14:00:00',
'sTransactionStatus' => $type,
'sDateType' => $datetype );

$response = $oClient->call('getTransactionList', $params);
...works fine. But if I change the "14" in the end date to a "15", I get the following error...

soaperror Object
(
[sCode] => ns1:Client.PARAM
[sString] => Incorrect dEndDate
[sDetails] => getTransactionList:
Passed value "2007-08-31T15:00:00" is invalid
)

Anyone know why?

xlcus
01-09-07, 19:14
Ok, I've done some more investigating and it seems that any time from 15:00:00 up until 19:59:59 is considered invalid. I've tried this with a number of different dates and it seems consistent.