Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
1 <= x <= 100
Which page of results to return. The lowest value is 1
, the highest value is 99
.
1 <= x <= 99
Limit search results to vouchers within the specified category.
Limit search results to vouchers within the specified campaign
"camp_rRsfatlwN7unSeUIJDCYedal"
A tracking identifier of a customer who is the holder of the vouchers. It can be an id
generated by Voucherify or the source_id
. Remember to use the proper URL escape codes if the source_id
contains special characters.
"cust_nk0N1uNQ1YnupAoJGOgvsODC"
A unique campaign name, identifies the parent campaign.
"camp_rRsfatlwN7unSeUIJDCYedal"
A filter on the list based on the object created_at
field. The value is a dictionary with the following options: before
, after
. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z
or 2016-11-16
). An example: [created_at][before]=2017-09-08T13:52:18.227Z
A filter on the list based on the object updated_at
field. The value is a dictionary with the following options: before
, after
. A date value must be presented in ISO 8601 format (2016-11-16T14:14:31Z
or 2016-11-16
). An example: [updated_at][before]=2017-09-08T13:52:18.227Z
Sorts the results using one of the filtering options, where the dash -
preceding a sorting option means sorting in a descending order.
created_at
, -created_at
, updated_at
, -updated_at
, code
, -code
"2CpRCE2c"
Response
Returns a dictionary that contains an array of vouchers. Each entry in the array is a separate voucher object. If no more vouchers are available (query parameter page
incremented over and above the voucher count), the resulting array will be empty. The result can be narrowed down according to specified (or default) filters.
Response body schema for GET v1/vouchers
.
The type of the object represented by JSON.
list
Identifies the name of the attribute that contains the array of voucher objects.
vouchers
A dictionary that contains an array of vouchers. Each entry in the array is a separate voucher object.
Returns how many vouchers in the project meet the limits defined by the query parameter definitions.
20