I am trying to integrate UPS QuantumView API to get shipping and delivery details for a particular time range (last 6 days starting from today), but it looks like my script is completely ignoring the DateTimeRange and displaying all the shipment details starting from 2001. My xml is:
$startDate = date("YmdHms", strtotime("now -6 day"));
$endDate = date("YmdHms", strtotime("now"));
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>XXXXXXXXXX</AccessLicenseNumber>
<UserId>XXXXXX</UserId>
<Password>XXXXXXX</Password>
</AccessRequest>
<?xml version="1.0"?>
<QuantumViewRequest xml:lang="en-US">
<Request>
<RequestAction>QVEvents</RequestAction>
</Request>
<SubscriptionRequest>
<DateTimeRange>
<BeginDateTime>'.$startDate.'</BeginDateTime>
<EndDateTime>'.$endDate.'</EndDateTime>
</DateTimeRange>
</SubscriptionRequest>
</QuantumViewRequest>
Can anyone help me in pointing out where I am wrong?
Thanks
Make sure you select what subscription you want.
Make sure the quantum view subscription is setup to be in xml format.