Vouchers

Notes
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://www.vouchersystem.codesett.com/api/v1/vouchers

Request example:

curl --location --request GET 'https://www.vouchersystem.codesett.com/api/v1/vouchers' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Type
Description
search
optional string
The search query.
search_by
optional string
Search by. Possible values are: code for Code. Defaults to: code.
favorite
optional boolean
Filter by favorite.
sort_by
optional string
Sort by. Possible values are: id for Date created, code for Code. Defaults to: id.
sort
optional string
Sort. Possible values are: desc for Descending, asc for Ascending. Defaults to: desc.
per_page
optional integer
Results per page. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Show

API endpoint:

GET
https://www.vouchersystem.codesett.com/api/v1/vouchers/{id}

Request example:

curl --location --request GET 'https://www.vouchersystem.codesett.com/api/v1/vouchers/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'