WooCommerce · Example Payload

Woocommerce Rest Api Coupon Example

A sample description

eCommerceOpen SourceOrdersProductsWordPress

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

Top-level fields

idcodeamountdiscount_typedescriptiondate_expiresusage_countindividual_useproduct_idsexcluded_product_idsusage_limitusage_limit_per_userminimum_amountmaximum_amountdate_createddate_modifiedmeta_data

Example Payload

Raw ↑
{
  "id": 1,
  "code": "string-value",
  "amount": "string-value",
  "discount_type": "percent",
  "description": "A sample description",
  "date_expires": "2026-05-03T14:30:00Z",
  "usage_count": 1,
  "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",
  "date_created": "2026-05-03T14:30:00Z",
  "date_modified": "2026-05-03T14:30:00Z",
  "meta_data": [
    "string-value"
  ]
}