LinkyFlow — autonomous agents and live business data in Excel or on the webLinkyFlow
WooCommerce coupons in Excel: filters and fields
← WooCommerce connection for LinkyFlow

WooCommerce coupons in Excel: filters and fields

Review WooCommerce coupons in Excel: code, amount, discount type, expiry date and usage count.

Discount coupons.

The formula for Excel

=LF.woocommerce.coupons("","id,code,amount,discount_type,date_expires,usage_count,date_created")

Its first argument sets the inputs listed below, as name:value pairs separated by |; its second lists the fields to return, separated by commas. How LinkyFlow formulas are built

Guides and agents

Guides

Read

Coupons

Discount coupons.

Route: GET /coupons

Excel formula: =LF.woocommerce.coupons("selection", "fields")

Inputs you can set

NameTypeRequiredDescription
linkstringYes-
searchstringNoFilter by keyword
per_pagenumberNoRows per page (max 100) Default: 100
pagenumberNoPage number, starting at 1

Data returned in Excel

FieldTypeRelationsDescription
iddefaultid—-
codedefaultstring—-
amountdefaultnumber—-
discount_typedefaultenum—-
date_expiresdefaultdate—-
usage_countdefaultnumber—-
date_createddefaultdate—-
Create

Create Coupon

Create Coupon

Route: POST /mutation/coupons

Inputs you can set

NameTypeRequiredDescription
amountnumberNo-
codestringYes-
date_expiresdateNo-
discount_typeenumYesValues: percent, fixed_cart, fixed_product
individual_usebooleanNo-
minimum_amountnumberNo-
usage_limitnumberNo-

Data returned in Excel

This action returns a confirmation rather than a selectable table.

Edit

Update Coupon

Update Coupon

Route: PATCH /mutation/coupons

Inputs you can set

NameTypeRequiredDescription
amountnumberNo-
codestringYes-
date_expiresdateNo-
discount_typeenumYesValues: percent, fixed_cart, fixed_product
individual_usebooleanNo-
minimum_amountnumberNo-
usage_limitnumberNo-

Data returned in Excel

This action returns a confirmation rather than a selectable table.

Edit

Delete Coupon

Delete Coupon

Route: DELETE /mutation/coupons

Inputs you can set

NameTypeRequiredDescription
amountnumberNo-
codestringYes-
date_expiresdateNo-
discount_typeenumYesValues: percent, fixed_cart, fixed_product
individual_usebooleanNo-
minimum_amountnumberNo-
usage_limitnumberNo-

Data returned in Excel

This action returns a confirmation rather than a selectable table.