coupons/v1
This is a custom API namespace exclusive only for fetching and manipulating Advanced Coupons data.
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
Calling From External Source
Are you calling this API endpoint from an external endpoint? You can do this by following WooCommerce's Basic Auth over HTTPS.
Resource: https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https
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/
Last updated