Operation Id:
clients/prices/discounts/get [Official Documentaction]
Methods
- clientsIds Array<Integer>
- clientTextSearch String
- clientIsActive 'yes'|'no'
- clientHasTradeCredit 'nonzero'|'positive'|'negative'|'zero'
- clientLastPurchaseDate Object
- returnElements Array<String>
- resultsPage Integer
- resultsLimit Integer
- lastPurchased dateFrom: DateLike, dateTo: DateLike
Examples
This function checks if the client is active by passing the parameter "yes".
Loading editor...
const result = await idosellRequest.getClientsPricesDiscounts .clientIsActive("yes") .exec();
This function returns the last purchased prices and discounts for clients between January 1, 2023, and January 10, 2023.
Loading editor...
const result = await idosellRequest.getClientsPricesDiscounts .lastPurchased("2023-01-01", "2023-01-10") .exec();
This function retrieves the prices and discounts of clients on page 2 with a limit of 10 results.
Loading editor...
const result = await idosellRequest.getClientsPricesDiscounts .page(2,10) .exec();
This function checks if a client has a positive trade credit status.
Loading editor...
const result = await idosellRequest.getClientsPricesDiscounts .clientHasTradeCredit("positive") .exec();
This function retrieves the prices and discounts for clients with the IDs 1 and 3.
Loading editor...
const result = await idosellRequest.getClientsPricesDiscounts .clientsIds([1,3]) .exec();