Get paginated list of invoices for the specified user (uses provided token to determine user). You can specify page size and page number to get entire list. Default page size will try to get all results and can fail if the result set is large
Sample Curl
curl --location 'https://mygatewayurl.com/V1/storeview/default/dashboard/invoices?searchCriteria[filterGroups][0][filters][0][value]=3&searchCriteria[filterGroups][0][filters][0][field]=order_id&searchCriteria[filterGroups][0][filters][0][conditionType]=eq&searchCriteria[currentPage]=1&searchCriteria[pageSize]=2'
Sort can be performed on entity_id ascending and descending. A higher entity_id is a newer invoice.
Sample Curl
curl --location 'https://mygatewayurl.com/V1/storeview/default/dashboard/invoices?searchCriteria[filterGroups][0][filters][0][value]=3&searchCriteria[filterGroups][0][filters][0][field]=order_id&searchCriteria[filterGroups][0][filters][0][conditionType]=eq&searchCriteria[sortOrders][0][field]=entity_id&searchCriteria[sortOrders][0][direction]=desc'
You can get the last five invoice by specifying 5 as page-size parameter.
Sample Curl
curl --location 'https://mygatewayurl.com/V1/storeview/default/dashboard/invoices?searchCriteria[currentPage]=1&searchCriteria[pageSize]=5&searchCriteria[filterGroups][0][filters][0][value]=3&searchCriteria[filterGroups][0][filters][0][field]=order_id&searchCriteria[filterGroups][0][filters][0][conditionType]=eq'
get https://{baseUrl}/V1/storeview//dashboard/invoices