Transaction CreateCoupon
Authentication mode: Checked (known user, must have the privilege)
Database access mode: updating
Creates a new coupon.
Inputs:
- coupon: Coupon
Input data for the coupon, if the ID is empty or null a new one is created
Outputs:
- coupon: Coupon
actually stored coupon: the ID may be slightly changed by the server