List coupons

Coupons with code, discount, usage count, limit and expiry date.

GET https://cotlet.dev/api/v1/woocommerce/coupons

read

Lists coupons with the code, discount type, amount, how many times each was used, its usage limit and its expiry date. Search by text or look up an exact code before you create one. Coupon codes are not case-sensitive in WooCommerce.

Parameters

Parameters: list_coupons
NameTypeDescription
code string string Exact coupon code.
search string string Text in the coupon code.
limit integer integer Results per page. Default: 10.
page integer integer Page number, starting at 1. Default: 1.

Request

cURL
curl https://cotlet.dev/api/v1/woocommerce/coupons \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("woocommerce", "list_coupons")
Node.js
const result = await cotlet.call('woocommerce', 'list_coupons');
CLI
cotlet call woocommerce list_coupons

Example response

JSON

{
  "coupons": [
    {
      "coupon_id": 2201,
      "code": "welcome10",
      "discount_type": "percent",
      "amount": "10",
      "usage_count": 41,
      "usage_limit": 500,
      "date_expires": "2026-12-31"
    }
  ],
  "total": 1,
  "total_pages": 1
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.