API Reference

WordPress / API Reference

mepr_coupons_create

Tool tool. Create a new MemberPress coupon

This is a read-only tool: it returns mepr coupons create for your WordPress account. It changes nothing.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Mepr coupons create in my WordPress account for [coupon code], [discount amount].

It takes 2 required and 8 optional parameters.

Parameters

ParameterTypeRequiredDescription
coupon_codestringYesCoupon Code
discount_amountstringYesDiscount Amount
discount_typestringNoDiscount Type
valid_membershipsarrayNoValid Memberships
usage_countintegerNoUsage Count
starts_onstringNoStarts On
expires_onstringNoExpires On
first_payment_discount_typestringNoFirst Payment Discount Type
first_payment_discount_amountstringNoFirst Payment Discount Amount
statusstringNoStatus

Related WordPress tools

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.