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
| Name | Type | Description |
|---|---|---|
pid required | string | Loyalty Program ID |
code | string | Code generated to attribute reward to a contact |
contactId | integer | Contact to attribute the reward |
expirationDate | string | Reward expiration date |
loyaltySubscriptionId | string | One of contactId or loyaltySubscriptionId is required |
meta | object | Offer meta information (key/value object) |
rewardId required | string | Reward id |
value | number | Value of the selected reward config |
validFrom | string | Date 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:
{
"name": "brevo_api__create_voucher",
"arguments": {
"pid": "…",
"rewardId": "…"
}
}Or connect the Brevo API server directly, which lists 291 tools including this one:
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 ….