REPORTS OrderDetails API Version 1
Updated on 2014-03-31
Current Version: Version 1
Deprecated Version:
Requests Allowed: GET & SOAP
Summary:
Returns an array of orders, potentially filtered by affiliate,conversion and order
You can also obtain this from within your CAKE instance by going to the Reports main tab then the offers sub tab where you are allowed to export.
Resource/WSDL Page:
http://<your_domain_here>/api/1/reports.asmx?op=OrderDetails
Parameters
api_key | This api_key Must be a valid API key (exisiting and NOT expired) You can obtain this api_key from within CAKE >> Setup >> Permissions in the API Key list. Example Value: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh |
start_date | Allowed formats: "YYYY-mm-dd","mm-dd-YYYY", "mm/dd/YYYY", "yyyy/mm/dd" Example Values: 2014-04-03 |
end_date | Allowed formats: "YYYY-mm-dd","dd-mm-YYYY" When time stamp is excluded 00:00:00 is assumed, and data on end date will not be included. Example Values: 2014-04-03 |
affiliate_id | If passing anything <= 0 the result will include all affiliates. Example Values: 1234 |
conversion_id | If passing anything <= 0 the result will include all conversions. Example Values: 1234 |
order_id | This is the identifier for a unique order. Leave blank to pass all values |
start_at_row | Must pass at least 0 as value, which means start at the beginning of the data set. Example Values: 3 |
row_limit
| Must pass at least 0 as value, which means no limit. Example Values: 3 |
sort_field | Accepts "conversion_id","order_id", "sku_code" or 0 to ignore this filter.The value could be any integer in order to ignore this filter. Example Values: 0 |
sort_descending |
Example Values: TRUE |
**Note all optional parameters still need to be passed through in the actual call. These parameters do not need a value (therefore you can use a null value).
Example Request
GET |
Sample XML Response:
<order_detail_report_responseorder_detail_report_response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://cakemarketing.com/api/1/"> |
Example Error Messages:
Error Message | Likely Cause |
Invalid API Key | API Key does not exist or is expired |