Fetch Vouchers API
Fetch Vouchers API
This API endpoint makes an HTTP GET request to retrieve vouchers from Dice.
Request Parameters
Example
Response
The response returns a status code of 200 along with a JSON object containing an array of vouchers and additional metadata.
Response Object
vouchers(array): Contains the list of vouchers with various details such as ID, employee information, currency, amounts, status, and other attributes.total(integer): Represents the total number of vouchers available.currentPage(integer): Indicates the current page number.totalPages(integer): Specifies the total number of pages based on the pageSize.
The vouchers array includes objects with details about each voucher, including ID, employee information, currency, amounts, status, transaction details, creation and update timestamps, and additional attributes.
Each voucher object also includes a forms array, which contains key-value pairs representing the form data associated with the voucher.
Example Response
Headers
DICE-APP-ID
Company Code of client
X-CLIENT-ID
API Client ID
X-CLIENT-SECRET
API Client Secret
Query parameters
offset
pageSize
start_date
end_date
Response
OK
vouchers
total
currentPage
totalPages
