getClientsPricesDiscounts

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
Examples

This function checks if the client is active by passing the parameter "yes".

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.

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.

const result = await idosellRequest.getClientsPricesDiscounts
	.page(2,10)
	.exec()

This function checks if a client has a positive trade credit status.

const result = await idosellRequest.getClientsPricesDiscounts
	.clientHasTradeCredit("positive")
	.exec()

This function retrieves the prices and discounts for clients with the IDs 1 and 3.

const result = await idosellRequest.getClientsPricesDiscounts
	.clientsIds([1,3])
	.exec()