AddDiscountCouponCode

Adding a new discount code.

Input Parameters

  1. _session_hash (string)

    Required. Session identifier (received during login - doLogin)

  2. code (string)

    Required. Code

  3. discount (double)

    Required. Discount in percent

  4. valid_usage (integer)

    Number of uses, 0 means no limit

  5. valid_from (dateTime)

    Valid from

  6. valid_to (dateTime)

    Valid to

Output Data

  1. id (integer)
  2. Identifier of the created discount code.