Operation Id:
orders/opinions/search/post [Official Documentaction]
Methods
- opinion Object
- orders Object
- clients Object
- dateRange Object
- resultsPage Integer
- resultsLimit Integer
- ordersBy Array<Object>
- orderId value: string
- orderSerialNumber value: string
- clientId value: string
- clientLogin value: string
- clientCode value: string
- orderBy elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending: boolean
Examples
This function retrieves a specific page of orders' opinions, starting from the 10th entry, containing 2 entries per page.
const result = await idosellRequest.searchOrdersOpinions
.page(2,10)
.exec()
This function sorts the orders opinions by rating in descending order.
const result = await idosellRequest.searchOrdersOpinions
.orderBy("rating", false)
.exec()
This function returns the orders and opinions that occurred between January 1st, 2023 and January 10th, 2023.
const result = await idosellRequest.searchOrdersOpinions
.dates("2023-01-01", "2023-01-10")
.exec()
This function retrieves the order opinions for an order with the serial number 3512.
const result = await idosellRequest.searchOrdersOpinions
.orderSerialNumber(3512)
.exec()
This function allows a client to log in using their email address.
const result = await idosellRequest.searchOrdersOpinions
.clientLogin("user@mail.com")
.exec()
The function retrieves the orders and opinions associated with the client ID 3223.
const result = await idosellRequest.searchOrdersOpinions
.clientId(3223)
.exec()