Jump to Content
API Reference
User Guides
Community Discussions
Home
User Guides
Recipes
API Reference
Product Updates
Community Discussions
v1.0
v2.0
v2.1
API Reference
User Guides
Community Discussions
Join our Slack
Get Support
Log In
API Reference
Join our Slack
Get Support
Log In
Moon (Dark Mode)
Sun (Light Mode)
v2.0
API Reference
Expire a voucher
Search
JUMP TO
Getting Started
Getting Started with Vouchery.io Promotion API v2.0
Basic concepts
Authentication
Authorization
Pagination
Errors
API Walkthrough
Creating a main campaign
Creating a sub campaign (reward campaign)
Adding voucher rewards
Redeeming a voucher code
Two-step voucher redemption
Setting up Workflows and Custom triggers
Configuring & testing Webhooks
Vouchery API
Campaigns
Get main campaigns with children by params
get
Create a campaign
post
Get sub campaigns by params
get
Get a campaign
get
Update a campaign
patch
Delete a campaign
delete
Get main campaigns with children by params
get
Get a main campaign
get
Categories
Get all categories for a campaign
get
Create a category
post
Get a category
get
Update a category
patch
Delete a category
delete
Company
Update company details
patch
Customers
Get all customers
get
Create a customer
post
Get a customer
get
Update a customer
patch
Delete a customer
delete
Get vouchers assigned to a customer
get
Assign vouchers to a customer
patch
Remove (unassign) vouchers from a customer
delete
Get redemptions performed by a customer
get
Import your own customers
post
Projects
Update project settings
patch
Redemptions
Get all redemptions for a campaign
get
Create a redemption
post
Confirm a redemption
patch
Get a redemption
get
Delete a redemption
delete
InvalidRedemptions
Get all invalid redemptions for a campaign
get
Rewards
Get all rewards for a campaign
get
Create a reward
post
Get a reward
get
Update a reward
patch
Delete a reward
delete
Rules
Get all rules for a campaign
get
Create a rule
post
Get a rule
get
Update a rule
patch
Delete a rule
delete
Subscriptions
Get all subscriptions for a project
get
Create a subscription
post
Delete a subscription
delete
Verify subscription callback URL
get
Triggers
Create a trigger (deprecated)
post
CustomTriggers
Create custom trigger
post
Users
Get all users within a project
get
Create project user
post
Get a user
get
Update a user
patch
Deactivate/Re-activate user
put
Get information about current user and project
get
Vouchers
Get all vouchers for a campaign
get
Create a voucher
post
Find a voucher by campaign metadata
get
Batch create vouchers
post
Import your own vouchers
post
Get a voucher
get
Delete a voucher
delete
Expire a voucher
patch
Expire a list of vouchers
post
Webhooks notifications.
Subscription events
Webhooks configuration
Powered by
Expire a voucher
patch
https://preview.vouchery.io/api/v2.0/vouchers/
{code}
/expire
Expire a voucher
Language
Shell
Node
Ruby
Python
C#
Credentials
Bearer
Bearer
URL
Base URL
https://preview.vouchery.io/api/v2.0
/vouchers/{code}/expire
RESPONSE
Click
Try It!
to start a request and see the response here!