Home / Servers / Brevo API / create_voucher

Create a voucher

An MCP tool from the Brevo API server, hosted on mcp.hjlabs.in.

Create a voucher and attribute it to a specific membership. [POST /loyalty/offer/programs/{pid}/rewards/attribute]

Name on the gateway: brevo_api__create_voucher · may change things.

Parameters

NameTypeDescription
pid requiredstringLoyalty Program ID
codestringCode generated to attribute reward to a contact
contactIdintegerContact to attribute the reward
expirationDatestringReward expiration date
loyaltySubscriptionIdstringOne of contactId or loyaltySubscriptionId is required
metaobjectOffer meta information (key/value object)
rewardId requiredstringReward id
valuenumberValue of the selected reward config
validFromstringDate from which the voucher becomes valid. Accepts RFC 3339 or DD/MM/YYYY…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "brevo_api__create_voucher",
  "arguments": {
    "pid": "…",
    "rewardId": "…"
  }
}

Or connect the Brevo API server directly, which lists 291 tools including this one:

Run in your terminal
claude mcp add --transport http hj-brevo-api https://mcp.hjlabs.in/mcp/brevo-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a voucher tool with pid set to ….

More from Brevo API