> For the complete documentation index, see [llms.txt](https://rymera.gitbook.io/advanced-coupons-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rymera.gitbook.io/advanced-coupons-api/coupons-v1-acfwp.md).

# coupons/v1

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`&#x20;
    * `/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/**
