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?

  1. coupons/v1
  2. Virtual Coupons (Premium)

Fetch virtual coupon stats

GET: /wp-json/coupons/v1/virtualcoupons/‌stats/{coupon_id}

Requirements:

  • Logged-in user

  • user role with manage_woocommerce user capability

Method

Endpoint

GET

/wp-json/coupons/v1/virtualcoupons/‌stats/{coupon_id}

Get virtual coupon stats for a given coupon

GET: http://example.com/wp-json/coupons/v1/virtualcoupons/‌stats/207

Status: 200 OK

Get virtual coupon stats for a given coupon

{
  "used": 10,
  "total": 144
}
PreviousQuery a list of virtual couponsNextCreate a virtual coupon

Last updated 3 years ago

Was this helpful?