# 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/**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rymera.gitbook.io/advanced-coupons-api/coupons-v1-acfwp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
