Adding a new discount code.
_session_hash
(string)
Required. Session identifier (received during login - doLogin)
code
(string)
Required. Code
discount
(double)
Required. Discount in percent
valid_usage
(integer)
Number of uses, 0 means no limit
valid_from
(dateTime)
Valid from
valid_to
(dateTime)
Valid to
id
(integer)Identifier of the created discount code.