Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

EDD REST API – Versioning

Since v1.5, Easy Digital Downloads includes a complete RESTful API that allows store data to be retrieved remotely in either a jSON or XML format. The API includes methods for retrieving info about store products, store customers, store sales, and store earnings.

EDD 2.4 introduces API Versioning to allow for adding new functionality while not breaking past functionality for those that need it.

There are two methods of specifying an API version.
First is adding /v{number}/ to your API URL like this:
Second is adding a constant to your wp-config.php file like this:
define( 'EDD_API_VERSION', 'v2' );
If neither of these methods is used the latest version of the API is always delivered simply by going to /edd-api/sales with the proper token and API key.
Read our latest blog post:
NEW: Bulk Generate, Save & Export Invoices