Advanced Coupons API
  • REST API
  • coupons/v1
    • Virtual Coupons (Premium)
      • Query a list of virtual coupons
      • Fetch virtual coupon stats
      • Create a virtual coupon
      • Retrieve a virtual coupon
      • Update a virtual coupon
      • Delete a virtual coupon
      • Bulk create virtual coupons
      • Bulk delete virtual coupons
    • Search Customers (Premium)
    • Settings
  • loyalty-program/v1
    • Dashboard
    • Customers
    • Settings
    • My Points
  • wc-loyalty-program/v1
    • Dashboard
    • Customers
    • Settings
  • wc-store-credits/v1
    • Entries
      • Query a list of store credit entries
      • Create a store credit entry
      • Fetch a single store credit entry
      • Update store credit entry
      • Delete store credit entry
    • Customers
      • Get dashboard statistics data
      • Query list of customers with store credits balance
      • Get single customer statistics and sources
Powered by GitBook
On this page

Was this helpful?

coupons/v1

This is a custom API namespace exclusive only for fetching and manipulating Advanced Coupons data.

PreviousREST APINextVirtual Coupons (Premium)

Last updated 3 years ago

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

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:

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/

https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https