REST API
Last updated
Was this helpful?
Last updated
Was this helpful?
Advanced Coupons creates it own namespace and endpoints by extending the default .
The plugin uses WordPress REST API in the admin app.
For remote applications (e.g Postman), you will need to authenticate using either of the following options:
(this should only be used for testing purposes only, and should not be recommended for production)
Permissions are managed via . Each endpoint and its respective method varies depending of the use case of said endpoint.
For endpoints which purpose is for the admin side may only be accessed by user roles that has the manage_woocommerce
user capability. (Administrator, Shop Manager, etc.)
For endpoints that will need to be used globally (settings) will not require any authentication for reads, but will need to have the manage_woocommerce
user capability for doing create, update and delete actions.
For endpoints which contains private data for the current user, it will at least require the user to have an authenticated logged in status. This is checked via function.