Commit Graph

25 Commits

Author SHA1 Message Date
Barry Kooij e99bcc7f77 API: reports/sales now also returns total refunds.
Fixes #7262
2015-03-09 17:09:07 +01:00
Mike Jolley cdcd38ebb9 API total_tax should include shipping tax 2015-02-16 11:48:26 +00:00
Mike Jolley 8409d67602 Share data between sales by date report and API.
Also ensures data is consistent. #7416
2015-02-13 21:25:59 +00:00
Mike Jolley c814a9fa23 docblock corrections 2015-02-03 14:44:57 +00:00
Barry Kooij e41841cee3 Round net_sales in API to 2 decimals 2015-01-30 14:33:13 +01:00
Barry Kooij 7a92094b72 Added net_sales to API reports response. 2015-01-30 14:29:10 +01:00
Barry Kooij 5435c16a3b API code standards 2015-01-30 14:28:53 +01:00
Barry Kooij 746a46778d Fixed sales data in API so it matches the WC reports page.
Fixes #7233
2015-01-30 14:28:35 +01:00
shivapoudel e6f6bcf368 Absolute path fix for REST API v2 2014-09-21 01:09:20 +05:45
Mike Jolley a092fce0c2 Ensure product exists in API call
Fixes #6288
2014-09-17 17:23:04 +01:00
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Max Rice 37c9434492 API: Add top sellers endpoint
Part of #4055
2014-01-21 14:53:47 -05:00
Max Rice 49bacc6be3 Tweak code formatting 2014-01-21 14:07:22 -05:00
Max Rice 233a0a706d API: Add customer count to each period for sales report
Part of #4055
2014-01-20 21:41:52 -05:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Max Rice c00e2d0f8c Add total customers count to sales report
Part of #4055
2013-11-23 17:27:24 -05:00
Max Rice 3f07b8be77 Specify 2 decimal places for woocommerce_format_decimal()
Part of #4055
2013-11-23 14:40:31 -05:00
Max Rice d7c77d1ab7 API: Add XML generation
This commit completes the XML response handler and adjusts the output
format for all resources to include a top-level property that encloses
the response. This is more consistent with the multi-resource (e.g. GET
/orders) response.

Part of #4165
2013-11-22 03:41:32 -05:00
Max Rice 3130369325 Update filter_response_fields() to support sub-field inclusion
Part of #4055
2013-11-18 21:59:13 -05:00
Max Rice 87ff36db12 Properly handle datetimes
Part of #4055
2013-11-18 16:47:38 -05:00
Max Rice c1854b26b9 Implement GET /reports/sales endpoint
Part of #4055
2013-11-15 00:21:19 -05:00
Max Rice a13a95e452 Update API resource classes
Change method naming to snake_case and implement initial
`current_user_can()` permission checks
2013-11-10 19:29:36 -05:00
Max Rice 23e6b22cfd Rename API base resource class 2013-11-09 16:20:23 -05:00
Max Rice c3fa52b0b5 Update API classes to use new WC_API_Server class 2013-11-06 01:54:19 -05:00
Max Rice e219585974 Add initial versions of REST API resource classes 2013-11-04 01:36:31 -05:00