coupons/v1
This is a custom API namespace exclusive only for fetching and manipulating Advanced Coupons data.
Last updated
Was this helpful?
This is a custom API namespace exclusive only for fetching and manipulating Advanced Coupons data.
Last updated
Was this helpful?
This namespace was introduced on ACFWF version 1.2. ACFWP plugin extends this namespace and registers it's own endpoints under it.
Below are the endpoints registered under ACFWF plugin:
/wp-json/coupons/v1/settings/{setting_id}
/wp-json/coupons/v1/settings/sections
/wp-json/coupons/v1/settings/sections/{section_slug}
Below are the endpoints registered under ACFWP plugin:
/wp-json/coupons/v1/virtualcoupons
/wp-json/coupons/v1/virtualcoupons/{vc_id}
/wp-json/coupons/v1/virtualcoupons/stats/{coupon_id}
/wp-json/coupons/v1/bulk/virtualcoupons
/wp-json/coupons/v1/searchcustomers
Are you calling this API endpoint from an external endpoint? You can do this by following WooCommerce's Basic Auth over HTTPS.
Resource:
Important: If you are calling from an external source (not the same site) you will need to alter the prefix the endpoint name with 'wc-'
Call /wp-json/wc-coupons/v1/ instead of /wp-json/coupons/v1/