putProductsStrikethroughPrices

Operation Id:
products/strikethroughPrices/put [Official Documentaction]
Methods

  • products Array<Object>
  • ident Object
  • sizes Array<Object>
  • stp_settings Object
  • shops Array<Object>
  • productId productId: number|string, type: 'id'|'index'|'codeExtern'|'codeProducer'
  • setPrice price: number, wholesale: boolean
  • addPrice value: number, wholesale: boolean, base: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed'
  • addPricePercent value: number, wholesale: boolean, base: 'price' | 'price_minimal' | 'price_pos' | 'price_srp' | 'price_crossed'
Examples

This function sets the pricing settings for a specific product identified by its ID and applies a specific amount of discount to the retail price.

const result = await idosellRequest.putProductsStrikethroughPrices
	.ident({"type":"id","value":"33"})
	.stp_settings({"price_change_mode":"amount_set","price_change_basevalue":"price","retail_price_change_value":199})
	.exec()