WooCommerce · Example Payload

Woocommerce Rest Api Coupon Input Example

A sample description

eCommerceOpen SourceOrdersProductsWordPress

Woocommerce Rest Api Coupon Input Example is an example object payload from WooCommerce, with 13 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

codeamountdiscount_typedescriptiondate_expiresindividual_useproduct_idsexcluded_product_idsusage_limitusage_limit_per_userminimum_amountmaximum_amountmeta_data

Example Payload

Raw ↑
{
  "code": "string-value",
  "amount": "string-value",
  "discount_type": "percent",
  "description": "A sample description",
  "date_expires": "2026-05-03T14:30:00Z",
  "individual_use": true,
  "product_ids": [
    1
  ],
  "excluded_product_ids": [
    1
  ],
  "usage_limit": 1,
  "usage_limit_per_user": 1,
  "minimum_amount": "string-value",
  "maximum_amount": "string-value",
  "meta_data": [
    "string-value"
  ]
}