EasyBill icon

EasyBill

Kommuniziert mit der EasyBill API für Kunden

Discount → Update Position Discount

AI-generated

Overview

This node operation updates an existing position discount in the EasyBill system. It allows users to modify details such as the discount value, discount type, associated customer, and position ID for a specific discount identified by its discount ID. This operation is useful for businesses managing discounts on specific items or positions in their billing system, enabling dynamic adjustment of discounts based on customer or item changes.

Use Case Examples

  1. Updating a discount value for a specific product position for a customer.
  2. Changing the discount type from percentage to fixed amount for a given discount ID.

Properties

Name Meaning
Discount ID The unique identifier of the position discount to update.
Customer ID The identifier of the customer associated with the discount.
Discount Value The new discount value to apply to the position.
Discount Type The type of discount to apply, such as amount, quantity, percent, or fixed price.
Position ID The identifier for the position to which the discount applies.

Output

JSON

  • discount_id - The ID of the updated discount position.
  • position_id - The position ID associated with the discount.
  • customer_id - The customer ID associated with the discount.
  • discount - The updated discount value.
  • discount_type - The updated discount type.

Dependencies

  • EasyBill API key credential

Troubleshooting

  • Ensure the 'Discount ID' provided exists and is correct; otherwise, the update will fail.
  • Verify that the API key credential for EasyBill is valid and has permissions to update discounts.
  • Check that the 'Discount Type' value is one of the allowed options (AMOUNT, QUANTITY, PERCENT, FIX).
  • If the API returns an error, inspect the response message for details such as invalid parameters or missing required fields.

Links

  • EasyBill API Documentation - Official API documentation for EasyBill, useful for understanding discount operations and parameters.

Discussion